Class SimpleCachingCrlFetcher
- java.lang.Object
-
- network.oxalis.commons.certvalidator.util.SimpleCachingCrlFetcher
-
- All Implemented Interfaces:
CrlFetcher
public class SimpleCachingCrlFetcher extends Object implements CrlFetcher
Simple implementation of CRL fetcher, which caches downloaded CRLs. If a CRL is not cached, or the Next update- field of a cached CRL indicates there is an updated CRL available, an updated CRL will immediately be downloaded.
-
-
Constructor Summary
Constructors Constructor Description SimpleCachingCrlFetcher(CrlCache crlCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected X509CRLdownload(String url)X509CRLget(String url)protected X509CRLhttpDownload(String url)
-
-
-
Field Detail
-
crlCache
protected CrlCache crlCache
-
-
Constructor Detail
-
SimpleCachingCrlFetcher
public SimpleCachingCrlFetcher(CrlCache crlCache)
-
-
Method Detail
-
get
public X509CRL get(String url) throws CertificateValidationException
- Specified by:
getin interfaceCrlFetcher- Throws:
CertificateValidationException
-
download
protected X509CRL download(String url) throws CertificateValidationException
- Throws:
CertificateValidationException
-
httpDownload
protected X509CRL httpDownload(String url) throws CertificateValidationException
- Throws:
CertificateValidationException
-
-