Enum CertificateSource

java.lang.Object
java.lang.Enum<CertificateSource>
com.itextpdf.signatures.validation.context.CertificateSource
All Implemented Interfaces:
Serializable, Comparable<CertificateSource>, java.lang.constant.Constable

public enum CertificateSource extends Enum<CertificateSource>
This enum lists all possible contexts related to the certificate origin in which a validation may take place
  • Enum Constant Details

    • CRL_ISSUER

      public static final CertificateSource CRL_ISSUER
      The context while validating a CRL issuer certificate.
    • OCSP_ISSUER

      public static final CertificateSource OCSP_ISSUER
      The context while validating a OCSP issuer certificate that is neither trusted nor CA.
    • CERT_ISSUER

      public static final CertificateSource CERT_ISSUER
      The context while validating a certificate issuer certificate.
    • SIGNER_CERT

      public static final CertificateSource SIGNER_CERT
      The context while validating a signer certificate.
    • TRUSTED

      public static final CertificateSource TRUSTED
      A certificate that is on a trusted list.
    • TIMESTAMP

      public static final CertificateSource TIMESTAMP
      The context while validating a timestamp issuer certificate.
  • Method Details

    • values

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