Class MacCryptoFactory

java.lang.Object
com.helixframework.crypto.mac.MacCryptoFactory

public class MacCryptoFactory extends Object
Factory for creating a MacCrypto instance.
  • Method Details

    • getInstance

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

      public MacCrypto create(com.google.crypto.tink.KeysetHandle keysetHandle)
      Creates a new instance of MacCrypto.
      Parameters:
      keysetHandle - tink keyset handle
      Returns:
      a MacCrypto