Enum SignatureAlgorithm

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SignatureAlgorithm>

    public enum SignatureAlgorithm
    extends java.lang.Enum<SignatureAlgorithm>

    Cryptographic signature algorithm

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ECDSA
      Elliptic Curve Digital Signature Algorithm
      RSA_RSA
      RSA with PKCS#1 v1.5
      RSA_SSA_PSS
      RSA with SSA-PSS (PKCS#1 v2.1)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SignatureAlgorithm valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SignatureAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • RSA_RSA

        public static final SignatureAlgorithm RSA_RSA

        RSA with PKCS#1 v1.5

        This is the RSA with PKCS#1 v1.5 algorithm which is widely supported by cryptographic providers.
      • RSA_SSA_PSS

        public static final SignatureAlgorithm RSA_SSA_PSS

        RSA with SSA-PSS (PKCS#1 v2.1)

        This algorithm is generally recommended because it is considered a more secure alternative to RSA_RSA. However, it is not supported by all cryptographic providers.
      • ECDSA

        public static final SignatureAlgorithm ECDSA

        Elliptic Curve Digital Signature Algorithm

        This algorithm is generally recommended for new applications. However, it is not supported by all cryptographic providers.
    • Method Detail

      • values

        public static SignatureAlgorithm[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SignatureAlgorithm c : SignatureAlgorithm.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SignatureAlgorithm valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null