com.aliyuncs.http
类 X509TrustAll
java.lang.Object
com.aliyuncs.http.X509TrustAll
- 所有已实现的接口:
- HostnameVerifier, TrustManager, X509TrustManager
public final class X509TrustAll
- extends Object
- implements X509TrustManager, HostnameVerifier
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509TrustAll
public X509TrustAll()
verify
public boolean verify(String hostname,
SSLSession session)
- 指定者:
- 接口
HostnameVerifier
中的 verify
checkClientTrusted
public void checkClientTrusted(X509Certificate[] arg0,
String arg1)
throws CertificateException
- 指定者:
- 接口
X509TrustManager
中的 checkClientTrusted
- 抛出:
CertificateException
checkServerTrusted
public void checkServerTrusted(X509Certificate[] arg0,
String arg1)
throws CertificateException
- 指定者:
- 接口
X509TrustManager
中的 checkServerTrusted
- 抛出:
CertificateException
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- 指定者:
- 接口
X509TrustManager
中的 getAcceptedIssuers
restoreSSLCertificate
public static void restoreSSLCertificate()
ignoreSSLCertificate
public static void ignoreSSLCertificate()
Copyright © 2017. All Rights Reserved.