SSLSocketFactory that delegates to another factory and allows
configuring the created socket via configure(SSLSocket) before it is
returned.
| Modifier and Type | Field and Description |
|---|---|
| private final SSLSocketFactory |
| Access | Constructor and Description |
|---|---|
| public | DelegatingSSLSocketFactory(SSLSocketFactory
SSLSocketFactory to delegate toCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| public SSLSocket | |
| public SSLSocket | createSocket(String
the server host name with which to connect, or
host, int null for the loopback address.the server port port)Implements abstract javax. Creates a socket and connects it to the specified remote host at the specified remote port. |
| public SSLSocket | createSocket(String
the server host name with which to connect, or
host, int null for the loopback address.the server port port, InetAddress the local address the socket is bound to localAddress, int the local port the socket is bound to localPort)Implements abstract javax. Creates a socket and connects it to the specified remote host on the specified remote port. |
| public SSLSocket | createSocket(InetAddress
the server host host, int the server port port)Implements abstract javax. Creates a socket and connects it to the specified port number at the specified address. |
| public SSLSocket | createSocket(InetAddress
the server network address host, int the server port port, InetAddress the client network address localAddress, int the client port localPort)Implements abstract javax. Creates a socket and connect it to the specified remote address on the specified remote port. |
| public SSLSocket | createSocket(Socket
the existing socket socket, 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 connected to the named host, at the given port. |
| public String[] | getDefaultCipherSuites()
Implements abstract javax. Returns the list of 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. |
| private SSLSocket |
| delegate | back to summary |
|---|---|
| private final SSLSocketFactory delegate | |
| DelegatingSSLSocketFactory | back to summary |
|---|---|
| public DelegatingSSLSocketFactory(SSLSocketFactory delegate) Creates a new
| |
| configure | back to summary |
|---|---|
| protected abstract void configure(SSLSocket socket) throws IOException Configure the newly created socket.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket() throws IOException Overrides javax. Doc from javax. Creates an unconnected socket.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket(String host, int port) throws IOException Implements abstract javax. Doc from javax. 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.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified remote host on the specified remote port. The socket will also be bound to the local address and port supplied. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket(InetAddress host, int port) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified port number at the specified address. This socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connect it to the specified remote address on the specified remote port. The socket will also be bound to the local address and port supplied. The socket is configured using the socket options established for this factory.
| |
| createSocket | back to summary |
|---|---|
| public SSLSocket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException Implements abstract javax. Doc from javax. Returns a socket layered over an existing socket connected to the named host, at the given port. This constructor can be used when tunneling SSL through a proxy or when negotiating the use of SSL over an existing socket. The host and port refer to the logical peer destination. This socket is configured using the socket options established for this factory.
| |
| getDefaultCipherSuites | back to summary |
|---|---|
| public String[] getDefaultCipherSuites() Implements abstract javax. Doc from javax. Returns the list of cipher suites which are enabled by default. Unless a different list is enabled, handshaking on an SSL connection will use one of these cipher suites. The minimum quality of service for these defaults requires confidentiality protection and server authentication (that is, no anonymous cipher suites). The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports. | |
| getSupportedCipherSuites | back to summary |
|---|---|
| public String[] getSupportedCipherSuites() Implements abstract javax. Doc from 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 meet quality of service requirements for those defaults. Such cipher suites are useful in specialized applications. The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports. | |
| prepare | back to summary |
|---|---|
| private SSLSocket prepare(Socket socket) throws IOException | |