类 SelfTrustManager

java.lang.Object
com.alibaba.nacos.common.tls.SelfTrustManager

public final class SelfTrustManager extends Object
A TrustManager tool returns the specified TrustManager.
作者:
wangwei
  • 构造器详细资料

    • SelfTrustManager

      public SelfTrustManager()
  • 方法详细资料

    • trustManager

      public static TrustManager[] trustManager(boolean needAuth, String trustCertPath)
      Returns the result of calling buildSecureTrustManager(java.lang.String) if needAuth is enable and trustCertPath exists. Returns the trustAll otherwise.
      参数:
      needAuth - whether need client auth
      trustCertPath - trust certificate path
      返回:
      Array of TrustManager