Class AeadConfig


  • public final class AeadConfig
    extends java.lang.Object
    Static methods and constants for registering with the 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();
     
    Since:
    1.0.0
    • 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.
      • TINK_1_1_0

        @Deprecated
        public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_1_0
        Deprecated.
        Since:
        1.1.0
      • LATEST

        @Deprecated
        public static final com.google.crypto.tink.proto.RegistryConfig LATEST
        Deprecated.
        Since:
        1.2.0
    • Method Detail

      • init

        @Deprecated
        public static void init()
                         throws java.security.GeneralSecurityException
        Deprecated.
        Tries to register with the 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.

        Throws:
        java.security.GeneralSecurityException
      • register

        public static void register()
                             throws java.security.GeneralSecurityException
        Tries to register with the 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.

        Throws:
        java.security.GeneralSecurityException
        Since:
        1.2.0
      • registerStandardKeyTypes

        @Deprecated
        public static void registerStandardKeyTypes()
                                             throws java.security.GeneralSecurityException
        Deprecated.
        Registers with the 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.

        Throws:
        java.security.GeneralSecurityException