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
crlsstring[]the CRLs as Strings
CrlClientOnline(params Uri[])
Creates a CrlClientOnline instance using one or more URLs.
public CrlClientOnline(params Uri[] crls)
Parameters
crlsUri[]the CRLs as URLs
CrlClientOnline(IX509Certificate[])
Creates a CrlClientOnline instance using a certificate chain.
public CrlClientOnline(IX509Certificate[] chain)
Parameters
chainIX509Certificate[]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
urlstringan 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
urlUrian URL object
GetCrlResponse(IX509Certificate, Uri)
Get CRL response represented as Stream.
protected virtual Stream GetCrlResponse(IX509Certificate cert, Uri urlt)
Parameters
certIX509CertificateiText.Commons.Bouncycastle.Cert.IX509Certificate certificate to get CRL response for
urltUriSystem.Uri link, which is expected to be used to get CRL response from
Returns
GetEncoded(IX509Certificate, string)
Fetches the CRL bytes from an URL.
public virtual ICollection<byte[]> GetEncoded(IX509Certificate checkCert, string url)
Parameters
checkCertIX509Certificateurlstring
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
GetUrlsSize()
Get an amount of URLs provided for this CRL.
public virtual int GetUrlsSize()
Returns
- int
intnumber of URLs