Package com.google.crypto.tink.aead
Class AeadConfig
- java.lang.Object
-
- com.google.crypto.tink.aead.AeadConfig
-
public final class AeadConfig extends java.lang.ObjectStatic methods and constants for registering with theRegistryall instances ofAeadkey 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();- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAES_CTR_HMAC_AEAD_TYPE_URLstatic java.lang.StringAES_EAX_TYPE_URLstatic java.lang.StringAES_GCM_SIV_TYPE_URLstatic java.lang.StringAES_GCM_TYPE_URLstatic java.lang.StringCHACHA20_POLY1305_TYPE_URLstatic java.lang.StringKMS_AEAD_TYPE_URLstatic java.lang.StringKMS_ENVELOPE_AEAD_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()static java.lang.StringXCHACHA20_POLY1305_TYPE_URL
-
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 Aead key types supported in Tink.static voidregisterStandardKeyTypes()Deprecated.useregister()
-
-
-
Field Detail
-
AES_CTR_HMAC_AEAD_TYPE_URL
public static final java.lang.String AES_CTR_HMAC_AEAD_TYPE_URL
-
AES_GCM_TYPE_URL
public static final java.lang.String AES_GCM_TYPE_URL
-
AES_GCM_SIV_TYPE_URL
public static final java.lang.String AES_GCM_SIV_TYPE_URL
-
AES_EAX_TYPE_URL
public static final java.lang.String AES_EAX_TYPE_URL
-
KMS_AEAD_TYPE_URL
public static final java.lang.String KMS_AEAD_TYPE_URL
-
KMS_ENVELOPE_AEAD_TYPE_URL
public static final java.lang.String KMS_ENVELOPE_AEAD_TYPE_URL
-
CHACHA20_POLY1305_TYPE_URL
public static final java.lang.String CHACHA20_POLY1305_TYPE_URL
-
XCHACHA20_POLY1305_TYPE_URL
public static final java.lang.String XCHACHA20_POLY1305_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 Aead key types supported in Tink.Because Aead key types depend on
Mackey types, this method also registers all Mac catalogues and key managers.- Throws:
java.security.GeneralSecurityException
-
register
public static void register() throws java.security.GeneralSecurityExceptionTries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle Aead key types supported in Tink.Because Aead key types depend on
Mackey types, this method also registers all Mac catalogues and key managers.- Throws:
java.security.GeneralSecurityException- Since:
- 1.2.0
-
registerStandardKeyTypes
@Deprecated public static void registerStandardKeyTypes() throws java.security.GeneralSecurityExceptionDeprecated.useregister()Registers with theRegistryall 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.
- Throws:
java.security.GeneralSecurityException
-
-