Table of Contents

Class CrlClientOnline

Namespace
iText.Signatures
Assembly
itext.sign.dll

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

public class CrlClientOnline : ICrlClient
Inheritance
CrlClientOnline
Implements
Inherited Members

Constructors

CrlClientOnline()

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

public CrlClientOnline()

CrlClientOnline(params string[])

Creates a CrlClientOnline instance using one or more URLs.

public CrlClientOnline(params string[] crls)

Parameters

crls string[]

the CRLs as Strings

CrlClientOnline(params Uri[])

Creates a CrlClientOnline instance using one or more URLs.

public CrlClientOnline(params Uri[] crls)

Parameters

crls Uri[]

the CRLs as URLs

CrlClientOnline(IX509Certificate[])

Creates a CrlClientOnline instance using a certificate chain.

public CrlClientOnline(IX509Certificate[] chain)

Parameters

chain IX509Certificate[]

a certificate chain

Fields

urls

The URLs of the CRLs.

protected IList<Uri> urls

Field Value

IList<Uri>

Methods

AddUrl(string)

Adds an URL to the list of CRL URLs

protected virtual void AddUrl(string url)

Parameters

url string

an URL in the form of a String

AddUrl(Uri)

Adds an URL to the list of CRL URLs

protected virtual void AddUrl(Uri url)

Parameters

url Uri

an URL object

GetCrlResponse(IX509Certificate, Uri)

Get CRL response represented as Stream.

protected virtual Stream GetCrlResponse(IX509Certificate cert, Uri urlt)

Parameters

cert IX509Certificate

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

urlt Uri

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

Returns

Stream

CRL response bytes, represented as Stream

GetEncoded(IX509Certificate, string)

Fetches the CRL bytes from an URL.

public virtual ICollection<byte[]> GetEncoded(IX509Certificate checkCert, string url)

Parameters

checkCert IX509Certificate
url string

Returns

ICollection<byte[]>

Remarks

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
GetEncoded(IX509Certificate, string)

GetUrlsSize()

Get an amount of URLs provided for this CRL.

public virtual int GetUrlsSize()

Returns

int

int number of URLs