Class RevocationDataValidator
java.lang.Object
com.itextpdf.signatures.validation.v1.RevocationDataValidator
Class that allows you to fetch and validate revocation data for the certificate.
-
Method Summary
Modifier and TypeMethodDescriptionaddCrlClient
(ICrlClient crlClient) AddICrlClient
to be used for CRL responses receiving.addOcspClient
(IOcspClient ocspClient) AddIOcspClient
to be used for OCSP responses receiving.void
validate
(ValidationReport report, ValidationContext context, X509Certificate certificate, Date validationDate) Validates revocation data (Certificate Revocation List (CRL) Responses and OCSP Responses) of the certificate.
-
Method Details
-
addCrlClient
AddICrlClient
to be used for CRL responses receiving.- Parameters:
-
crlClient
-ICrlClient
to be used for CRL responses receiving - Returns:
-
same instance of
RevocationDataValidator
.
-
addOcspClient
AddIOcspClient
to be used for OCSP responses receiving.- Parameters:
-
ocspClient
-IOcspClient
to be used for OCSP responses receiving - Returns:
-
same instance of
RevocationDataValidator
.
-
validate
public void validate(ValidationReport report, ValidationContext context, X509Certificate certificate, Date validationDate) Validates revocation data (Certificate Revocation List (CRL) Responses and OCSP Responses) of the certificate.- Parameters:
-
report
- to store all the verification results -
context
-ValidationContext
the context -
certificate
- the certificate to check revocation data for -
validationDate
- validation date to check for
-