public class ResourceCRLFetcher extends java.lang.Object implements CRLFetcher
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Logger instance.
|
Constructor and Description |
---|
ResourceCRLFetcher()
Creates a new instance using the specified resources for CRL data.
|
Modifier and Type | Method and Description |
---|---|
java.security.cert.X509CRL |
fetch(org.springframework.core.io.Resource crl)
Fetch the resource.
|
java.util.Set<java.security.cert.X509CRL> |
fetch(java.util.Set<org.springframework.core.io.Resource> crls)
Fetches a collection of crls from the specified resources
and returns a map of CRLs each tracked by its url.
|
java.security.cert.X509CRL |
fetch(java.lang.String crl)
Fetch the resource.
|
java.security.cert.X509CRL |
fetch(java.net.URI crl)
Fetch the resource.
|
java.security.cert.X509CRL |
fetch(java.net.URL crl)
Fetch the resource.
|
public ResourceCRLFetcher()
public java.util.Set<java.security.cert.X509CRL> fetch(java.util.Set<org.springframework.core.io.Resource> crls) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
CRLFetcher
fetch
in interface CRLFetcher
crls
- resources to retrievejava.io.IOException
- the exception thrown if resources cant be fetchedjava.security.cert.CRLException
- the exception thrown if resources cant be fetchedjava.security.cert.CertificateException
- the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.lang.String crl) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
fetch
in interface CRLFetcher
crl
- the resourcejava.io.IOException
- the exception thrown if resources cant be fetchedjava.security.cert.CRLException
- the exception thrown if resources cant be fetchedjava.security.cert.CertificateException
- the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(org.springframework.core.io.Resource crl) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
fetch
in interface CRLFetcher
crl
- the resourcejava.io.IOException
- the exception thrown if resources cant be fetchedjava.security.cert.CRLException
- the exception thrown if resources cant be fetchedjava.security.cert.CertificateException
- the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.net.URI crl) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
fetch
in interface CRLFetcher
crl
- the resourcejava.io.IOException
- the exception thrown if resources cant be fetchedjava.security.cert.CRLException
- the exception thrown if resources cant be fetchedjava.security.cert.CertificateException
- the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.net.URL crl) throws java.io.IOException, java.security.cert.CRLException, java.security.cert.CertificateException
fetch
in interface CRLFetcher
crl
- the resourcejava.io.IOException
- the exception thrown if resources cant be fetchedjava.security.cert.CRLException
- the exception thrown if resources cant be fetchedjava.security.cert.CertificateException
- the exception thrown if resources cant be fetched