public interface CryptoServiceFactory<T>
CryptoService
which is capable of encrypting or decrypting
bytes for a given key
Ensure that KeyManagementService
implementation is compatible with the same key type.Modifier and Type | Method and Description |
---|---|
CryptoService<T> |
getCryptoService()
Instantiates and returns the
CryptoService |
CryptoService<T> getCryptoService() throws java.security.GeneralSecurityException
CryptoService
CryptoService
instantiatedjava.security.GeneralSecurityException
- on any exception during instantiation