Enum DataSource

java.lang.Object
java.lang.Enum<DataSource>
com.pdftools.signaturevalidation.DataSource
All Implemented Interfaces:
Flag, Serializable, Comparable<DataSource>

public enum DataSource extends Enum<DataSource> implements Flag

The source of data such as certificates, OCRPs or CRLs

  • Enum Constant Details

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

    • values

      public static DataSource[] 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 DataSource 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