Package com.google.crypto.tink.mac
Class MacConfig
- java.lang.Object
-
- com.google.crypto.tink.mac.MacConfig
-
public final class MacConfig extends java.lang.ObjectStatic methods and constants for registering with theRegistryall instances ofMackey types supported in a particular release of Tink.To register all Mac key types provided in the latest Tink version one can do:
MacConfig.register();For more information on how to obtain and use instances of Mac, see
KeysetHandle.getPrimitive(com.google.crypto.tink.Configuration, java.lang.Class<P>).- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHMAC_TYPE_URLstatic com.google.crypto.tink.proto.RegistryConfigLATESTDeprecated.useregister()static com.google.crypto.tink.proto.RegistryConfigTINK_1_0_0Deprecated.useregister()static com.google.crypto.tink.proto.RegistryConfigTINK_1_1_0Deprecated.useregister()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidinit()Deprecated.useregister()static voidregister()Tries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle Mac key types supported in Tink.static voidregisterStandardKeyTypes()Deprecated.useregister()
-
-
-
Field Detail
-
HMAC_TYPE_URL
public static final java.lang.String HMAC_TYPE_URL
-
TINK_1_0_0
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_0_0
Deprecated.useregister()
-
TINK_1_1_0
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_1_0
Deprecated.useregister()- Since:
- 1.1.0
-
LATEST
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig LATEST
Deprecated.useregister()- Since:
- 1.2.0
-
-
Method Detail
-
init
@Deprecated public static void init() throws java.security.GeneralSecurityExceptionDeprecated.useregister()Tries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle Mac key types supported in Tink.- Throws:
java.security.GeneralSecurityException
-
register
public static void register() throws java.security.GeneralSecurityExceptionTries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle Mac key types supported in Tink.- Throws:
java.security.GeneralSecurityException- Since:
- 1.2.0
-
registerStandardKeyTypes
@Deprecated public static void registerStandardKeyTypes() throws java.security.GeneralSecurityExceptionDeprecated.useregister()Registers with thecom.google.crypto.tink.Registryall Mac key types released with the latest version of Tink.Deprecated-yet-still-supported key types are registered in so-called "no new key"-mode, which allows for usage of existing keys forbids generation of new key material.
- Throws:
java.security.GeneralSecurityException
-
-