public class CrlClientOnline extends Object implements ICrlClient
Modifier and Type | Field and Description |
---|---|
protected List<URL> |
urls
The URLs of the CRLs.
|
Constructor and Description |
---|
CrlClientOnline()
Creates a CrlClientOnline instance that will try to find a single CRL by walking through the certificate chain.
|
CrlClientOnline(Certificate[] chain)
Creates a CrlClientOnline instance using a certificate chain.
|
CrlClientOnline(String... crls)
Creates a CrlClientOnline instance using one or more URLs.
|
CrlClientOnline(URL... crls)
Creates a CrlClientOnline instance using one or more URLs.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addUrl(String url)
Adds an URL to the list of CRL URLs
|
protected void |
addUrl(URL url)
Adds an URL to the list of CRL URLs
|
Collection |
getEncoded(X509Certificate checkCert, String url)
Fetches the CRL bytes from an URL.
|
int |
getUrlsSize() |
public CrlClientOnline()
public CrlClientOnline(String... crls)
crls
- the CRLs as Strings
public CrlClientOnline(URL... crls)
crls
- the CRLs as URLs
public CrlClientOnline(Certificate[] chain)
chain
- a certificate chain
public CollectiongetEncoded(X509Certificate checkCert, String url)
getEncoded
in interface ICrlClient
checkCert
- The certificate which a CRL URL can be obtained from.
url
- A CRL url if you don't want to obtain it from the certificate.
ICrlClient.getEncoded(java.security.cert.X509Certificate, java.lang.String)
protected void addUrl(String url)
url
- an URL in the form of a String
protected void addUrl(URL url)
url
- an URL object
public int getUrlsSize()
Copyright © 1998–2023 iText Group NV. All rights reserved.