public class SslRMIServerSocketFactory extends java.lang.Object implements java.rmi.server.RMIServerSocketFactory
| Constructor and Description |
|---|
SslRMIServerSocketFactory()
Creates a new SslRMIServerSocketFactory with the default socket
cipher suites and protocols, and without requiring client authorisation.
|
SslRMIServerSocketFactory(java.lang.String[] enabledCipherSuites,
java.lang.String[] enabledProtocols,
boolean needClientAuth)
Creates a new SslRMIServerSocketFactory with a given set of socket
cipher suites and protocols. needClientAuth specifies if client
authorization is required.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(int port)
Creates an SSLServerSocket on a given port
|
boolean |
equals(java.lang.Object obj)
Compare two SslRMIServerSocketFactor instances
|
java.lang.String[] |
getEnabledCipherSuites()
Returns the enabled cipher suites, or
null
if the defaults are to be used. |
java.lang.String[] |
getEnabledProtocols()
Returns the enabled protocols, or
null if the defaults are
to be used. |
boolean |
getNeedClientAuth()
Returns whether client authorization is needed.
|
int |
hashCode()
Returns the hash code of this object.
|
public SslRMIServerSocketFactory()
public SslRMIServerSocketFactory(java.lang.String[] enabledCipherSuites, java.lang.String[] enabledProtocols, boolean needClientAuth)
enabledCipherSuites - - the cypher suites to enable
or null for the defauls.enabledCipherSuites - - the protocols to enable,
or null for the defauls.needClientAuth - - specify client authorization requirement.java.lang.IllegalArgumentException - if any of the ciphers or protocols
specified are not available.public java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
createServerSocket in interface java.rmi.server.RMIServerSocketFactoryjava.io.IOException - if an error occurs on socket creation.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the Object to compare toObject.hashCode()public java.lang.String[] getEnabledCipherSuites()
null
if the defaults are to be used.public java.lang.String[] getEnabledProtocols()
null if the defaults are
to be used.public boolean getNeedClientAuth()
public int hashCode()
hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(Object)