Class RevocationDataValidator
java.lang.Object
com.itextpdf.signatures.validation.v1.RevocationDataValidator
Class that allows you to fetch and validate revocation data for the certificate.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class which contains validation related information about CRL response.static class
Class which contains validation related information about single OCSP response. -
Constructor Summary
ModifierConstructorDescriptionprotected
Creates newRevocationDataValidator
instance to validate certificate revocation data. -
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.
-
Constructor Details
-
RevocationDataValidator
Creates newRevocationDataValidator
instance to validate certificate revocation data.- Parameters:
-
builder
- SeeValidatorChainBuilder
-
-
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
-