Class OCSPValidator
java.lang.Object
com.itextpdf.signatures.validation.OCSPValidator
Class that allows you to validate a single OCSP response.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOCSPValidator(ValidatorChainBuilder builder) Creates newOCSPValidatorinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(ValidationReport report, ValidationContext context, X509Certificate certificate, ISingleResp singleResp, IBasicOCSPResp ocspResp, Date validationDate, Date responseGenerationDate) Validates a certificate against single OCSP Response.
-
Constructor Details
-
OCSPValidator
Creates newOCSPValidatorinstance.- Parameters:
builder- SeeValidatorChainBuilder
-
-
Method Details
-
validate
public void validate(ValidationReport report, ValidationContext context, X509Certificate certificate, ISingleResp singleResp, IBasicOCSPResp ocspResp, Date validationDate, Date responseGenerationDate) Validates a certificate against single OCSP Response.- Parameters:
report- to store all the chain verification resultscontext- the context in which to perform the validationcertificate- the certificate to check forsingleResp- single response to checkocspResp- basic OCSP response which contains single response to checkvalidationDate- validation date to check forresponseGenerationDate- trusted date at which response is generated
-