iText 9.0.0 API
iText.Signatures.CertificateVerifier Class Reference

Superclass for a series of certificate verifiers that will typically be used in a chain. More...

Inheritance diagram for iText.Signatures.CertificateVerifier:
iText.Signatures.RootStoreVerifier iText.Signatures.CRLVerifier iText.Signatures.LtvVerifier iText.Signatures.OCSPVerifier

Public Member Functions

  CertificateVerifier (iText.Signatures.CertificateVerifier verifier)
  Creates the final CertificateVerifier in a chain of verifiers. More...
 
virtual void  SetOnlineCheckingAllowed (bool onlineCheckingAllowed)
  Decide whether or not online checking is allowed. More...
 
virtual IList< VerificationOK Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate)
  Checks the validity of the certificate, and calls the next verifier in the chain, if any. More...
 

Package Attributes

iText.Signatures.CertificateVerifier  verifier
  The previous CertificateVerifier in the chain of verifiers. More...
 
bool  onlineCheckingAllowed = true
  Indicates if going online to verify a certificate is allowed. More...
 

Detailed Description

Superclass for a series of certificate verifiers that will typically be used in a chain.

Superclass for a series of certificate verifiers that will typically be used in a chain. It wraps another CertificateVerifier that is the next element in the chain of which the verify() method will be called.

Constructor & Destructor Documentation

◆ CertificateVerifier()

iText.Signatures.CertificateVerifier.CertificateVerifier ( iText.Signatures.CertificateVerifier  verifier )
inline

Creates the final CertificateVerifier in a chain of verifiers.

Parameters
verifier the previous verifier in the chain

Member Function Documentation

◆ SetOnlineCheckingAllowed()

virtual void iText.Signatures.CertificateVerifier.SetOnlineCheckingAllowed ( bool  onlineCheckingAllowed )
inlinevirtual

Decide whether or not online checking is allowed.

Parameters
onlineCheckingAllowed a boolean indicating whether the certificate can be verified using online verification results.

◆ Verify()

virtual IList<VerificationOK> iText.Signatures.CertificateVerifier.Verify ( IX509Certificate  signCert,
IX509Certificate  issuerCert,
DateTime  signDate 
)
inlinevirtual

Checks the validity of the certificate, and calls the next verifier in the chain, if any.

Parameters
signCert the certificate that needs to be checked
issuerCert its issuer
signDate the date the certificate needs to be valid
Returns
a list of VerificationOK objects. The list will be empty if the certificate couldn't be verified.

Reimplemented in iText.Signatures.LtvVerifier, iText.Signatures.OCSPVerifier, iText.Signatures.CRLVerifier, and iText.Signatures.RootStoreVerifier.

Member Data Documentation

◆ onlineCheckingAllowed

bool iText.Signatures.CertificateVerifier.onlineCheckingAllowed = true
package

Indicates if going online to verify a certificate is allowed.

◆ verifier

iText.Signatures.CertificateVerifier iText.Signatures.CertificateVerifier.verifier
package

The previous CertificateVerifier in the chain of verifiers.