public class LazyOpensslCRLStoreSpi extends AbstractCRLStoreSPI
This class is thread safe.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,CachedElement<java.util.List<java.security.cert.X509CRL>>> |
cachedCRLsByHash |
private java.io.File |
directory |
private boolean |
openssl1Mode |
private static java.lang.String |
SUFFIX |
factory, observers, params, updateInterval| Constructor and Description |
|---|
LazyOpensslCRLStoreSpi(java.lang.String path,
long crlUpdateInterval,
ObserversHandler observers,
boolean openssl1Mode)
Creates a new CRL store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
private java.util.Collection<java.security.cert.X509CRL> |
filterByIssuer(javax.security.auth.x500.X500Principal issuer,
java.util.Collection<java.security.cert.X509CRL> all) |
protected java.util.Collection<java.security.cert.X509CRL> |
getCRLForIssuer(javax.security.auth.x500.X500Principal issuer) |
protected java.util.Collection<java.security.cert.X509CRL> |
getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw) |
long |
getUpdateInterval() |
protected java.security.cert.X509CRL |
loadCRL(java.io.File file) |
protected java.security.cert.X509CRL |
reloadCRL(java.io.File location) |
void |
setUpdateInterval(long newInterval) |
engineGetCertificates, engineGetCRLs, notifyObserversprivate static final java.lang.String SUFFIX
private final java.io.File directory
private final boolean openssl1Mode
private java.util.Map<java.lang.String,CachedElement<java.util.List<java.security.cert.X509CRL>>> cachedCRLsByHash
public LazyOpensslCRLStoreSpi(java.lang.String path,
long crlUpdateInterval,
ObserversHandler observers,
boolean openssl1Mode)
throws java.security.InvalidAlgorithmParameterException
path - pathcrlUpdateInterval - crl update intervalobservers - observers handleropenssl1Mode - openssl 1 modejava.security.InvalidAlgorithmParameterException - invalid algorithm parameter exceptionprotected java.security.cert.X509CRL loadCRL(java.io.File file)
throws java.io.IOException,
java.security.cert.CRLException,
java.net.URISyntaxException
java.io.IOExceptionjava.security.cert.CRLExceptionjava.net.URISyntaxExceptionpublic void setUpdateInterval(long newInterval)
setUpdateInterval in class AbstractCRLStoreSPIpublic long getUpdateInterval()
public void dispose()
dispose in class AbstractCRLStoreSPIprotected java.security.cert.X509CRL reloadCRL(java.io.File location)
private java.util.Collection<java.security.cert.X509CRL> filterByIssuer(javax.security.auth.x500.X500Principal issuer,
java.util.Collection<java.security.cert.X509CRL> all)
protected java.util.Collection<java.security.cert.X509CRL> getCRLForIssuer(javax.security.auth.x500.X500Principal issuer)
getCRLForIssuer in class AbstractCRLStoreSPIprotected java.util.Collection<java.security.cert.X509CRL> getCRLWithMatcher(java.security.cert.CRLSelector selectorRaw)
getCRLWithMatcher in class AbstractCRLStoreSPI