Class SignatureConfig


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

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

    
     SignatureConfig.init();
     

    For more information on how to obtain and use instances of PublicKeySign or PublicKeyVerify, see PublicKeySignFactory or PublicKeyVerifyFactory.

    Since:
    1.0.0
    • Field Detail

      • ECDSA_PUBLIC_KEY_TYPE_URL

        public static final java.lang.String ECDSA_PUBLIC_KEY_TYPE_URL
      • ECDSA_PRIVATE_KEY_TYPE_URL

        public static final java.lang.String ECDSA_PRIVATE_KEY_TYPE_URL
      • ED25519_PUBLIC_KEY_TYPE_URL

        public static final java.lang.String ED25519_PUBLIC_KEY_TYPE_URL
      • ED25519_PRIVATE_KEY_TYPE_URL

        public static final java.lang.String ED25519_PRIVATE_KEY_TYPE_URL
      • RSA_PKCS1_PRIVATE_KEY_TYPE_URL

        public static final java.lang.String RSA_PKCS1_PRIVATE_KEY_TYPE_URL
      • RSA_PKCS1_PUBLIC_KEY_TYPE_URL

        public static final java.lang.String RSA_PKCS1_PUBLIC_KEY_TYPE_URL
      • RSA_PSS_PRIVATE_KEY_TYPE_URL

        public static final java.lang.String RSA_PSS_PRIVATE_KEY_TYPE_URL
      • RSA_PSS_PUBLIC_KEY_TYPE_URL

        public static final java.lang.String RSA_PSS_PUBLIC_KEY_TYPE_URL
      • TINK_1_0_0

        @Deprecated
        public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_0_0
        Deprecated.
        Call register() instead.
      • TINK_1_1_0

        @Deprecated
        public static final com.google.crypto.tink.proto.RegistryConfig TINK_1_1_0
        Deprecated.
        Call register() instead.
      • LATEST

        @Deprecated
        public static final com.google.crypto.tink.proto.RegistryConfig LATEST
        Deprecated.
        Call register() instead.
    • 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 PublicKeySign and PublicKeyVerify 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 needed to handle PublicKeySign and PublicKeyVerify key types supported in Tink.
        Throws:
        java.security.GeneralSecurityException
        Since:
        1.2.0