Class TinkConfig


  • public final class TinkConfig
    extends java.lang.Object
    Static methods and constants for registering with the Registry all 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.RegistryConfig LATEST
      Deprecated.
      Configs are not supported anymore.
      static com.google.crypto.tink.proto.RegistryConfig TINK_1_0_0
      Deprecated.
      Configs are not supported anymore.
      static com.google.crypto.tink.proto.RegistryConfig TINK_1_1_0
      Deprecated.
      Configs are not supported anymore.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void init()
      Deprecated.
      static void register()
      Tries to register with the Registry all instances of Catalogue and KeyManager needed to handle all key types supported in Tink.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 call TinkConfig.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 call TinkConfig.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 call TinkConfig.register(); instead of accessing this variable.
    • 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 all key types supported in Tink.
        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 all key types supported in Tink.
        Throws:
        java.security.GeneralSecurityException
        Since:
        1.2.0