public class TrustAllCertificateManager extends Object implements TrustManager, X509TrustManager
| 构造器和说明 |
|---|
TrustAllCertificateManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkClientTrusted(X509Certificate[] certs,
String authType) |
void |
checkServerTrusted(X509Certificate[] certs,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
boolean |
isClientTrusted(X509Certificate[] certs) |
boolean |
isServerTrusted(X509Certificate[] certs) |
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers 在接口中 X509TrustManagerpublic boolean isServerTrusted(X509Certificate[] certs)
public boolean isClientTrusted(X509Certificate[] certs)
public void checkServerTrusted(X509Certificate[] certs, String authType) throws CertificateException
checkServerTrusted 在接口中 X509TrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] certs, String authType) throws CertificateException
checkClientTrusted 在接口中 X509TrustManagerCertificateExceptionCopyright © 2020. All rights reserved.