类 SelfTrustManager


  • public final class SelfTrustManager
    extends java.lang.Object
    A TrustManager tool returns the specified TrustManager.
    作者:
    wangwei
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private static org.slf4j.Logger LOGGER  
      (专用程序包) static javax.net.ssl.TrustManager[] trustAll  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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 calling buildSecureTrustManager(java.lang.String) if needAuth is enable and trustCertPath exists.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • trustAll

        static javax.net.ssl.TrustManager[] trustAll
    • 构造器详细资料

      • SelfTrustManager

        public SelfTrustManager()
    • 方法详细资料

      • trustManager

        public static javax.net.ssl.TrustManager[] trustManager​(boolean needAuth,
                                                                java.lang.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
      • buildSecureTrustManager

        private static javax.net.ssl.TrustManager[] buildSecureTrustManager​(java.lang.String trustCertPath)
                                                                     throws javax.net.ssl.SSLException
        抛出:
        javax.net.ssl.SSLException