public final class SSLSocketFactoryImpl extends SSLSocketFactory
| 限定符和类型 | 字段和说明 |
|---|---|
private SSLContextImpl |
context |
| 构造器和说明 |
|---|
SSLSocketFactoryImpl()
Constructor used to instantiate the default factory.
|
SSLSocketFactoryImpl(SSLContextImpl context)
Constructs an SSL socket factory.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Socket |
createSocket()
Creates an unconnected socket.
|
Socket |
createSocket(InetAddress address,
int port)
Constructs an SSL connection to a server at a specified address
and TCP port.
|
Socket |
createSocket(InetAddress address,
int port,
InetAddress clientAddress,
int clientPort)
Constructs an SSL connection to a server at a specified address
and TCP port.
|
Socket |
createSocket(Socket s,
InputStream consumed,
boolean autoClose) |
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose)
Returns a socket layered over an existing socket to a
ServerSocket on the named host, at the given port.
|
Socket |
createSocket(String host,
int port)
Constructs an SSL connection to a named host at a specified port.
|
Socket |
createSocket(String host,
int port,
InetAddress clientAddress,
int clientPort)
Constructs an SSL connection to a named host at a specified port.
|
String[] |
getDefaultCipherSuites()
Returns the subset of the supported cipher suites which are
enabled by default.
|
String[] |
getSupportedCipherSuites()
Returns the names of the cipher suites which could be enabled for use
on an SSL connection.
|
getDefaultprivate final SSLContextImpl context
public SSLSocketFactoryImpl()
throws Exception
ExceptionSSLSocketFactoryImpl(SSLContextImpl context)
public Socket createSocket()
createSocket 在类中 SocketFactorySocket.connect(java.net.SocketAddress, int)public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket 在类中 SocketFactoryhost - name of the host with which to connectport - number of the server's portIOExceptionUnknownHostExceptionpublic Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket 在类中 SSLSocketFactorys - the existing sockethost - the server hostport - the server portautoClose - close the underlying socket when this socket is closedIOException - if the connection can't be establishedUnknownHostException - if the host is not knownpublic Socket createSocket(Socket s, InputStream consumed, boolean autoClose) throws IOException
createSocket 在类中 SSLSocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port) throws IOException
createSocket 在类中 SocketFactoryaddress - the server's hostport - its portIOExceptionpublic Socket createSocket(String host, int port, InetAddress clientAddress, int clientPort) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites 在类中 SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites 在类中 SSLSocketFactoryCopyright © 2023. All rights reserved.