@Test public void testSetPrivateKeyFileName() throws Exception { ballotCipherService.setPrivateKeyFileName("priv_key"); verify(ballotCiphersProvider, times(1)).invalidatePrivateKeyCache(); }
public void setPrivateKeyFileName(String privateKeyFileName) { ciphersProvider.invalidatePrivateKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PRIVATE_KEY_FILE_NAME, privateKeyFileName); }
BallotCipherService { public void setPrivateKeyFileName(String privateKeyFileName) { ciphersProvider.invalidatePrivateKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PRIVATE_KEY_FILE_NAME, privateKeyFileName); } }
BallotCipherService { public void setPrivateKeyFileName(String privateKeyFileName) { ciphersProvider.invalidatePrivateKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PRIVATE_KEY_FILE_NAME, privateKeyFileName); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); }
BallotCipherService { public void setPrivateKeyFileName(String privateKeyFileName) { ciphersProvider.invalidatePrivateKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PRIVATE_KEY_FILE_NAME, privateKeyFileName); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); AuthenticatedBallot encryptBallotThenWrapForAuthentication(String plainText, int ballotIndex); EncryptedBallotAndWrappedKey verifyAuthenticationThenUnwrap(AuthenticatedBallot authenticatedBallot); String decryptBallot(EncryptedBallotAndWrappedKey encryptedBallotAndWrappedKey); void loadBallotKeyCipherPrivateKey(String password); void setPrivateKeyFileName(String privateKeyFileName); void setPublicKeyFileName(String publicKeyFileName); void setIntegrityKeyFileName(String integrityKeyFileName); }
BallotCipherService { public void setPrivateKeyFileName(String privateKeyFileName) { ciphersProvider.invalidatePrivateKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PRIVATE_KEY_FILE_NAME, privateKeyFileName); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); AuthenticatedBallot encryptBallotThenWrapForAuthentication(String plainText, int ballotIndex); EncryptedBallotAndWrappedKey verifyAuthenticationThenUnwrap(AuthenticatedBallot authenticatedBallot); String decryptBallot(EncryptedBallotAndWrappedKey encryptedBallotAndWrappedKey); void loadBallotKeyCipherPrivateKey(String password); void setPrivateKeyFileName(String privateKeyFileName); void setPublicKeyFileName(String publicKeyFileName); void setIntegrityKeyFileName(String integrityKeyFileName); static final int AEAD_TAG_SIZE; }