Class HybridConfig


  • public final class HybridConfig
    extends java.lang.Object
    Static methods and constants for registering with the Registry all instances of HybridEncrypt and HybridDecrypt key types supported in a particular release of Tink.

    To register all HybridEncrypt and HybridDecrypt key types provided in the latest Tink version one can do:

    
     HybridConfig.register();
     

    For more information on how to obtain and use instances of HybridEncrypt or HybridDecrypt, see HybridEncryptFactory or HybridDecryptFactory.

    Since:
    1.0.0
    • Field Detail

      • ECIES_AEAD_HKDF_PUBLIC_KEY_TYPE_URL

        public static final java.lang.String ECIES_AEAD_HKDF_PUBLIC_KEY_TYPE_URL
      • ECIES_AEAD_HKDF_PRIVATE_KEY_TYPE_URL

        public static final java.lang.String ECIES_AEAD_HKDF_PRIVATE_KEY_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 needed to handle HybridDecrypt and HybridEncrypt key types supported in Tink.

        Because HybridDecrypt and HybridEncrypt key types depend on Aead and Mac key types, this method also registers all Aead and Mac catalogues.

        Throws:
        java.security.GeneralSecurityException
      • register

        public static void register()
                             throws java.security.GeneralSecurityException
        Tries to register with the Registry all instances of Catalogue needed to handle HybridDecrypt and HybridEncrypt key types supported in Tink.

        Because HybridDecrypt and HybridEncrypt key types depend on Aead and Mac key types, this method also registers all Aead and Mac catalogues.

        Throws:
        java.security.GeneralSecurityException
        Since:
        1.2.0