Package com.pdftools.crypto
Enum SignatureAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<SignatureAlgorithm>
Cryptographic signature algorithm
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionElliptic Curve Digital Signature AlgorithmRSA with PKCS#1 v1.5RSA with SSA-PSS (PKCS#1 v2.1) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureAlgorithmReturns 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.
-
Enum Constant Details
-
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
RSA with SSA-PSS (PKCS#1 v2.1)
This algorithm is generally recommended because it is considered a more secure alternative toRSA_RSA. However, it is not supported by all cryptographic providers. -
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
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
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 nameNullPointerException- if the argument is null
-