| Modifier and Type | Field and Description |
|---|---|
| private final SSLContextImpl |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: the unconnected socketOverrides javax. Creates an unconnected socket. |
| public Socket | createSocket(String
name of the host with which to connect host, int number of the server's port port)Implements abstract javax. Constructs an SSL connection to a named host at a specified port. |
| public Socket | createSocket(Socket
the existing socket s, String the server host host, int the server port port, boolean close the underlying socket when this socket is closed autoClose)Implements abstract javax. Returns a socket layered over an existing socket to a ServerSocket on the named host, at the given port. |
| public Socket | createSocket(Socket s, InputStream consumed, boolean autoClose)
Overrides javax. Creates a server mode |
| public Socket | createSocket(InetAddress
the server's host address, int its port port)Implements abstract javax. Constructs an SSL connection to a server at a specified address and TCP port. |
| public Socket | createSocket(String host, int port, InetAddress clientAddress, int clientPort)
Implements abstract javax. Constructs an SSL connection to a named host at a specified port. |
| public Socket | createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)
Implements abstract javax. Constructs an SSL connection to a server at a specified address and TCP port. |
| public String[] | getDefaultCipherSuites()
Implements abstract javax. Returns the subset of the supported cipher suites which are enabled by default. |
| public String[] | getSupportedCipherSuites()
Implements abstract javax. Returns the names of the cipher suites which could be enabled for use on an SSL connection. |
| context | back to summary |
|---|---|
| private final SSLContextImpl context | |
| SSLSocketFactoryImpl | back to summary |
|---|---|
| public SSLSocketFactoryImpl() throws Exception Constructor used to instantiate the default factory. This method is only called if the old "ssl.SocketFactory.provider" property in the java.security file is set. | |
| SSLSocketFactoryImpl | back to summary |
|---|---|
| pack-priv SSLSocketFactoryImpl(SSLContextImpl context) Constructs an SSL socket factory. | |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() Overrides javax. Creates an unconnected socket.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws IOException Implements abstract javax. Constructs an SSL connection to a named host at a specified port. This acts as the SSL client, and may authenticate itself or rejoin existing SSL sessions allowed by the authentication context which has been configured.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException Implements abstract javax. Returns a socket layered over an existing socket to a ServerSocket on the named host, at the given port. This constructor can be used when tunneling SSL through a proxy. The host and port refer to the logical destination server. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(Socket s, InputStream consumed, boolean autoClose) throws IOException Overrides javax. Doc from javax. Creates a server mode
This method can be used by a server application that needs to
observe the inbound data but still create valid SSL/TLS
connections: for example, inspection of Server Name Indication
(SNI) extensions (See section 3 of TLS Extensions
(RFC6066)). Data that has been already removed from the
underlying
The returned socket is configured using the socket options
established for this factory, and is set to use server mode when
handshaking (see
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress address, int port) throws IOException Implements abstract javax. Constructs an SSL connection to a server at a specified address and TCP port. This acts as the SSL client, and may authenticate itself or rejoin existing SSL sessions allowed by the authentication context which has been configured.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port, InetAddress clientAddress, int clientPort) throws IOException Implements abstract javax. Constructs an SSL connection to a named host at a specified port. This acts as the SSL client, and may authenticate itself or rejoin existing SSL sessions allowed by the authentication context which has been configured. The socket will also bind() to the local address and port supplied.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException Implements abstract javax. Constructs an SSL connection to a server at a specified address and TCP port. This acts as the SSL client, and may authenticate itself or rejoin existing SSL sessions allowed by the authentication context which has been configured. The socket will also bind() to the local address and port supplied.
| |
| getDefaultCipherSuites | back to summary |
|---|---|
| public String[] getDefaultCipherSuites() Implements abstract javax. Returns the subset of the supported cipher suites which are enabled by default. These cipher suites all provide a minimum quality of service whereby the server authenticates itself (preventing person-in-the-middle attacks) and where traffic is encrypted to provide confidentiality.
| |
| getSupportedCipherSuites | back to summary |
|---|---|
| public String[] getSupportedCipherSuites() Implements abstract javax. Returns the names of the cipher suites which could be enabled for use on an SSL connection. Normally, only a subset of these will actually be enabled by default, since this list may include cipher suites which do not support the mutual authentication of servers and clients, or which do not protect data confidentiality. Servers may also need certain kinds of certificates to use certain cipher suites.
| |