Class ConfluentTrustManagerHelper
java.lang.Object
io.confluent.kafka.client.plugins.ssl.ConfluentTrustManagerHelper
Helper class to share code for trust manager implementations between io.confluent.kafka.client.plugins.ssl.ConfluentTrustManager and io.confluent.kafka.server.plugins.ssl.ConfluentTrustManager from broker-plugins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionConfluentTrustManagerHelper(Map<String, ?> configs, Optional<org.apache.kafka.common.metrics.Sensor> minCertExpirySensor) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.server.traffic.TrafficNetworkIdRoutesbooleanisConfluentCert(X509Certificate cert, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier) static Set<CertificateId> revokedCertificateIds(Map<String, ?> config) booleanverifyClientCerts(X509Certificate[] x509Certificates, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier) booleanverifyServerCerts(X509Certificate[] x509Certificates, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier)
-
Constructor Details
-
ConfluentTrustManagerHelper
-
-
Method Details
-
verifyClientCerts
public boolean verifyClientCerts(X509Certificate[] x509Certificates, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier) throws CertificateException - Throws:
CertificateException
-
verifyServerCerts
public boolean verifyServerCerts(X509Certificate[] x509Certificates, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier) throws CertificateException - Throws:
CertificateException
-
isConfluentCert
public boolean isConfluentCert(X509Certificate cert, ConfluentTrustManagerHelper.AltNameDnsDomainSuffixVerifier altNameDnsDomainSuffixVerifier) throws CertificateException - Throws:
CertificateException
-
getSubjectAltNames
-
revokedCertificateIds
-
getNetworkRoutes
public org.apache.kafka.server.traffic.TrafficNetworkIdRoutes getNetworkRoutes() throws CertificateException- Throws:
CertificateException
-