Table of Contents

Class CertificateChainValidator

Namespace
iText.Signatures.Validation.V1
Assembly
itext.sign.dll

Validator class, which is expected to be used for certificates chain validation.

public class CertificateChainValidator
Inheritance
CertificateChainValidator
Inherited Members

Constructors

CertificateChainValidator(ValidatorChainBuilder)

Create new instance of CertificateChainValidator.

protected CertificateChainValidator(ValidatorChainBuilder builder)

Parameters

builder ValidatorChainBuilder

See ValidatorChainBuilder

Methods

AddCrlClient(ICrlClient)

Add ICrlClient to be used for CRL responses receiving.

[Obsolete("in favour of either SignatureValidationProperties.AddCrlClient(iText.Signatures.ICrlClient) or RevocationDataValidator.AddCrlClient(iText.Signatures.ICrlClient) . TODO DEVSIX-8398 To be removed.")]
public virtual CertificateChainValidator AddCrlClient(ICrlClient crlClient)

Parameters

crlClient ICrlClient

ICrlClient to be used for CRL responses receiving

Returns

CertificateChainValidator

same instance of CertificateChainValidator.

AddOcspClient(IOcspClient)

Add IOcspClient to be used for OCSP responses receiving.

[Obsolete("in favour of either SignatureValidationProperties.AddOcspClient(iText.Signatures.IOcspClient) or RevocationDataValidator.AddOcspClient(iText.Signatures.IOcspClient) . TODO DEVSIX-8398 To be removed.")]
public virtual CertificateChainValidator AddOcspClient(IOcspClient ocpsClient)

Parameters

ocpsClient IOcspClient

IOcspClient to be used for OCSP responses receiving

Returns

CertificateChainValidator

same instance of CertificateChainValidator.

Validate(ValidationReport, ValidationContext, IX509Certificate, DateTime)

Validate given certificate using provided validation date and required extensions.

public virtual ValidationReport Validate(ValidationReport result, ValidationContext context, IX509Certificate certificate, DateTime validationDate)

Parameters

result ValidationReport

ValidationReport which is populated with detailed validation results

context ValidationContext

the context in which to perform the validation

certificate IX509Certificate

iText.Commons.Bouncycastle.Cert.IX509Certificate to be validated

validationDate DateTime

DateTime against which certificate is expected to be validated. Usually signing date

Returns

ValidationReport

ValidationReport which contains both provided and new validation results.

Remarks

Validate given certificate using provided validation date and required extensions. Result is added into provided report.

ValidateCertificate(ValidationContext, IX509Certificate, DateTime)

Validate given certificate using provided validation date and required extensions.

public virtual ValidationReport ValidateCertificate(ValidationContext context, IX509Certificate certificate, DateTime validationDate)

Parameters

context ValidationContext

the validation context in which to validate the certificate chain

certificate IX509Certificate

iText.Commons.Bouncycastle.Cert.IX509Certificate to be validated

validationDate DateTime

DateTime against which certificate is expected to be validated. Usually signing date

Returns

ValidationReport

ValidationReport which contains detailed validation results.