Class CRLValidator

    • Constructor Detail

      • CRLValidator

        public CRLValidator​(CertRevocationCheckMode revocationCheckMode,
                            boolean allowCertificatesWithoutCrlUrl,
                            org.apache.http.impl.client.CloseableHttpClient httpClient,
                            CRLCacheManager cacheManager,
                            Telemetry telemetryClient)
    • Method Detail

      • validateCertificateChains

        public boolean validateCertificateChains​(List<X509Certificate[]> certificateChains)
        Validates certificate chains against CRLs.
        Parameters:
        certificateChains - the verified certificate chains to validate
        Returns:
        true if validation passes, false otherwise
      • setTelemetryClientForKey

        public static void setTelemetryClientForKey​(HttpClientSettingsKey key,
                                                    Telemetry telemetryClient)
        Multiple sessions may share the same HttpClientSettingsKey thus CRL telemetry might be sent for wrong session. We accept this limitation.