Table of Contents

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

See 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 ValidationReport

to store all the chain verification results

context ValidationContext

the context in which to perform the validation

certificate IX509Certificate

the certificate to check for

singleResp ISingleResponse

single response to check

ocspResp IBasicOcspResponse

basic OCSP response which contains single response to check

validationDate DateTime

validation 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 ValidationReport

to store all the chain verification results

context ValidationContext

the context in which to perform the validation

certificate IX509Certificate

the certificate to check for

singleResp ISingleResponse

single response to check

ocspResp IBasicOcspResponse

basic OCSP response which contains single response to check

validationDate DateTime

validation date to check for

responseGenerationDate DateTime

trusted date at which response is generated