Package com.github.ambry.router
Interface CryptoServiceFactory<T>
-
public interface CryptoServiceFactory<T>
CryptoService Factory to assist in fetching an instance ofCryptoService
which is capable of encrypting or decrypting bytes for a given key Ensure thatKeyManagementService
implementation is compatible with the same key type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CryptoService<T>
getCryptoService()
Instantiates and returns theCryptoService
-
-
-
Method Detail
-
getCryptoService
CryptoService<T> getCryptoService() throws java.security.GeneralSecurityException
Instantiates and returns theCryptoService
- Returns:
- the
CryptoService
instantiated - Throws:
java.security.GeneralSecurityException
- on any exception during instantiation
-
-