Enum SignatureAlgorithm

java.lang.Object
java.lang.Enum<SignatureAlgorithm>
com.pdftools.crypto.SignatureAlgorithm
All Implemented Interfaces:
Serializable, Comparable<SignatureAlgorithm>

public enum SignatureAlgorithm extends Enum<SignatureAlgorithm>

Cryptographic signature algorithm

  • Enum Constant Details

    • 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 Details

    • values

      public static SignatureAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SignatureAlgorithm valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null