iText 9.0.0 API
iText.Signatures.CrlClientOnline Class Reference

An implementation of the CrlClient that fetches the CRL bytes from an URL. More...

Inheritance diagram for iText.Signatures.CrlClientOnline:
iText.Signatures.ICrlClient

Public Member Functions

  CrlClientOnline ()
  Creates a CrlClientOnline instance that will try to find a single CRL by walking through the certificate chain. More...
 
  CrlClientOnline (params String[] crls)
  Creates a CrlClientOnline instance using one or more URLs. More...
 
  CrlClientOnline (params Uri[] crls)
  Creates a CrlClientOnline instance using one or more URLs. More...
 
  CrlClientOnline (IX509Certificate[] chain)
  Creates a CrlClientOnline instance using a certificate chain. More...
 
virtual ICollection< byte[]>  GetEncoded (IX509Certificate checkCert, String url)
  Fetches the CRL bytes from an URL. More...
 
virtual int  GetUrlsSize ()
  Get an amount of URLs provided for this CRL. More...
 

Package Functions

virtual Stream  GetCrlResponse (IX509Certificate cert, Uri urlt)
  Get CRL response represented as System.IO.Stream. More...
 
virtual void  AddUrl (String url)
  Adds an URL to the list of CRL URLs More...
 
virtual void  AddUrl (Uri url)
  Adds an URL to the list of CRL URLs More...
 

Package Attributes

IList< Uri >  urls = new List()
  The URLs of the CRLs. More...
 

Detailed Description

An implementation of the CrlClient that fetches the CRL bytes from an URL.

Constructor & Destructor Documentation

◆ CrlClientOnline() [1/4]

iText.Signatures.CrlClientOnline.CrlClientOnline ( )
inline

Creates a CrlClientOnline instance that will try to find a single CRL by walking through the certificate chain.

◆ CrlClientOnline() [2/4]

iText.Signatures.CrlClientOnline.CrlClientOnline ( params String[]  crls )
inline

Creates a CrlClientOnline instance using one or more URLs.

Parameters
crls the CRLs as Strings

◆ CrlClientOnline() [3/4]

iText.Signatures.CrlClientOnline.CrlClientOnline ( params Uri[]  crls )
inline

Creates a CrlClientOnline instance using one or more URLs.

Parameters
crls the CRLs as URLs

◆ CrlClientOnline() [4/4]

iText.Signatures.CrlClientOnline.CrlClientOnline ( IX509Certificate[]  chain )
inline

Creates a CrlClientOnline instance using a certificate chain.

Parameters
chain a certificate chain

Member Function Documentation

◆ AddUrl() [1/2]

virtual void iText.Signatures.CrlClientOnline.AddUrl ( String  url )
inlinepackagevirtual

Adds an URL to the list of CRL URLs

Parameters
url an URL in the form of a String

◆ AddUrl() [2/2]

virtual void iText.Signatures.CrlClientOnline.AddUrl ( Uri  url )
inlinepackagevirtual

Adds an URL to the list of CRL URLs

Parameters
url an URL object

◆ GetCrlResponse()

virtual Stream iText.Signatures.CrlClientOnline.GetCrlResponse ( IX509Certificate  cert,
Uri  urlt 
)
inlinepackagevirtual

Get CRL response represented as System.IO.Stream.

Parameters
cert

iText.Commons.Bouncycastle.Cert.IX509Certificate certificate to get CRL response for

Parameters
urlt

System.Uri link, which is expected to be used to get CRL response from

Returns
CRL response bytes, represented as System.IO.Stream

◆ GetEncoded()

virtual ICollection iText.Signatures.CrlClientOnline.GetEncoded ( IX509Certificate  checkCert,
String  url 
)
inlinevirtual

Fetches the CRL bytes from an URL.

Fetches the CRL bytes from an URL. If no url is passed as parameter, the url will be obtained from the certificate. If you want to load a CRL from a local file, subclass this method and pass an URL with the path to the local file to this method. An other option is to use the CrlClientOffline class.

See also
ICrlClient.GetEncoded(iText.Commons.Bouncycastle.Cert.IX509Certificate, System.String)

Implements iText.Signatures.ICrlClient.

◆ GetUrlsSize()

virtual int iText.Signatures.CrlClientOnline.GetUrlsSize ( )
inlinevirtual

Get an amount of URLs provided for this CRL.

Returns

int number of URLs

Member Data Documentation

◆ urls

IList iText.Signatures.CrlClientOnline.urls = new List()
package

The URLs of the CRLs.