@Test public void testSetIntegrityKeyFileName() throws Exception { ballotCipherService.setIntegrityKeyFileName("integrity_key"); verify(ballotCiphersProvider, times(1)).invalidateIntegrityKeyCache(); }
public void setIntegrityKeyFileName(String integrityKeyFileName) { ciphersProvider.invalidateIntegrityKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.INTEGRITY_KEY_FILE_NAME, integrityKeyFileName); }
BallotCipherService { public void setIntegrityKeyFileName(String integrityKeyFileName) { ciphersProvider.invalidateIntegrityKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.INTEGRITY_KEY_FILE_NAME, integrityKeyFileName); } }
BallotCipherService { public void setIntegrityKeyFileName(String integrityKeyFileName) { ciphersProvider.invalidateIntegrityKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.INTEGRITY_KEY_FILE_NAME, integrityKeyFileName); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); }
BallotCipherService { public void setIntegrityKeyFileName(String integrityKeyFileName) { ciphersProvider.invalidateIntegrityKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.INTEGRITY_KEY_FILE_NAME, integrityKeyFileName); } 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 setIntegrityKeyFileName(String integrityKeyFileName) { ciphersProvider.invalidateIntegrityKeyCache(); propertyConfigurationService.addConfigValue(BallotCiphersProvider.INTEGRITY_KEY_FILE_NAME, integrityKeyFileName); } 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; }