类 TrustManagerProxy
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
org.apache.pulsar.common.util.TrustManagerProxy
- 所有已实现的接口:
TrustManager,X509TrustManager
This class wraps
X509ExtendedTrustManager and gives opportunity to refresh Trust-manager with refreshed certs
without changing SslContext.-
构造器概要
构造器构造器说明TrustManagerProxy(String caCertFile, int refreshDurationSec, ScheduledExecutorService executor) -
方法概要
修饰符和类型方法说明voidcheckClientTrusted(X509Certificate[] x509Certificates, String s) voidcheckClientTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) voidcheckServerTrusted(X509Certificate[] x509Certificates, String s) voidcheckServerTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine)
-
构造器详细资料
-
TrustManagerProxy
public TrustManagerProxy(String caCertFile, int refreshDurationSec, ScheduledExecutorService executor)
-
-
方法详细资料
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException -
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException -
getAcceptedIssuers
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException -
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException -
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException -
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException
-