public abstract class AbstractCRLRevocationChecker extends Object implements RevocationChecker
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkAll
Flag to indicate whether all
crls should be checked for the cert resource.
|
protected org.slf4j.Logger |
logger
Logger instance.
|
| Constructor and Description |
|---|
AbstractCRLRevocationChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
addCRL(Object id,
X509CRL crl)
Records the addition of a new CRL entry.
|
void |
check(X509Certificate cert)
Checks the revocation status of the given certificate.
|
X509CRL |
getCRL(X509Certificate cert)
Gets the first fetched CRL for the given certificate.
|
protected abstract Collection<X509CRL> |
getCRLs(X509Certificate cert)
Gets the collection of CRLs for the given certificate.
|
void |
setCheckAll(boolean checkAll)
Indicates whether all resources should be checked,
or revocation should stop at the first resource
that produces the cert.
|
void |
setExpiredCRLPolicy(RevocationPolicy<X509CRL> policy)
Sets the policy to apply when CRL data is expired.
|
void |
setUnavailableCRLPolicy(RevocationPolicy<Void> policy)
Sets the policy to apply when CRL data is unavailable.
|
protected final org.slf4j.Logger logger
protected boolean checkAll
false.public void check(X509Certificate cert) throws GeneralSecurityException
check in interface RevocationCheckercert - Certificate to examine.GeneralSecurityException - If certificate has been revoked or the revocation
check fails for some reason such as revocation data not available.public void setUnavailableCRLPolicy(RevocationPolicy<Void> policy)
policy - Revocation policy.public void setExpiredCRLPolicy(RevocationPolicy<X509CRL> policy)
policy - Revocation policy.public final void setCheckAll(boolean checkAll)
checkAll - the check allpublic final X509CRL getCRL(X509Certificate cert)
cert - Certificate for which the CRL of the issuing CA should be retrieved.protected abstract boolean addCRL(Object id, X509CRL crl)
id - the id of the entry to keep track ofcrl - new CRL entryprotected abstract Collection<X509CRL> getCRLs(X509Certificate cert)
cert - Certificate for which the CRL of the issuing CA should be retrieved.Copyright © 2004-2015 Apereo. All Rights Reserved.