iText 8.0.5 API
iText.Signatures.RootStoreVerifier Class Reference

Verifies a certificate against a KeyStore containing trusted anchors. More...

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

Public Member Functions

  RootStoreVerifier (CertificateVerifier verifier)
  Creates a RootStoreVerifier in a chain of verifiers. More...
 
virtual void  SetRootStore (List< IX509Certificate > keyStore)
  Sets the Key Store against which a certificate can be checked. More...
 
override IList< VerificationOK Verify (IX509Certificate signCert, IX509Certificate issuerCert, DateTime signDate)
  Verifies a single certificate against a key store (if present). More...
 
- Public Member Functions inherited from iText.Signatures.CertificateVerifier
  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...
 

Package Attributes

List< IX509Certificate rootStore = null
  A key store against which certificates can be verified. More...
 
- Package Attributes inherited from iText.Signatures.CertificateVerifier
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

Verifies a certificate against a KeyStore containing trusted anchors.

Constructor & Destructor Documentation

◆ RootStoreVerifier()

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

Creates a RootStoreVerifier in a chain of verifiers.

Parameters
verifier the next verifier in the chain

Member Function Documentation

◆ SetRootStore()

virtual void iText.Signatures.RootStoreVerifier.SetRootStore ( List< IX509Certificate keyStore )
inlinevirtual

Sets the Key Store against which a certificate can be checked.

Parameters
keyStore a root store

◆ Verify()

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

Verifies a single certificate against a key store (if present).

Parameters
signCert the certificate to verify
issuerCert the issuer certificate
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 from iText.Signatures.CertificateVerifier.

Member Data Documentation

◆ rootStore

List<IX509Certificate> iText.Signatures.RootStoreVerifier.rootStore = null
package

A key store against which certificates can be verified.