Class CrlChecker

java.lang.Object
org.codice.ddf.security.handler.pki.CrlChecker

public class CrlChecker extends Object
  • Field Details

  • Constructor Details

    • CrlChecker

      public CrlChecker(ddf.security.audit.SecurityLogger securityLogger)
  • Method Details

    • passesCrlCheck

      public boolean passesCrlCheck(X509Certificate[] certs)
      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

      public void setCrlLocation(String location)
      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.