com.aliyuncs.http
类 X509TrustAll

java.lang.Object
  继承者 com.aliyuncs.http.X509TrustAll
所有已实现的接口:
HostnameVerifier, TrustManager, X509TrustManager

public final class X509TrustAll
extends Object
implements X509TrustManager, HostnameVerifier


构造方法摘要
X509TrustAll()
           
 
方法摘要
 void checkClientTrusted(X509Certificate[] arg0, String arg1)
           
 void checkServerTrusted(X509Certificate[] arg0, String arg1)
           
 X509Certificate[] getAcceptedIssuers()
           
static void ignoreSSLCertificate()
           
static void restoreSSLCertificate()
           
 boolean verify(String hostname, SSLSession session)
           
 
从类 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.