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

Trusted certificates storage class to be used to configure trusted certificates in a particular way. More...

Public Member Functions

virtual void  AddGenerallyTrustedCertificates (ICollection< IX509Certificate > certificates)
  Add collection of certificates to be trusted for any possible usage. More...
 
virtual void  AddOcspTrustedCertificates (ICollection< IX509Certificate > certificates)
  Add collection of certificates to be trusted for OCSP response signing. More...
 
virtual void  AddCrlTrustedCertificates (ICollection< IX509Certificate > certificates)
  Add collection of certificates to be trusted for CRL signing. More...
 
virtual void  AddTimestampTrustedCertificates (ICollection< IX509Certificate > certificates)
  Add collection of certificates to be trusted for timestamping. More...
 
virtual void  AddCATrustedCertificates (ICollection< IX509Certificate > certificates)
  Add collection of certificates to be trusted to be CA certificates. More...
 
virtual bool  IsCertificateGenerallyTrusted (IX509Certificate certificate)
  Check if provided certificate is configured to be trusted for any purpose. More...
 
virtual bool  IsCertificateTrustedForOcsp (IX509Certificate certificate)
  Check if provided certificate is configured to be trusted for OCSP response generation. More...
 
virtual bool  IsCertificateTrustedForCrl (IX509Certificate certificate)
  Check if provided certificate is configured to be trusted for CRL generation. More...
 
virtual bool  IsCertificateTrustedForTimestamp (IX509Certificate certificate)
  Check if provided certificate is configured to be trusted for timestamp generation. More...
 
virtual bool  IsCertificateTrustedForCA (IX509Certificate certificate)
  Check if provided certificate is configured to be trusted to be CA. More...
 
virtual IX509Certificate  GetGenerallyTrustedCertificate (String certificateName)
  Get certificate, if any, which is trusted for any usage, which corresponds to the provided certificate name. More...
 
virtual IX509Certificate  GetCertificateTrustedForOcsp (String certificateName)
  Get certificate, if any, which is trusted for OCSP response generation, which corresponds to the provided certificate name. More...
 
virtual IX509Certificate  GetCertificateTrustedForCrl (String certificateName)
  Get certificate, if any, which is trusted for CRL generation, which corresponds to the provided certificate name. More...
 
virtual IX509Certificate  GetCertificateTrustedForTimestamp (String certificateName)
  Get certificate, if any, which is trusted for timestamp generation, which corresponds to the provided certificate name. More...
 
virtual IX509Certificate  GetCertificateTrustedForCA (String certificateName)
  Get certificate, if any, which is trusted to be a CA, which corresponds to the provided certificate name. More...
 
virtual IX509Certificate  GetKnownCertificate (String certificateName)
  Get certificate, if any, which corresponds to the provided certificate name. More...
 
virtual ICollection< IX509Certificate GetAllTrustedCertificates ()
  Get all the certificates, which where provided to this storage as trusted certificate. More...
 

Detailed Description

Trusted certificates storage class to be used to configure trusted certificates in a particular way.

Member Function Documentation

◆ AddCATrustedCertificates()

virtual void iText.Signatures.Validation.V1.TrustedCertificatesStore.AddCATrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add collection of certificates to be trusted to be CA certificates.

Add collection of certificates to be trusted to be CA certificates. These certificates are considered to be valid trust anchors for certificate generation.

Parameters
certificates

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ AddCrlTrustedCertificates()

virtual void iText.Signatures.Validation.V1.TrustedCertificatesStore.AddCrlTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add collection of certificates to be trusted for CRL signing.

Add collection of certificates to be trusted for CRL signing. These certificates are considered to be valid trust anchors for arbitrarily long certificate chain responsible for CRL generation.

Parameters
certificates

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ AddGenerallyTrustedCertificates()

virtual void iText.Signatures.Validation.V1.TrustedCertificatesStore.AddGenerallyTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add collection of certificates to be trusted for any possible usage.

Parameters
certificates

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ AddOcspTrustedCertificates()

