Class SNIHelper


  • class SNIHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SNIHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.Object createSNIHostName​(java.lang.String hostname)  
      private static java.util.List<java.lang.Object> createSNIHostNames​(java.lang.String[] hostnames)  
      static int getAndroidSDKVersion()  
      private static void initialize()  
      (package private) static void setServerNames​(java.net.Socket socket, java.lang.String[] hostnames)  
      private static void setServerNames​(javax.net.ssl.SSLParameters parameters, java.lang.String[] hostnames)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sSNIHostNameConstructor

        private static java.lang.reflect.Constructor<?> sSNIHostNameConstructor
      • sSetServerNamesMethod

        private static java.lang.reflect.Method sSetServerNamesMethod
    • Constructor Detail

      • SNIHelper

        SNIHelper()
    • Method Detail

      • initialize

        private static void initialize()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createSNIHostName

        private static java.lang.Object createSNIHostName​(java.lang.String hostname)
      • createSNIHostNames

        private static java.util.List<java.lang.Object> createSNIHostNames​(java.lang.String[] hostnames)
      • setServerNames

        private static void setServerNames​(javax.net.ssl.SSLParameters parameters,
                                           java.lang.String[] hostnames)
      • setServerNames

        static void setServerNames​(java.net.Socket socket,
                                   java.lang.String[] hostnames)
      • getAndroidSDKVersion

        public static int getAndroidSDKVersion()