Class JSSESocketFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.net.ssl.SSLSocketFactory factory  
      protected java.lang.String[] suites  
    • Constructor Summary

      Constructors 
      Constructor Description
      JSSESocketFactory()
      Default factory constructor
      JSSESocketFactory​(java.lang.String[] suites)
      Factory constructor
      JSSESocketFactory​(java.lang.String[] suites, javax.net.ssl.SSLSocketFactory factory)
      Factory constructor
      JSSESocketFactory​(javax.net.ssl.SSLSocketFactory factory)
      Factory constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket makeSocket​(java.lang.String host, int port)
      Creates an SSL socket.
      java.net.Socket makeSocket​(java.net.Socket s)
      Creates an SSL socket layered over an existing socket.
      • Methods inherited from class java.lang.Object

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

      • factory

        protected javax.net.ssl.SSLSocketFactory factory
      • suites

        protected java.lang.String[] suites
    • Constructor Detail

      • JSSESocketFactory

        public JSSESocketFactory()
        Default factory constructor
      • JSSESocketFactory

        public JSSESocketFactory​(java.lang.String[] suites)
        Factory constructor
        Parameters:
        suites - Cipher suites to attempt to use with the server; if null, use any cipher suites available in the JSSE package
      • JSSESocketFactory

        public JSSESocketFactory​(javax.net.ssl.SSLSocketFactory factory)
        Factory constructor
        Parameters:
        factory - the SSL socketfactory to use
      • JSSESocketFactory

        public JSSESocketFactory​(java.lang.String[] suites,
                                 javax.net.ssl.SSLSocketFactory factory)
        Factory constructor
        Parameters:
        suites - Cipher suites to attempt to use with the server; if null, use any cipher suites available in the JSSE package
        factory - the SSL socketfactory to use