Class MacConfig

    • Field Detail

      • HMAC_TYPE_URL

        public static final java.lang.String HMAC_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 Mac 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 Mac key types supported in Tink.
        Throws:
        java.security.GeneralSecurityException
        Since:
        1.2.0
      • registerStandardKeyTypes

        @Deprecated
        public static void registerStandardKeyTypes()
                                             throws java.security.GeneralSecurityException
        Deprecated.
        Registers with the com.google.crypto.tink.Registry all Mac 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