@RefreshScope @Component(value="thresholdExpiredCRLRevocationPolicy") public class ThresholdExpiredCRLRevocationPolicy extends java.lang.Object implements RevocationPolicy<java.security.cert.X509CRL>
| Constructor and Description |
|---|
ThresholdExpiredCRLRevocationPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(java.security.cert.X509CRL crl)
Applies the policy.
|
void |
setThreshold(int threshold)
Sets the threshold period of time after which expired CRL data is rejected.
|
public void apply(java.security.cert.X509CRL crl)
throws ExpiredCRLException
apply in interface RevocationPolicy<java.security.cert.X509CRL>crl - CRL instance to evaluate.ExpiredCRLException - On expired CRL data. Check the exception type for exact detailsRevocationPolicy.apply(java.lang.Object)@Autowired
public void setThreshold(@Value(value="${cas.x509.authn.revocation.policy.threshold:172800}")
int threshold)
threshold - Number of seconds; MUST be non-negative integer.