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

A builder class to construct all necessary parts of a validation chain. More...

Public Member Functions

virtual SignatureValidator  BuildSignatureValidator (PdfDocument document)
  Create a new SignatureValidator instance with the current configuration. More...
 
virtual DocumentRevisionsValidator  BuildDocumentRevisionsValidator ()
  Create a bew DocumentRevisionsValidator instance with the current configuration. More...
 
virtual CertificateChainValidator  BuildCertificateChainValidator ()
  Create a new CertificateChainValidator instance. More...
 
virtual RevocationDataValidator  BuildRevocationDataValidator ()
  Create a new RevocationDataValidator instance This method can be used to create multiple validators. More...
 
virtual OCSPValidator  BuildOCSPValidator ()
  Create a new OCSPValidator instance. More...
 
virtual CRLValidator  BuildCRLValidator ()
  Create a new CRLValidator instance. More...
 
virtual ValidatorChainBuilder  WithDocumentRevisionsValidator (DocumentRevisionsValidator documentRevisionsValidator)
  Use this instance of a DocumentRevisionsValidator in the validation chain. More...
 
virtual ValidatorChainBuilder  WithCRLValidator (CRLValidator crlValidator)
  Use this instance of a CRLValidator in the validation chain. More...
 
virtual ValidatorChainBuilder  WithOCSPValidator (OCSPValidator ocspValidator)
  Use this instance of a OCSPValidator in the validation chain. More...
 
virtual ValidatorChainBuilder  WithRevocationDataValidator (RevocationDataValidator revocationDataValidator)
  Use this instance of a RevocationDataValidator in the validation chain. More...
 
virtual ValidatorChainBuilder  WithCertificateChainValidator (CertificateChainValidator certificateChainValidator)
  Use this instance of a CertificateChainValidator in the validation chain. More...
 
virtual ValidatorChainBuilder  WithSignatureValidationProperties (SignatureValidationProperties properties)
  Use this instance of a SignatureValidationProperties in the validation chain. More...
 
virtual ValidatorChainBuilder  WithIssuingCertificateRetriever (IssuingCertificateRetriever certificateRetriever)
  Use this instance of a iText.Signatures.IssuingCertificateRetriever in the validation chain. More...
 
virtual ValidatorChainBuilder  WithKnownCertificates (ICollection< IX509Certificate > knownCertificates)
  Adds known certificates to the iText.Signatures.IssuingCertificateRetriever. More...
 
virtual ValidatorChainBuilder  WithTrustedCertificates (ICollection< IX509Certificate > trustedCertificates)
  Sets the trusted certificates to the iText.Signatures.IssuingCertificateRetriever. More...
 
virtual IssuingCertificateRetriever  GetCertificateRetriever ()
  Retrieves the explicitly added or automatically created iText.Signatures.IssuingCertificateRetriever instance. More...
 
virtual SignatureValidationProperties  GetProperties ()
  Retrieves the explicitly added or automatically created SignatureValidationProperties instance. More...
 

Detailed Description

A builder class to construct all necessary parts of a validation chain.

A builder class to construct all necessary parts of a validation chain. The builder can be reused to create multiple instances of a validator.

Member Function Documentation

◆ BuildCertificateChainValidator()

virtual CertificateChainValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildCertificateChainValidator ( )
inlinevirtual

Create a new CertificateChainValidator instance.

Create a new CertificateChainValidator instance. This method can be used to create multiple validators.

Returns
a new instance of a CertificateChainValidator.

◆ BuildCRLValidator()

virtual CRLValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildCRLValidator ( )
inlinevirtual

Create a new CRLValidator instance.

Create a new CRLValidator instance. This method can be used to create multiple validators.

Returns
a new instance of a CRLValidator.

◆ BuildDocumentRevisionsValidator()

virtual DocumentRevisionsValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildDocumentRevisionsValidator ( )
inlinevirtual

Create a bew DocumentRevisionsValidator instance with the current configuration.

Create a bew DocumentRevisionsValidator instance with the current configuration. This method can be used to create multiple validators.

Returns
a new instance of a document revisions validator.

◆ BuildOCSPValidator()

virtual OCSPValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildOCSPValidator ( )
inlinevirtual

Create a new OCSPValidator instance.

Create a new OCSPValidator instance. This method can be used to create multiple validators.

Returns
a new instance of a OCSPValidator.

◆ BuildRevocationDataValidator()

