public final class MacConfig extends Object
Registry all
instances of Mac key 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(java.lang.Class<P>).
| Modifier and Type | Field and Description |
|---|---|
static String |
HMAC_TYPE_URL |
static RegistryConfig |
LATEST
Deprecated.
use
register() |
static RegistryConfig |
TINK_1_0_0
Deprecated.
use
register() |
static RegistryConfig |
TINK_1_1_0
Deprecated.
use
register() |
| Modifier and Type | Method and Description |
|---|---|
static void |
init()
Deprecated.
use
register() |
static void |
register()
Tries to register with the
Registry all instances of Catalogue and KeyManager needed to
handle Mac key types supported in Tink. |
static void |
registerStandardKeyTypes()
Deprecated.
use
register() |
public static final String HMAC_TYPE_URL
@Deprecated public static final RegistryConfig TINK_1_0_0
register()@Deprecated public static final RegistryConfig TINK_1_1_0
register()@Deprecated public static final RegistryConfig LATEST
register()@Deprecated public static void init() throws GeneralSecurityException
register()Registry all instances of Catalogue and KeyManager needed to
handle Mac key types supported in Tink.GeneralSecurityExceptionpublic static void register()
throws GeneralSecurityException
Registry all instances of Catalogue and KeyManager needed to
handle Mac key types supported in Tink.GeneralSecurityException@Deprecated public static void registerStandardKeyTypes() throws GeneralSecurityException
register()com.google.crypto.tink.Registry all 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.
GeneralSecurityException