public class ConfluentTrustManager extends X509ExtendedTrustManager
clientAuth
belongs to confluent cloud and then delegates to the
defaultTrustManager
for general certificate chain validation. It first verifies that
the subjectAltName
and if missing it verifies the subject
belongs to
confluent cloud.Constructor and Description |
---|
ConfluentTrustManager(Map<String,?> configs,
X509ExtendedTrustManager defaultTrustManager) |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String authType) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String authType,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String authType,
SSLEngine sslEngine) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String authType) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String authType,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String authType,
SSLEngine sslEngine) |
X509Certificate[] |
getAcceptedIssuers() |
public ConfluentTrustManager(Map<String,?> configs, X509ExtendedTrustManager defaultTrustManager)
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType, Socket socket) throws CertificateException
checkClientTrusted
in class X509ExtendedTrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType, Socket socket) throws CertificateException
checkServerTrusted
in class X509ExtendedTrustManager
CertificateException
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine sslEngine) throws CertificateException
checkClientTrusted
in class X509ExtendedTrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType, SSLEngine sslEngine) throws CertificateException
checkServerTrusted
in class X509ExtendedTrustManager
CertificateException
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException
CertificateException
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException
CertificateException
public X509Certificate[] getAcceptedIssuers()