Package com.helixframework.crypto.mac
Class MacCryptoFactory
java.lang.Object
com.helixframework.crypto.mac.MacCryptoFactory
Factory for creating a
MacCrypto instance.-
Method Summary
Modifier and TypeMethodDescriptioncreate(com.google.crypto.tink.KeysetHandle keysetHandle) Creates a new instance ofMacCrypto.static MacCryptoFactoryGets the singleton instance of this factory.
-
Method Details
-
getInstance
Gets the singleton instance of this factory.- Returns:
- singleton instance of
MacCryptoFactory
-
create
Creates a new instance ofMacCrypto.- Parameters:
keysetHandle- tink keyset handle- Returns:
- a
MacCrypto
-