Class OCSPValidator
- Namespace
- iText.Signatures.Validation.V1
- Assembly
- itext.sign.dll
Class that allows you to validate a single OCSP response.
public class OCSPValidator
- Inheritance
-
OCSPValidator
- Inherited Members
Constructors
OCSPValidator(ValidatorChainBuilder)
Creates new OCSPValidator instance.
protected OCSPValidator(ValidatorChainBuilder builder)
Parameters
builder
ValidatorChainBuilder
Methods
Validate(ValidationReport, ValidationContext, IX509Certificate, ISingleResponse, IBasicOcspResponse, DateTime)
Validates a certificate against single OCSP Response.
[Obsolete("starting from 8.0.5. TODO DEVSIX-8398 To be removed.")]
public virtual void Validate(ValidationReport report, ValidationContext context, IX509Certificate certificate, ISingleResponse singleResp, IBasicOcspResponse ocspResp, DateTime validationDate)
Parameters
report
ValidationReportto store all the chain verification results
context
ValidationContextthe context in which to perform the validation
certificate
IX509Certificatethe certificate to check for
singleResp
ISingleResponsesingle response to check
ocspResp
IBasicOcspResponsebasic OCSP response which contains single response to check
validationDate
DateTimevalidation date to check for
Validate(ValidationReport, ValidationContext, IX509Certificate, ISingleResponse, IBasicOcspResponse, DateTime, DateTime)
Validates a certificate against single OCSP Response.
public virtual void Validate(ValidationReport report, ValidationContext context, IX509Certificate certificate, ISingleResponse singleResp, IBasicOcspResponse ocspResp, DateTime validationDate, DateTime responseGenerationDate)
Parameters
report
ValidationReportto store all the chain verification results
context
ValidationContextthe context in which to perform the validation
certificate
IX509Certificatethe certificate to check for
singleResp
ISingleResponsesingle response to check
ocspResp
IBasicOcspResponsebasic OCSP response which contains single response to check
validationDate
DateTimevalidation date to check for
responseGenerationDate
DateTimetrusted date at which response is generated