iText 8.0.5 API
iText.Signatures.Validation.V1.CertificateChainValidator Class Reference

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

Public Member Functions

virtual iText.Signatures.Validation.V1.CertificateChainValidator  AddCrlClient (ICrlClient crlClient)
  Add iText.Signatures.ICrlClient to be used for CRL responses receiving. More...
 
virtual iText.Signatures.Validation.V1.CertificateChainValidator  AddOcspClient (IOcspClient ocpsClient)
  Add iText.Signatures.IOcspClient to be used for OCSP responses receiving. More...
 
virtual ValidationReport  ValidateCertificate (ValidationContext context, IX509Certificate certificate, DateTime validationDate)
  Validate given certificate using provided validation date and required extensions. More...
 
virtual ValidationReport  Validate (ValidationReport result, ValidationContext context, IX509Certificate certificate, DateTime validationDate)
  Validate given certificate using provided validation date and required extensions. More...
 

Package Functions

  CertificateChainValidator (ValidatorChainBuilder builder)
  Create new instance of CertificateChainValidator. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CertificateChainValidator()

iText.Signatures.Validation.V1.CertificateChainValidator.CertificateChainValidator ( ValidatorChainBuilder  builder )
inlinepackage

Create new instance of CertificateChainValidator.

Parameters
builder See ValidatorChainBuilder

Member Function Documentation

◆ AddCrlClient()

virtual iText.Signatures.Validation.V1.CertificateChainValidator iText.Signatures.Validation.V1.CertificateChainValidator.AddCrlClient ( ICrlClient  crlClient )
inlinevirtual

Add iText.Signatures.ICrlClient to be used for CRL responses receiving.

Parameters
crlClient

iText.Signatures.ICrlClient to be used for CRL responses receiving

Returns
same instance of CertificateChainValidator.

◆ AddOcspClient()

virtual iText.Signatures.Validation.V1.CertificateChainValidator iText.Signatures.Validation.V1.CertificateChainValidator.AddOcspClient ( IOcspClient  ocpsClient )
inlinevirtual

Add iText.Signatures.IOcspClient to be used for OCSP responses receiving.

Parameters
ocpsClient

iText.Signatures.IOcspClient to be used for OCSP responses receiving

Returns
same instance of CertificateChainValidator.

◆ Validate()

virtual ValidationReport iText.Signatures.Validation.V1.CertificateChainValidator.Validate ( ValidationReport  result,
ValidationContext  context,
IX509Certificate  certificate,
DateTime  validationDate 
)
inlinevirtual

Validate given certificate using provided validation date and required extensions.

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

Parameters
result

iText.Signatures.Validation.V1.Report.ValidationReport which is populated with detailed validation results

Parameters
context the context in which to perform the validation
certificate

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

Parameters
validationDate

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

Returns

iText.Signatures.Validation.V1.Report.ValidationReport which contains both provided and new validation results.

◆ ValidateCertificate()

virtual ValidationReport iText.Signatures.Validation.V1.CertificateChainValidator.ValidateCertificate ( ValidationContext  context,
IX509Certificate  certificate,
DateTime  validationDate 
)
inlinevirtual

Validate given certificate using provided validation date and required extensions.

Parameters
context the validation context in which to validate the certificate chain
certificate

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

Parameters
validationDate

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

Returns

iText.Signatures.Validation.V1.Report.ValidationReport which contains detailed validation results.