@Test public void decrypt_null() throws Exception { service.decrypt(null); verify(key, never()).decrypt(anyString()); }
@Override public String decrypt(String crypted) { return crypted != null ? key.decrypt(crypted) : null; }
EncryptionServiceImpl implements EncryptionService { @Override public String decrypt(String crypted) { return crypted != null ? key.decrypt(crypted) : null; } }
EncryptionServiceImpl implements EncryptionService { @Override public String decrypt(String crypted) { return crypted != null ? key.decrypt(crypted) : null; } EncryptionServiceImpl(ConfidentialKey key); @Autowired  EncryptionServiceImpl(ConfidentialStore confidentialStore); }
EncryptionServiceImpl implements EncryptionService { @Override public String decrypt(String crypted) { return crypted != null ? key.decrypt(crypted) : 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 decrypt(String crypted) { return crypted != null ? key.decrypt(crypted) : 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);  }