Package com.pdftools.signaturevalidation
Enum DataSource
- java.lang.Object
-
- java.lang.Enum<DataSource>
-
- com.pdftools.signaturevalidation.DataSource
-
- All Implemented Interfaces:
Flag
,java.io.Serializable
,java.lang.Comparable<DataSource>
public enum DataSource extends java.lang.Enum<DataSource> implements Flag
The source of data such as certificates, OCRPs or CRLs
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AATL
From the Adobe Approved Trust List (AATL)CUSTOM_TRUST_LIST
From the custom trust listDOWNLOAD
Data retrieved online or from the local download cacheEMBED_IN_DOCUMENT
Data embedded in the document security store (DSS)EMBED_IN_SIGNATURE
Data embedded in the signatureEUTL
From the European Trust List (EUTL)SYSTEM
Data from the local system cache
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMBED_IN_SIGNATURE
public static final DataSource EMBED_IN_SIGNATURE
Data embedded in the signature
Allowed data: certificates, OCSP, CRL
-
EMBED_IN_DOCUMENT
public static final DataSource EMBED_IN_DOCUMENT
Data embedded in the document security store (DSS)
Allowed data: certificates, OCSP, CRL
-
DOWNLOAD
public static final DataSource DOWNLOAD
Data retrieved online or from the local download cache
Allowed data: issuer certificates (for certificates that have caIssuers extension), OCSP, CRL
Note: only data for certificates that are time-valid at the current time can be downloaded. For example, OCSP and CRL can only be downloaded for certificates that have not yet expired.
-
SYSTEM
public static final DataSource SYSTEM
Data from the local system cache
Allowed data: certificates
-
AATL
public static final DataSource AATL
From the Adobe Approved Trust List (AATL)
NOTE: Support for this trust list has not yet been implemented.
Allowed data: issuer certificates
-
EUTL
public static final DataSource EUTL
From the European Trust List (EUTL)
NOTE: Support for this trust list has not yet been implemented.
Allowed data: issuer certificates
-
CUSTOM_TRUST_LIST
public static final DataSource CUSTOM_TRUST_LIST
From the custom trust list
The list of certificates defined by the
CustomTrustList
. If no custom trust list has been defined, this value has no effect.Allowed data: issuer certificates
-
-
Method Detail
-
values
public static DataSource[] 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 (DataSource c : DataSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataSource 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
-
-