Enum CertificateSource
- java.lang.Object
-
- java.lang.Enum<CertificateSource>
-
- com.itextpdf.signatures.validation.context.CertificateSource
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CertificateSource>
public enum CertificateSource extends java.lang.Enum<CertificateSource>
This enum lists all possible contexts related to the certificate origin in which a validation may take place
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CERT_ISSUER
The context while validating a certificate issuer certificate.CRL_ISSUER
The context while validating a CRL issuer certificate.OCSP_ISSUER
The context while validating a OCSP issuer certificate that is neither trusted nor CA.SIGNER_CERT
The context while validating a signer certificate.TIMESTAMP
The context while validating a timestamp issuer certificate.TRUSTED
A certificate that is on a trusted list.
-
Constructor Summary
Constructors Modifier Constructor Description private
CertificateSource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CertificateSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CertificateSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static CertificateSource[] 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 (CertificateSource c : CertificateSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificateSource 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
-
-