Package com.google.crypto.tink.config
Class TinkConfig
- java.lang.Object
-
- com.google.crypto.tink.config.TinkConfig
-
public final class TinkConfig extends java.lang.ObjectStatic methods and constants for registering with theRegistryall instances of all key types supported in a particular release of Tink.To register all key types provided in the latest Tink version one can do:
TinkConfig.register();- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.crypto.tink.proto.RegistryConfigLATESTDeprecated.Configs are not supported anymore.static com.google.crypto.tink.proto.RegistryConfigTINK_1_0_0Deprecated.Configs are not supported anymore.static com.google.crypto.tink.proto.RegistryConfigTINK_1_1_0Deprecated.Configs are not supported anymore.
-
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 all key types supported in Tink.
-
-
-
Field Detail
-
TINK_1_0_0
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_0_0
Deprecated.Configs are not supported anymore. Please callTinkConfig.register();instead of accessing this variable.
-
TINK_1_1_0
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_1_0
Deprecated.Configs are not supported anymore. Please callTinkConfig.register();instead of accessing this variable.
-
LATEST
@Deprecated public static final com.google.crypto.tink.proto.RegistryConfig LATEST
Deprecated.Configs are not supported anymore. Please callTinkConfig.register();instead of accessing this variable.
-
-
Method Detail
-
init
@Deprecated public static void init() throws java.security.GeneralSecurityExceptionDeprecated.useregister()Tries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle all key types supported in Tink.- Throws:
java.security.GeneralSecurityException
-
register
public static void register() throws java.security.GeneralSecurityExceptionTries to register with theRegistryall instances ofCatalogueandKeyManagerneeded to handle all key types supported in Tink.- Throws:
java.security.GeneralSecurityException- Since:
- 1.2.0
-
-