Modifier and Type | Field | Description |
---|---|---|
protected List<URL> |
urls |
The URLs of the CRLs.
|
Constructor | Description |
---|---|
CrlClientOnline() |
Creates a CrlClientOnline instance that will try to find
a single CRL by walking through the 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.
|
CrlClientOnline(Certificate[] chain) |
Creates a CrlClientOnline instance using a certificate chain.
|
Modifier and Type | Method | 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<byte[]> |
getEncoded(X509Certificate checkCert,
String url) |
Fetches the CRL bytes from an URL.
|
public CrlClientOnline()
public CrlClientOnline(String... crls)
public CrlClientOnline(URL... crls)
public CrlClientOnline(Certificate[] chain)
protected void addUrl(String url)
url
- an URL in the form of a Stringprotected void addUrl(URL url)
url
- an URL objectpublic Collection<byte[]> getEncoded(X509Certificate checkCert, String url)
getEncoded
in interface CrlClient
checkCert
- the certificate from which a CRL URL can be obtainedurl
- a CRL url if you don't want to obtain it from the certificateCrlClient.getEncoded(java.security.cert.X509Certificate, java.lang.String)
Copyright © 2018. All rights reserved.