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) AddICrlClientto be used for CRL responses receiving.addOcspClient(IOcspClient ocspClient) AddIOcspClientto be used for OCSP responses receiving.voidvalidate(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
AddICrlClientto be used for CRL responses receiving.- Parameters:
-
crlClient-ICrlClientto be used for CRL responses receiving - Returns:
-
same instance of
RevocationDataValidator.
-
addOcspClient
AddIOcspClientto be used for OCSP responses receiving.- Parameters:
-
ocspClient-IOcspClientto 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-ValidationContextthe context -
certificate- the certificate to check revocation data for -
validationDate- validation date to check for
-