Class RevocationDataValidator
java.lang.Object
com.itextpdf.signatures.validation.RevocationDataValidator
Class that allows you to fetch and validate revocation data for the certificate.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass which contains validation related information about CRL response.static classClass which contains validation related information about single OCSP response. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates newRevocationDataValidatorinstance to validate certificate revocation data. -
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.
-
Constructor Details
-
RevocationDataValidator
Creates newRevocationDataValidatorinstance to validate certificate revocation data.- Parameters:
-
builder- SeeValidatorChainBuilder
-
-
Method Details
-
addCrlClient
AddICrlClientto be used for CRL responses receiving. These clients will be used regardless of theSignatureValidationProperties.OnlineFetchingsettings- Parameters:
-
crlClient-ICrlClientto be used for CRL responses receiving - Returns:
-
same instance of
RevocationDataValidator.
-
addOcspClient
AddIOcspClientto be used for OCSP responses receiving. These clients will be used regardless of theSignatureValidationProperties.OnlineFetchingsettings- 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
-