|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rmi.ssl.SslRMIServerSocketFactory
public class SslRMIServerSocketFactory
SslRMIServerSocketFactory This class implements an RMIServerSocketFactory for SSL sockets. it uses the defeult SSLServerSocketFactory.
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 | |
---|---|
ServerSocket |
createServerSocket(int port)
Creates an SSLServerSocket on a given port |
boolean |
equals(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. |
boolean |
getNeedClientAuth()
Returns whether client authorization is needed. |
int |
hashCode()
Returns the hash code of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SslRMIServerSocketFactory()
public SslRMIServerSocketFactory(String[] enabledCipherSuites, 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.
IllegalArgumentException
- if any of the ciphers or protocols
specified are not available.Method Detail |
---|
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
IOException
- if an error occurs on socket creation.public boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare to
Object.hashCode()
public String[] getEnabledCipherSuites()
null
if the defaults are to be used.
public String[] getEnabledProtocols()
null
if the defaults are
to be used.
public boolean getNeedClientAuth()
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |