public class ResourceCRLRevocationChecker extends AbstractCRLRevocationChecker implements org.springframework.beans.factory.InitializingBean
X509CredentialsAuthenticationHandler.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_REFRESH_INTERVAL
Default refresh interval is 1 hour.
|
checkAll, logger| Constructor and Description |
|---|
ResourceCRLRevocationChecker(CRLFetcher fetcher,
org.springframework.core.io.Resource[] crls)
Instantiates a new Resource cRL revocation checker.
|
ResourceCRLRevocationChecker(org.springframework.core.io.Resource crl)
Creates a new instance using the specified resource for CRL data.
|
ResourceCRLRevocationChecker(org.springframework.core.io.Resource[] crls)
Creates a new instance using the specified resources for CRL data.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addCRL(Object issuer,
X509CRL crl)
Records the addition of a new CRL entry.
|
void |
afterPropertiesSet()
Initializes the process that periodically fetches CRL data.
|
protected void |
finalize() |
protected Collection<X509CRL> |
getCRLs(X509Certificate cert)
Gets the collection of CRLs for the given certificate.
|
protected CRLFetcher |
getFetcher() |
protected Set<org.springframework.core.io.Resource> |
getResources() |
void |
setRefreshInterval(int seconds)
Sets the interval at which CRL data should be reloaded from CRL resources.
|
check, getCRL, setCheckAll, setExpiredCRLPolicy, setUnavailableCRLPolicypublic static final int DEFAULT_REFRESH_INTERVAL
public ResourceCRLRevocationChecker(org.springframework.core.io.Resource crl)
crl - Resource containing CRL data. MUST NOT be null.public ResourceCRLRevocationChecker(org.springframework.core.io.Resource[] crls)
crls - Resources containing CRL data. MUST NOT be null and MUST have
at least one non-null element.public ResourceCRLRevocationChecker(CRLFetcher fetcher, org.springframework.core.io.Resource[] crls)
fetcher - the fetchercrls - the crlspublic void setRefreshInterval(@Min(value=1L)
int seconds)
seconds - Refresh interval in seconds; MUST be positive integer.public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected CRLFetcher getFetcher()
protected Set<org.springframework.core.io.Resource> getResources()
protected boolean addCRL(Object issuer, X509CRL crl)
AbstractCRLRevocationCheckeraddCRL in class AbstractCRLRevocationCheckerissuer - the id of the entry to keep track ofcrl - new CRL entryprotected Collection<X509CRL> getCRLs(X509Certificate cert)
AbstractCRLRevocationCheckergetCRLs in class AbstractCRLRevocationCheckercert - Certificate for which the CRL of the issuing CA should be retrieved.Copyright © 2004-2015 Apereo. All Rights Reserved.