类 SelfTrustManager
- java.lang.Object
-
- com.alibaba.nacos.common.tls.SelfTrustManager
-
public final class SelfTrustManager extends java.lang.ObjectA TrustManager tool returns the specified TrustManager.- 作者:
- wangwei
-
-
构造器概要
构造器 构造器 说明 SelfTrustManager()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 private static javax.net.ssl.TrustManager[]buildSecureTrustManager(java.lang.String trustCertPath)static javax.net.ssl.TrustManager[]trustManager(boolean needAuth, java.lang.String trustCertPath)Returns the result of callingbuildSecureTrustManager(java.lang.String)ifneedAuthis enable andtrustCertPathexists.
-
-
-
方法详细资料
-
trustManager
public static javax.net.ssl.TrustManager[] trustManager(boolean needAuth, java.lang.String trustCertPath)Returns the result of callingbuildSecureTrustManager(java.lang.String)ifneedAuthis enable andtrustCertPathexists. Returns thetrustAllotherwise.- 参数:
needAuth- whether need client authtrustCertPath- trust certificate path- 返回:
- Array of
TrustManager
-
buildSecureTrustManager
private static javax.net.ssl.TrustManager[] buildSecureTrustManager(java.lang.String trustCertPath) throws javax.net.ssl.SSLException- 抛出:
javax.net.ssl.SSLException
-
-