Class CrlChecker
java.lang.Object
org.codice.ddf.security.handler.pki.CrlChecker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanpassesCrlCheck(X509Certificate[] certs) Checks the given certs against the CRL.voidsetCrlLocation(String location) Sets the location of the CRL.
-
Field Details
-
CRL_PROPERTY_KEY
- See Also:
-
-
Constructor Details
-
CrlChecker
public CrlChecker(ddf.security.audit.SecurityLogger securityLogger)
-
-
Method Details
-
passesCrlCheck
Checks the given certs against the CRL. The CRL is configured in this class's constructor method.- Parameters:
certs- certificates to be checked against the CRL- Returns:
- true if one of the certs passes the CRL or if CRL revocation is disabled, false if they are all revoked.
-
setCrlLocation
Sets the location of the CRL. Enables CRL checking if property is set, disables it otherwise- Parameters:
location- Location of the DER-encoded CRL file that should be used to check certificate revocation.
-