public class MyX509TrustManager extends Object implements X509TrustManager
| Constructor and Description |
|---|
MyX509TrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
检查客户端证书
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
检查服务器端证书
|
X509Certificate[] |
getAcceptedIssuers()
返回受信任的X509证书数组
|
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerchain - authType - CertificateExceptionpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted in interface X509TrustManagerchain - authType - CertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerCopyright © 2021. All rights reserved.