Class RevocationChecker

  • All Implemented Interfaces:
    org.apache.http.ssl.TrustStrategy

    public class RevocationChecker
    extends Object
    implements org.apache.http.ssl.TrustStrategy
    Used for configuring a HTTP Client to check if the server's certificate is revoked. The check is performed against a static Certificate Revocation List (CRL) file. When configuring the SSLContext for a HttpClient, the RevocationChecker is set up as follows:
    
      HttpClientBuilder.create()
          .setSSLContext(SSLContexts.custom()
              .loadTrustMaterial(trustStore, new RevocationChecker(crlPath))
          ).build();