Class AeadCryptoFactory

java.lang.Object
com.helixframework.crypto.aead.AeadCryptoFactory

public class AeadCryptoFactory extends Object
Factory for creating AeadCrypto implementations.
  • Method Details

    • getInstance

      public static AeadCryptoFactory getInstance()
      Gets the singleton instance of this factory.
      Returns:
      an AeadCryptoFactory instance
    • create

      public AeadCrypto create(com.google.crypto.tink.KeysetHandle keysetHandle)
      Creates a new AeadCrypto implementation for the supplied keyset handle.
      Parameters:
      keysetHandle - keyset handle
      Returns:
      an AeadCrypto
    • create

      public AeadCrypto create(String awsKmsKeyArn)
      Creates a new AeadCrypto implementation using a key stored in AWS KMS.
      Parameters:
      awsKmsKeyArn - aws arn of the key
      Returns:
      an AeadCrypto