@Test public void encrypt() throws Exception { service.encrypt("test"); verify(key, times(1)).encrypt("test"); }
@Override public String encrypt(String plain) { return plain != null ? key.encrypt(plain) : null; }
EncryptionServiceImpl implements EncryptionService { @Override public String encrypt(String plain) { return plain != null ? key.encrypt(plain) : null; } }
EncryptionServiceImpl implements EncryptionService { @Override public String encrypt(String plain) { return plain != null ? key.encrypt(plain) : null; } EncryptionServiceImpl(ConfidentialKey key); @Autowired  EncryptionServiceImpl(ConfidentialStore confidentialStore); }
EncryptionServiceImpl implements EncryptionService { @Override public String encrypt(String plain) { return plain != null ? key.encrypt(plain) : null; } EncryptionServiceImpl(ConfidentialKey key); @Autowired  EncryptionServiceImpl(ConfidentialStore confidentialStore); @Override String encrypt(String plain); @Override String decrypt(String crypted); @Override String exportKey(); @Override void importKey(String payload); }
EncryptionServiceImpl implements EncryptionService { @Override public String encrypt(String plain) { return plain != null ? key.encrypt(plain) : null; } EncryptionServiceImpl(ConfidentialKey key); @Autowired  EncryptionServiceImpl(ConfidentialStore confidentialStore); @Override String encrypt(String plain); @Override String decrypt(String crypted); @Override String exportKey(); @Override void importKey(String payload);  }