Package com.pdftools.crypto
Enum SignatureFormat
- java.lang.Object
-
- java.lang.Enum<SignatureFormat>
-
- com.pdftools.crypto.SignatureFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SignatureFormat>
public enum SignatureFormat extends java.lang.Enum<SignatureFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADBE_PKCS7_DETACHED
Legacy PAdES Basic signature (PDF 1.6)ETSI_CADES_DETACHED
PAdES signature (PDF 2.0)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SignatureFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SignatureFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADBE_PKCS7_DETACHED
public static final SignatureFormat ADBE_PKCS7_DETACHED
Legacy PAdES Basic signature (PDF 1.6)
Legacy PAdES Basic signature specified by ETSI TS 102 778, Part 2. This type can be used for document signatures and certification (MDP) signatures.
-
ETSI_CADES_DETACHED
public static final SignatureFormat ETSI_CADES_DETACHED
PAdES signature (PDF 2.0)
PAdES signature as specified by European Standard ETSI EN 319 142. This type can be used for document signatures and certification (MDP) signatures.
-
-
Method Detail
-
values
public static SignatureFormat[] 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 (SignatureFormat c : SignatureFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SignatureFormat 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 namejava.lang.NullPointerException
- if the argument is null
-
-