public abstract class SSLSocketFactory extends SocketFactory
SSLSocket
s.Constructor and Description |
---|
SSLSocketFactory()
Creates a new
SSLSocketFactory . |
Modifier and Type | Method and Description |
---|---|
abstract Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose)
Creates an
SSLSocket over the specified socket that is connected
to the specified host at the specified port. |
static SocketFactory |
getDefault()
Returns the default
SSLSocketFactory instance. |
abstract String[] |
getDefaultCipherSuites()
Returns the names of the cipher suites that are enabled by default.
|
abstract String[] |
getSupportedCipherSuites()
Returns the names of the cipher suites that are supported and could be
enabled for an SSL connection.
|
createSocket, createSocket, createSocket, createSocket, createSocket
public static SocketFactory getDefault()
SSLSocketFactory
instance. The default is
defined by the security property 'ssl.SocketFactory.provider'
.public abstract String[] getDefaultCipherSuites()
public abstract String[] getSupportedCipherSuites()
public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
SSLSocket
over the specified socket that is connected
to the specified host at the specified port.s
- the socket.host
- the host.port
- the port number.autoClose
- true
if socket s
should be closed when the
created socket is closed, false
if the socket
s
should be left open.IOException
- if creating the socket fails.UnknownHostException
- if the host is unknown.