An SslRMIClientSocketFactory instance is used by the RMI
runtime in order to obtain client sockets for RMI calls via SSL.
This class implements RMIClientSocketFactory over
the Secure Sockets Layer (SSL) or Transport Layer Security (TLS)
protocols.
This class creates SSL sockets using the default
SSLSocketFactory (see SSLSocketFactory#getDefault). All instances of this class are
functionally equivalent. In particular, they all share the same
truststore, and the same keystore when client authentication is
required by the server. This behavior can be modified in
subclasses by overriding the createSocket(String, int)
method; in that case, equals and hashCode may also need to be overridden.
If the system property
javax.rmi.ssl.client.enabledCipherSuites is specified,
the createSocket(String, int) method will call SSLSocket#setEnabledCipherSuites(String[]) before returning the
socket. The value of this system property is a string that is a
comma-separated list of SSL/TLS cipher suites to enable.
If the system property
javax.rmi.ssl.client.enabledProtocols is specified,
the createSocket(String, int) method will call SSLSocket#setEnabledProtocols(String[]) before returning the
socket. The value of this system property is a string that is a
comma-separated list of SSL/TLS protocol versions to enable.
javax.net.ssl.SSLSocketFactory , javax.rmi.ssl.SslRMIServerSocketFactory
| Modifier and Type | Field and Description |
|---|---|
| private static SocketFactory | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | createSocket(String host, int port)
Implements java. Creates an SSL socket. |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| private static synchronized SocketFactory | |
| public int | Returns: a hash code value for thisSslRMIClientSocketFactory.Overrides java. Returns a hash code value for this
|
| defaultSocketFactory | back to summary |
|---|---|
| private static SocketFactory defaultSocketFactory | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SslRMIClientSocketFactory | back to summary |
|---|---|
| public SslRMIClientSocketFactory() Creates a new | |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws IOException Implements java. Creates an SSL socket. If the system property
If the system property
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one. Because all instances of this class are functionally equivalent
(they all use the default
A subclass should override this method (as well
as | |
| getDefaultClientSocketFactory | back to summary |
|---|---|
| private static synchronized SocketFactory getDefaultClientSocketFactory() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for this
| |