Package com.helixframework.crypto.aead
Class AeadCryptoFactory
java.lang.Object
com.helixframework.crypto.aead.AeadCryptoFactory
Factory for creating
AeadCrypto implementations.-
Method Summary
Modifier and TypeMethodDescriptioncreate(com.google.crypto.tink.KeysetHandle keysetHandle) Creates a newAeadCryptoimplementation for the supplied keyset handle.Creates a newAeadCryptoimplementation using a key stored in AWS KMS.static AeadCryptoFactoryGets the singleton instance of this factory.
-
Method Details
-
getInstance
Gets the singleton instance of this factory.- Returns:
- an
AeadCryptoFactoryinstance
-
create
Creates a newAeadCryptoimplementation for the supplied keyset handle.- Parameters:
keysetHandle- keyset handle- Returns:
- an
AeadCrypto
-
create
Creates a newAeadCryptoimplementation using a key stored in AWS KMS.- Parameters:
awsKmsKeyArn- aws arn of the key- Returns:
- an
AeadCrypto
-