iText 7 7.1.8 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 (X509Certificate signCert, X509Certificate issuerCert, DateTime signDate)
  Checks the validity of the certificate, and calls the next verifier in the chain, if any. 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

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 ( X509Certificate  signCert,
X509Certificate  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.
Exceptions
Org.BouncyCastle.Security.GeneralSecurityException thrown if the certificate has expired, isn't valid yet, or if an exception has been thrown in Certificate#verify
System.IO.IOException Deprecated

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

iText.Signatures.CertificateVerifier.CertificateVerifier
CertificateVerifier(iText.Signatures.CertificateVerifier verifier)
Creates the final CertificateVerifier in a chain of verifiers.
Definition: CertificateVerifier.cs:68