Class SSLSocketFactory


  • public abstract class SSLSocketFactory
    extends SocketFactory
    SSLSocketFactory creates SSLSockets.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Socket createSocket​(java.lang.String host, int port)
      Creates a socket and connects it to the specified remote host at the specified remote port.
      abstract Socket createSocket​(java.lang.String host, int port, int timeout)
      Creates a socket and connects it to the specified remote host at the specified remote port.
      • Methods inherited from class java.lang.Object

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

      • SSLSocketFactory

        public SSLSocketFactory()
    • Method Detail

      • createSocket

        public abstract Socket createSocket​(java.lang.String host,
                                            int port,
                                            int timeout)
                                     throws UnknownHostException,
                                            IOException
        Description copied from class: SocketFactory
        Creates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.
        Overrides:
        createSocket in class SocketFactory
        Parameters:
        host - the server host
        port - the server port
        Returns:
        the Socket
        Throws:
        UnknownHostException - if the host is not known
        IOException - if an I/O error occurs when creating the socket
        See Also:
        Socket(String, int)