virtual void iText.Signatures.Validation.V1.TrustedCertificatesStore.AddOcspTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add collection of certificates to be trusted for OCSP response signing.

Add collection of certificates to be trusted for OCSP response signing. These certificates are considered to be valid trust anchors for arbitrarily long certificate chain responsible for OCSP response generation.

Parameters
certificates

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ AddTimestampTrustedCertificates()

virtual void iText.Signatures.Validation.V1.TrustedCertificatesStore.AddTimestampTrustedCertificates ( ICollection< IX509Certificate certificates )
inlinevirtual

Add collection of certificates to be trusted for timestamping.

Add collection of certificates to be trusted for timestamping. These certificates are considered to be valid trust anchors for arbitrarily long certificate chain responsible for timestamp generation.

Parameters
certificates

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ GetAllTrustedCertificates()

virtual ICollection<IX509Certificate> iText.Signatures.Validation.V1.TrustedCertificatesStore.GetAllTrustedCertificates ( )
inlinevirtual

Get all the certificates, which where provided to this storage as trusted certificate.

Returns

System.Collections.ICollection of iText.Commons.Bouncycastle.Cert.IX509Certificate instances

◆ GetCertificateTrustedForCA()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetCertificateTrustedForCA ( String  certificateName )
inlinevirtual

Get certificate, if any, which is trusted to be a CA, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ GetCertificateTrustedForCrl()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetCertificateTrustedForCrl ( String  certificateName )
inlinevirtual

Get certificate, if any, which is trusted for CRL generation, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ GetCertificateTrustedForOcsp()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetCertificateTrustedForOcsp ( String  certificateName )
inlinevirtual

Get certificate, if any, which is trusted for OCSP response generation, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ GetCertificateTrustedForTimestamp()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetCertificateTrustedForTimestamp ( String  certificateName )
inlinevirtual

Get certificate, if any, which is trusted for timestamp generation, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ GetGenerallyTrustedCertificate()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetGenerallyTrustedCertificate ( String  certificateName )
inlinevirtual

Get certificate, if any, which is trusted for any usage, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ GetKnownCertificate()

virtual IX509Certificate iText.Signatures.Validation.V1.TrustedCertificatesStore.GetKnownCertificate ( String  certificateName )
inlinevirtual

Get certificate, if any, which corresponds to the provided certificate name.

Parameters
certificateName

System.String certificate name

Returns

iText.Commons.Bouncycastle.Cert.IX509Certificate which corresponds to the provided certificate name

◆ IsCertificateGenerallyTrusted()

virtual bool iText.Signatures.Validation.V1.TrustedCertificatesStore.IsCertificateGenerallyTrusted ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is configured to be trusted for any purpose.

Parameters
certificate

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

Returns

true is provided certificate is generally trusted, false otherwise

◆ IsCertificateTrustedForCA()

virtual bool iText.Signatures.Validation.V1.TrustedCertificatesStore.IsCertificateTrustedForCA ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is configured to be trusted to be CA.

Parameters
certificate

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

Returns

true is provided certificate is trusted for certificates generation, false otherwise

◆ IsCertificateTrustedForCrl()

virtual bool iText.Signatures.Validation.V1.TrustedCertificatesStore.IsCertificateTrustedForCrl ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is configured to be trusted for CRL generation.

Parameters
certificate

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

Returns

true is provided certificate is trusted for CRL generation, false otherwise

◆ IsCertificateTrustedForOcsp()

virtual bool iText.Signatures.Validation.V1.TrustedCertificatesStore.IsCertificateTrustedForOcsp ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is configured to be trusted for OCSP response generation.

Parameters
certificate

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

Returns

true is provided certificate is trusted for OCSP generation, false otherwise

◆ IsCertificateTrustedForTimestamp()

virtual bool iText.Signatures.Validation.V1.TrustedCertificatesStore.IsCertificateTrustedForTimestamp ( IX509Certificate  certificate )
inlinevirtual

Check if provided certificate is configured to be trusted for timestamp generation.

Parameters
certificate

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

Returns

true is provided certificate is trusted for timestamp generation, false otherwise