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 X509TrustManager
chain
- authType
- CertificateException
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
chain
- authType
- CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2021. All rights reserved.