|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.protocols.jmx.DirectoryRMIClientSocketFactory
public class DirectoryRMIClientSocketFactory
A DirectoryRMIClientSocketFactory
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.
Constructor Summary | |
---|---|
DirectoryRMIClientSocketFactory(boolean wellknown)
Constructs a new DirectoryRMIClientSocketFactory . |
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates an SSL socket configured with the right trust stores and the right target host. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
static java.util.Map |
getConnectionEnv()
Returns the thread-local connection environment. |
boolean |
getNeedClientCertificate()
Returns the connection mode as configured at construction time. |
static java.lang.String |
getServerHostname()
Returns the thread-local target server hostname. |
int |
hashCode()
Returns a hash code value for this DirectoryRMIClientSocketFactory . |
static void |
setConnectionEnv(java.util.Map connectionEnv)
Sets the thread-local connection environment. |
static void |
setServerHostname(java.lang.String serverHostname)
Sets the thread-local target server hostname. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryRMIClientSocketFactory(boolean wellknown)
DirectoryRMIClientSocketFactory
.
wellknown
- true
for wellknown, false
otherwiseMethod Detail |
---|
public static void setConnectionEnv(java.util.Map connectionEnv)
connectionEnv
- the new connection envpublic static java.util.Map getConnectionEnv()
public static void setServerHostname(java.lang.String serverHostname)
serverHostname
- the target server hostnamepublic static java.lang.String getServerHostname()
public boolean getNeedClientCertificate()
true
for wellknown,
false
otherwisepublic java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
The keystore and truststore used come from client configuration and depend on the connection mode specified at construction time.
The target host is the host specified except if a different host was specified in the connection environment.
createSocket
in interface java.rmi.server.RMIClientSocketFactory
host
- the target host as known by the RMI stackport
- the target port number
java.io.IOException
- if an error occurs while configuring the socketpublic boolean equals(java.lang.Object obj)
Because each RMI client might have its own configuration, we do not try to optimize anything. Each RMI connector uses its own RMI client socket factory. In other words, Directory RMI clients never share the same client socket factory.
equals
in class java.lang.Object
obj
- the reference object with which to compare
true
if this object is the same as the obj
argument false
otherwisepublic int hashCode()
DirectoryRMIClientSocketFactory
.
hashCode
in class java.lang.Object
DirectoryRMIClientSocketFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |