public class DefaultTrustManager extends X509ExtendedTrustManager
X509ExtendedTrustManager
的原因见:https://blog.csdn.net/ghaohao/article/details/79454913Modifier and Type | Field and Description |
---|---|
static DefaultTrustManager |
INSTANCE
默认的全局单例默认信任管理器,默认信任所有客户端和服务端证书
|
Constructor and Description |
---|
DefaultTrustManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s,
SSLEngine sslEngine) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s,
SSLEngine sslEngine) |
X509Certificate[] |
getAcceptedIssuers() |
public static DefaultTrustManager INSTANCE
public X509Certificate[] getAcceptedIssuers()
public void checkClientTrusted(X509Certificate[] chain, String authType)
public void checkServerTrusted(X509Certificate[] chain, String authType)
public void checkClientTrusted(X509Certificate[] x509Certificates, String s, Socket socket)
checkClientTrusted
in class X509ExtendedTrustManager
public void checkServerTrusted(X509Certificate[] x509Certificates, String s, Socket socket)
checkServerTrusted
in class X509ExtendedTrustManager
public void checkClientTrusted(X509Certificate[] x509Certificates, String s, SSLEngine sslEngine)
checkClientTrusted
in class X509ExtendedTrustManager
public void checkServerTrusted(X509Certificate[] x509Certificates, String s, SSLEngine sslEngine)
checkServerTrusted
in class X509ExtendedTrustManager
Copyright © 2024. All rights reserved.