|
Préférences
Moteurs de recherche
|
||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.rmi.ssl
|
Constructor Summary | |
---|---|
SslRMIClientSocketFactory()
Creates a new SslRMIClientSocketFactory . |
Method Summary | |
---|---|
Socket |
createSocket(String host,
int port)
Creates an SSL socket. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for this SslRMIClientSocketFactory . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SslRMIClientSocketFactory()
Creates a new SslRMIClientSocketFactory
.
Method Detail |
---|
public Socket createSocket(String host, int port) throws IOException
Creates an SSL socket.
If the system property
javax.rmi.ssl.client.enabledCipherSuites
is
specified, this 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, this 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.
createSocket
in interface RMIClientSocketFactory
host
- the host nameport
- the port number
IOException
- if an I/O error occurs during socket creationpublic boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
Because all instances of this class are functionally equivalent
(they all use the default
SSLSocketFactory
), this method simply returns
this.getClass().equals(obj.getClass())
.
A subclass should override this method (as well
as hashCode()
) if its instances are not all
functionally equivalent.
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
Hashtable
public int hashCode()
Returns a hash code value for this
SslRMIClientSocketFactory
.
SslRMIClientSocketFactory
.Object.equals(java.lang.Object)
,
Hashtable