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
|
protected InputStream |
getCrlResponse(X509Certificate cert,
URL urlt)
Get CRL response represented as
InputStream. |
Collection<byte[]> |
getEncoded(X509Certificate checkCert,
String url)
Fetches the CRL bytes from an URL.
|
int |
getUrlsSize() |
public CrlClientOnline()
public CrlClientOnline(String... crls)
crls - the CRLs as Stringspublic CrlClientOnline(URL... crls)
crls - the CRLs as URLspublic CrlClientOnline(Certificate[] chain)
chain - a certificate chainpublic Collection<byte[]> getEncoded(X509Certificate checkCert, String url) throws CertificateEncodingException
getEncoded in interface ICrlClientcheckCert - 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.CertificateEncodingException - if an encoding error occurs in X509Certificate.ICrlClient.getEncoded(java.security.cert.X509Certificate, java.lang.String)protected InputStream getCrlResponse(X509Certificate cert, URL urlt) throws IOException
InputStream.cert - X509Certificate certificate to get CRL response forurlt - URL link, which is expected to be used to get CRL response fromInputStreamIOException - if an I/O error occursprotected void addUrl(String url)
url - an URL in the form of a Stringprotected void addUrl(URL url)
url - an URL objectpublic int getUrlsSize()
Copyright © 1998–2024 Apryse Group NV. All rights reserved.