public final class AeadConfig extends Object
Registry all instances of Aead key types supported in a particular release of Tink.
To register all Aead key types provided in the latest Tink version one can do:
AeadConfig.register();
For more information on how to obtain and use instances of Aead, see AeadFactory.
| Modifier and Type | Field and Description |
|---|---|
static String |
AES_CTR_HMAC_AEAD_TYPE_URL |
static String |
AES_EAX_TYPE_URL |
static String |
AES_GCM_TYPE_URL |
static String |
CHACHA20_POLY1305_TYPE_URL |
static String |
KMS_AEAD_TYPE_URL |
static String |
KMS_ENVELOPE_AEAD_TYPE_URL |
static RegistryConfig |
LATEST |
static RegistryConfig |
TINK_1_0_0
Deprecated.
|
static RegistryConfig |
TINK_1_1_0
Deprecated.
|
| Constructor and Description |
|---|
AeadConfig() |
| 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 Aead key types supported in Tink. |
static void |
registerStandardKeyTypes()
Deprecated.
use
register() |
public static final String AES_CTR_HMAC_AEAD_TYPE_URL
public static final String AES_GCM_TYPE_URL
public static final String AES_EAX_TYPE_URL
public static final String KMS_AEAD_TYPE_URL
public static final String KMS_ENVELOPE_AEAD_TYPE_URL
public static final String CHACHA20_POLY1305_TYPE_URL
@Deprecated public static final RegistryConfig TINK_1_0_0
@Deprecated public static final RegistryConfig TINK_1_1_0
public static final RegistryConfig LATEST
@Deprecated public static void init() throws GeneralSecurityException
register()Registry all instances of Catalogue and KeyManager needed to
handle Aead key types supported in Tink.
Because Aead key types depend on Mac key types, this method
also registers all Mac catalogues and key managers.
GeneralSecurityExceptionpublic static void register()
throws GeneralSecurityException
Registry all instances of Catalogue and KeyManager needed to
handle Aead key types supported in Tink.
Because Aead key types depend on Mac key types, this method
also registers all Mac catalogues and key managers.
GeneralSecurityException@Deprecated public static void registerStandardKeyTypes() throws GeneralSecurityException
register()Registry all Aead 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