keysetHandle.GetPrimitive(Mac.class) after registering the MacWrapper instead.@Deprecated public final class MacFactory extends Object
Mac primitives. Instead of using this class, make sure that
the MacWrapper is registered in your binary, then call keysetHandle.GetPrimitive(Mac.class) instead. The required registration happens automatically if
you called one of the following in your binary:
MacConfig.register()
HybridConfig.register()
AeadConfig.register()
TinkConfig.register()
| Modifier and Type | Method and Description |
|---|---|
static Mac |
getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(Mac.class) after registering the MacWrapper instead. |
@Deprecated public static Mac getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException
keysetHandle.GetPrimitive(Mac.class) after registering the MacWrapper instead.keysetHandle.GeneralSecurityException