iText 8.0.4 API
iText.Signatures.IssuingCertificateRetriever Class Reference

IIssuingCertificateRetriever default implementation. More...

Inheritance diagram for iText.Signatures.IssuingCertificateRetriever:
iText.Signatures.IIssuingCertificateRetriever

Public Member Functions

  IssuingCertificateRetriever ()
  Creates IssuingCertificateRetriever instance. More...
 
virtual IX509Certificate[]  RetrieveMissingCertificates (IX509Certificate[] chain)
  Retrieves missing certificates in chain using certificate Authority Information Access (AIA) Extension. More...
 
virtual IX509Certificate  RetrieveIssuerCertificate (IX509Certificate certificate)
  Retrieve issuer certificate for the provided certificate. More...
 
virtual IX509Certificate  RetrieveOCSPResponderCertificate (IBasicOcspResponse ocspResp)
  Retrieves OCSP responder certificate either from the response certs or trusted store in case responder certificate isn't found in /Certs. More...
 
virtual IX509Certificate[]  GetCrlIssuerCertificates (IX509Crl crl)
  Retrieves certificates that can be used to verify the signature on the CRL response using CRL Authority Information Access (AIA) Extension. More...
 
virtual void  SetTrustedCertificates (ICollection< IX509Certificate > certificates)
  Sets trusted certificate list to be used for the missing certificates retrieving by the issuer name. More...
 
virtual void  AddTrustedCertificates (ICollection< IX509Certificate > certificates)
  Add trusted certificates collection to trusted certificates storage. More...
 
virtual void  AddKnownCertificates (ICollection< IX509Certificate > certificates)
  Add certificates collection to known certificates storage, which is used for issuer certificates retrieval. More...
 
virtual bool  IsCertificateTrusted (IX509Certificate certificate)
  Check if provided certificate is present in trusted certificates storage. More...
 

Detailed Description

IIssuingCertificateRetriever default implementation.

Constructor & Destructor Documentation

◆ IssuingCertificateRetriever()

iText.Signatures.IssuingCertificateRetriever.IssuingCertificateRetriever ( )
inline

Creates IssuingCertificateRetriever instance.

Member Function Documentation

◆ AddKnownCertificates()

virtual void iText.Signatures.IssuingCertificateRetriever.AddKnownCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add certificates collection to known certificates storage, which is used for issuer certificates retrieval.

Parameters
certificates certificates System.Collections.ICollection to be added

◆ AddTrustedCertificates()

virtual void iText.Signatures.IssuingCertificateRetriever.AddTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add trusted certificates collection to trusted certificates storage.

Parameters
certificates certificates System.Collections.ICollection to be added

◆ GetCrlIssuerCertificates()

virtual IX509Certificate [] iText.Signatures.IssuingCertificateRetriever.GetCrlIssuerCertificates ( IX509Crl  crl )
inlinevirtual

Retrieves certificates that can be used to verify the signature on the CRL response using CRL Authority Information Access (AIA) Extension.

Parameters
crl

Retrieves certificates that can be used to verify the signature on the CRL response using CRL Authority Information Access (AIA) Extension.

Returns

Retrieves certificates that can be used to verify the signature on the CRL response using CRL Authority Information Access (AIA) Extension.

Implements iText.Signatures.IIssuingCertificateRetriever.

◆ IsCertificateTrusted()

virtual bool iText.Signatures.IssuingCertificateRetriever.IsCertificateTrusted ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is present in trusted certificates storage.

Parameters
certificate

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

Returns

true if certificate is present in trusted certificates storage, false otherwise

◆ RetrieveIssuerCertificate()

virtual IX509Certificate iText.Signatures.IssuingCertificateRetriever.RetrieveIssuerCertificate ( IX509Certificate  certificate )
inlinevirtual

Retrieve issuer certificate for the provided certificate.

Parameters
certificate

iText.Commons.Bouncycastle.Cert.IX509Certificate for which issuer certificate shall be retrieved

Returns
issuer certificate. null if there is no issuer certificate, or it cannot be retrieved.

◆ RetrieveMissingCertificates()

virtual IX509Certificate [] iText.Signatures.IssuingCertificateRetriever.RetrieveMissingCertificates ( IX509Certificate[]  chain )
inlinevirtual

Retrieves missing certificates in chain using certificate Authority Information Access (AIA) Extension.

Parameters
chain

Retrieves missing certificates in chain using certificate Authority Information Access (AIA) Extension.

Returns

Retrieves missing certificates in chain using certificate Authority Information Access (AIA) Extension.

Implements iText.Signatures.IIssuingCertificateRetriever.

◆ RetrieveOCSPResponderCertificate()

virtual IX509Certificate iText.Signatures.IssuingCertificateRetriever.RetrieveOCSPResponderCertificate ( IBasicOcspResponse  ocspResp )
inlinevirtual

Retrieves OCSP responder certificate either from the response certs or trusted store in case responder certificate isn't found in /Certs.

Parameters
ocspResp basic OCSP response to get responder certificate for
Returns
retrieved OCSP responder certificate or null in case it wasn't found.

◆ SetTrustedCertificates()

virtual void iText.Signatures.IssuingCertificateRetriever.SetTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Sets trusted certificate list to be used for the missing certificates retrieving by the issuer name.

Parameters
certificates

Sets trusted certificate list to be used for the missing certificates retrieving by the issuer name.

Implements iText.Signatures.IIssuingCertificateRetriever.