Additional top-level class in compilation unit: DefaultSSLSocketFactory.
SSLSocketFactorys create SSLSockets.
SSLSocket
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Socket | Returns: a socket connected to the specified host and portthe existing socket s, String the server host host, int the server port port, boolean close the underlying socket when this socket is closed autoClose)Returns a socket layered over an existing socket connected to the named host, at the given port. |
| public Socket | Returns: theSocket compliant with the socket options
established for this factorythe existing socket s, InputStream the consumed inbound network data that has already been
removed from the existing consumed, boolean Socket
InputStream. This parameter may be
null if no data has been removed.close the underlying socket when this socket is closed. autoClose)Creates a server mode |
| public static SocketFactory | Returns: the defaultSocketFactoryHides javax. Returns the default SSL socket factory. |
| public abstract String[] | Returns: array of the cipher suites enabled by defaultReturns the list of cipher suites which are enabled by default. |
| pack-priv static String | |
| public abstract String[] | Returns: an array of cipher suite namesReturns the names of the cipher suites which could be enabled for use on an SSL connection. |
| DEBUG | back to summary |
|---|---|
| pack-priv static final boolean DEBUG | |
| SSLSocketFactory | back to summary |
|---|---|
| public SSLSocketFactory() Constructor is used only by subclasses. | |
| createSocket | back to summary |
|---|---|
| public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException 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.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(Socket s, InputStream consumed, boolean autoClose) throws IOException 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
| |
| getDefault | back to summary |
|---|---|
| public static SocketFactory getDefault() Hides javax. Returns the default SSL socket factory. The first time this method is called, the security property "ssl.SocketFactory.provider" is examined. If it is non-null, a class by that name is loaded and instantiated. If that is successful and the object is an instance of SSLSocketFactory, it is made the default SSL socket factory. Otherwise, this method returns
| |
| getDefaultCipherSuites | back to summary |
|---|---|
| public abstract String[] getDefaultCipherSuites() 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.
| |
| getSecurityProperty | back to summary |
|---|---|
| pack-priv static String getSecurityProperty(final String name) | |
| getSupportedCipherSuites | back to summary |
|---|---|
| public abstract String[] getSupportedCipherSuites() 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final SSLSocketFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void |
| defaultFactory | back to summary |
|---|---|
| private static final SSLSocketFactory defaultFactory | |
| DefaultFactoryHolder | back to summary |
|---|---|
| private DefaultFactoryHolder() | |
| log | back to summary |
|---|---|
| private static void log(String msg) | |