@Test public void testSetPublicKeyFileName() throws Exception { ballotCipherService.setPublicKeyFileName("pub_key"); verify(ballotCiphersProvider, times(1)).invalidatePublicKeyCache(); }
public void setPublicKeyFileName(String publicKeyFileName) { ciphersProvider.invalidatePublicKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PUBLIC_KEY_FILE_NAME, publicKeyFileName); }
BallotCipherService { public void setPublicKeyFileName(String publicKeyFileName) { ciphersProvider.invalidatePublicKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PUBLIC_KEY_FILE_NAME, publicKeyFileName); } }
BallotCipherService { public void setPublicKeyFileName(String publicKeyFileName) { ciphersProvider.invalidatePublicKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PUBLIC_KEY_FILE_NAME, publicKeyFileName); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); }
BallotCipherService { public void setPublicKeyFileName(String publicKeyFileName) { ciphersProvider.invalidatePublicKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PUBLIC_KEY_FILE_NAME, publicKeyFileName); } 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 setPublicKeyFileName(String publicKeyFileName) { ciphersProvider.invalidatePublicKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.PUBLIC_KEY_FILE_NAME, publicKeyFileName); } 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; }