@RefreshScope @Component(value="crlDistributionPointRevocationChecker") public class CRLDistributionPointRevocationChecker extends AbstractCRLRevocationChecker
checkAll, logger| Constructor and Description |
|---|
CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache)
Creates a new instance that uses the given cache instance for CRL caching.
|
CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache,
boolean throwOnFetchFailure)
Creates a new instance that uses the given cache instance for CRL caching.
|
CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache,
CRLFetcher fetcher)
Instantiates a new CRL distribution point revocation checker.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addCRL(java.lang.Object id,
java.security.cert.X509CRL crl)
Records the addition of a new CRL entry.
|
protected java.util.List<java.security.cert.X509CRL> |
getCRLs(java.security.cert.X509Certificate cert)
Gets the collection of CRLs for the given certificate.
|
void |
setExpiredCRLPolicy(RevocationPolicy policy)
Sets the policy to apply when CRL data is expired.
|
void |
setThrowOnFetchFailure(boolean throwOnFetchFailure)
Throws exceptions if fetching crl fails.
|
void |
setUnavailableCRLPolicy(RevocationPolicy policy)
Sets the policy to apply when CRL data is unavailable.
|
check, getCRL, getExpiredCRLPolicy, getUnavailableCRLPolicy, init, setCheckAllpublic CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache)
crlCache - Cache for CRL data.public CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache,
boolean throwOnFetchFailure)
crlCache - Cache for CRL data.throwOnFetchFailure - the throw on fetch failurepublic CRLDistributionPointRevocationChecker(net.sf.ehcache.Cache crlCache,
CRLFetcher fetcher)
crlCache - the crl cachefetcher - the fetcher@Autowired
public void setThrowOnFetchFailure(@Value(value="${cas.x509.authn.crl.throw.failure:false}")
boolean throwOnFetchFailure)
throwOnFetchFailure - the throw on fetch failureprotected java.util.List<java.security.cert.X509CRL> getCRLs(java.security.cert.X509Certificate cert)
getCRLs in class AbstractCRLRevocationCheckercert - Certificate for which the CRL of the issuing CA should be retrieved.AbstractCRLRevocationChecker.getCRL(X509Certificate)protected boolean addCRL(java.lang.Object id,
java.security.cert.X509CRL crl)
AbstractCRLRevocationCheckeraddCRL in class AbstractCRLRevocationCheckerid - the id of the entry to keep track ofcrl - new CRL entry@Autowired(required=false)
public void setUnavailableCRLPolicy(@Qualifier(value="x509CrlUnavailableRevocationPolicy")
RevocationPolicy policy)
AbstractCRLRevocationCheckersetUnavailableCRLPolicy in class AbstractCRLRevocationCheckerpolicy - Revocation policy.@Autowired(required=false)
public void setExpiredCRLPolicy(@Qualifier(value="x509CrlExpiredRevocationPolicy")
RevocationPolicy policy)
AbstractCRLRevocationCheckersetExpiredCRLPolicy in class AbstractCRLRevocationCheckerpolicy - Revocation policy.