Package com.google.crypto.tink.hybrid
Class HybridConfig
- java.lang.Object
-
- com.google.crypto.tink.hybrid.HybridConfig
-
public final class HybridConfig extends java.lang.ObjectStatic methods and constants for registering with theRegistryall instances ofHybridEncryptandHybridDecryptkey 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
HybridEncryptFactoryorHybridDecryptFactory.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringECIES_AEAD_HKDF_PRIVATE_KEY_TYPE_URLstatic java.lang.StringECIES_AEAD_HKDF_PUBLIC_KEY_TYPE_URLstatic com.google.crypto.tink.proto.RegistryConfigLATESTDeprecated.static com.google.crypto.tink.proto.RegistryConfigTINK_1_0_0Deprecated.static com.google.crypto.tink.proto.RegistryConfigTINK_1_1_0Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidinit()Deprecated.useregister()static voidregister()
-
-
-
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.GeneralSecurityExceptionDeprecated.useregister()Tries to register with theRegistryall instances ofCatalogueneeded to handle HybridDecrypt and HybridEncrypt key types supported in Tink.Because HybridDecrypt and HybridEncrypt key types depend on
AeadandMackey types, this method also registers all Aead and Mac catalogues.- Throws:
java.security.GeneralSecurityException
-
register
public static void register() throws java.security.GeneralSecurityExceptionTries to register with theRegistryall instances ofCatalogueneeded to handle HybridDecrypt and HybridEncrypt key types supported in Tink.Because HybridDecrypt and HybridEncrypt key types depend on
AeadandMackey types, this method also registers all Aead and Mac catalogues.- Throws:
java.security.GeneralSecurityException- Since:
- 1.2.0
-
-