virtual RevocationDataValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildRevocationDataValidator ( )
inlinevirtual

Create a new RevocationDataValidator instance This method can be used to create multiple validators.

Returns
a new instance of a RevocationDataValidator.

◆ BuildSignatureValidator()

virtual SignatureValidator iText.Signatures.Validation.V1.ValidatorChainBuilder.BuildSignatureValidator ( PdfDocument  document )
inlinevirtual

Create a new SignatureValidator instance with the current configuration.

Create a new SignatureValidator instance with the current configuration. This method can be used to create multiple validators.

Parameters
document

iText.Kernel.Pdf.PdfDocument instance which will be validated

Returns
a new instance of a signature validator.

◆ GetCertificateRetriever()

virtual IssuingCertificateRetriever iText.Signatures.Validation.V1.ValidatorChainBuilder.GetCertificateRetriever ( )
inlinevirtual

Retrieves the explicitly added or automatically created iText.Signatures.IssuingCertificateRetriever instance.

Returns
the explicitly added or automatically created iText.Signatures.IssuingCertificateRetriever instance.

◆ GetProperties()

virtual SignatureValidationProperties iText.Signatures.Validation.V1.ValidatorChainBuilder.GetProperties ( )
inlinevirtual

Retrieves the explicitly added or automatically created SignatureValidationProperties instance.

Returns
the explicitly added or automatically created SignatureValidationProperties instance.

◆ WithCertificateChainValidator()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithCertificateChainValidator ( CertificateChainValidator  certificateChainValidator )
inlinevirtual

Use this instance of a CertificateChainValidator in the validation chain.

Parameters
certificateChainValidator the CertificateChainValidator instance to use
Returns
the current ValidatorChainBuilder.

◆ WithCRLValidator()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithCRLValidator ( CRLValidator  crlValidator )
inlinevirtual

Use this instance of a CRLValidator in the validation chain.

Parameters
crlValidator the CRLValidator instance to use
Returns
the current ValidatorChainBuilder.

◆ WithDocumentRevisionsValidator()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithDocumentRevisionsValidator ( DocumentRevisionsValidator  documentRevisionsValidator )
inlinevirtual

Use this instance of a DocumentRevisionsValidator in the validation chain.

Parameters
documentRevisionsValidator the document revisions validator instance to use
Returns
the current ValidatorChainBuilder.

◆ WithIssuingCertificateRetriever()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithIssuingCertificateRetriever ( IssuingCertificateRetriever  certificateRetriever )
inlinevirtual

Use this instance of a iText.Signatures.IssuingCertificateRetriever in the validation chain.

Parameters
certificateRetriever the IssuingCertificateRetriever instance to use
Returns
the current ValidatorChainBuilder.

◆ WithKnownCertificates()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithKnownCertificates ( ICollection< IX509Certificate knownCertificates )
inlinevirtual

Adds known certificates to the iText.Signatures.IssuingCertificateRetriever.

Parameters
knownCertificates the list of known certificates to add
Returns
the current ValidatorChainBuilder.

◆ WithOCSPValidator()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithOCSPValidator ( OCSPValidator  ocspValidator )
inlinevirtual

Use this instance of a OCSPValidator in the validation chain.

Parameters
ocspValidator the OCSPValidator instance to use
Returns
the current ValidatorChainBuilder.

◆ WithRevocationDataValidator()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithRevocationDataValidator ( RevocationDataValidator  revocationDataValidator )
inlinevirtual

Use this instance of a RevocationDataValidator in the validation chain.

Parameters
revocationDataValidator the RevocationDataValidator instance to use
Returns
the current ValidatorChainBuilder.

◆ WithSignatureValidationProperties()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithSignatureValidationProperties ( SignatureValidationProperties  properties )
inlinevirtual

Use this instance of a SignatureValidationProperties in the validation chain.

Parameters
properties the SignatureValidationProperties instance to use
Returns
the current ValidatorChainBuilder.

◆ WithTrustedCertificates()

virtual ValidatorChainBuilder iText.Signatures.Validation.V1.ValidatorChainBuilder.WithTrustedCertificates ( ICollection< IX509Certificate trustedCertificates )
inlinevirtual

Sets the trusted certificates to the iText.Signatures.IssuingCertificateRetriever.

Parameters
trustedCertificates the list of trusted certificates to set
Returns
the current ValidatorChainBuilder.