@Test public void testLoadBallotKeyCipherPrivateKey() throws Exception { ballotCipherService.loadBallotKeyCipherPrivateKey("password"); verify(ballotCiphersProvider, times(1)).loadBallotKeyCipherPrivateKey("password"); }
public void loadBallotKeyCipherPrivateKey(String password) throws PrivateKeyPasswordMismatchException { ciphersProvider.loadBallotKeyCipherPrivateKey(password); }
BallotCipherService { public void loadBallotKeyCipherPrivateKey(String password) throws PrivateKeyPasswordMismatchException { ciphersProvider.loadBallotKeyCipherPrivateKey(password); } }
BallotCipherService { public void loadBallotKeyCipherPrivateKey(String password) throws PrivateKeyPasswordMismatchException { ciphersProvider.loadBallotKeyCipherPrivateKey(password); } BallotCipherService(BallotCiphersProvider ciphersProvider, PropertyConfigurationService propertyConfigurationService); }
BallotCipherService { public void loadBallotKeyCipherPrivateKey(String password) throws PrivateKeyPasswordMismatchException { ciphersProvider.loadBallotKeyCipherPrivateKey(password); } 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 loadBallotKeyCipherPrivateKey(String password) throws PrivateKeyPasswordMismatchException { ciphersProvider.loadBallotKeyCipherPrivateKey(password); } 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; }