javax.rmi.ssl

Class SslRMIServerSocketFactory

public class SslRMIServerSocketFactory extends Object implements RMIServerSocketFactory

SslRMIServerSocketFactory This class implements an RMIServerSocketFactory for SSL sockets. it uses the defeult SSLServerSocketFactory.

Since: 1.5

Constructor Summary
SslRMIServerSocketFactory()
Creates a new SslRMIServerSocketFactory with the default socket cipher suites and protocols, and without requiring client authorisation.
SslRMIServerSocketFactory(String[] enabledCipherSuites, 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.
Method Summary
ServerSocketcreateServerSocket(int port)
Creates an SSLServerSocket on a given port
booleanequals(Object obj)
Compare two SslRMIServerSocketFactor instances
String[]getEnabledCipherSuites()
Returns the enabled cipher suites, or null if the defaults are to be used.
String[]getEnabledProtocols()
Returns the enabled protocols, or null if the defaults are to be used.
booleangetNeedClientAuth()
Returns whether client authorization is needed.
inthashCode()
Returns the hash code of this object.

Constructor Detail

SslRMIServerSocketFactory

public SslRMIServerSocketFactory()
Creates a new SslRMIServerSocketFactory with the default socket cipher suites and protocols, and without requiring client authorisation.

SslRMIServerSocketFactory

public SslRMIServerSocketFactory(String[] enabledCipherSuites, 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.

Parameters: 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.

Throws: IllegalArgumentException if any of the ciphers or protocols specified are not available.

Method Detail

createServerSocket

public ServerSocket createServerSocket(int port)
Creates an SSLServerSocket on a given port

Throws: IOException if an error occurs on socket creation.

equals

public boolean equals(Object obj)
Compare two SslRMIServerSocketFactor instances

getEnabledCipherSuites

public String[] getEnabledCipherSuites()
Returns the enabled cipher suites, or null if the defaults are to be used.

UNKNOWN: a string array of cipher suite names

getEnabledProtocols

public String[] getEnabledProtocols()
Returns the enabled protocols, or null if the defaults are to be used.

UNKNOWN: a string array of protocol names

getNeedClientAuth

public boolean getNeedClientAuth()
Returns whether client authorization is needed.

hashCode

public int hashCode()
Returns the hash code of this object.