|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.protocols.jmx.DirectoryRMIServerSocketFactory
public class DirectoryRMIServerSocketFactory
A DirectoryRMIServerSocketFactory instance is used by the RMI
runtime in order to obtain server sockets for RMI calls via SSL.
This class implements RMIServerSocketFactory over the Secure
Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.
| Constructor Summary | |
|---|---|
DirectoryRMIServerSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory,
boolean needClientCertificate)
Constructs a new DirectoryRMIServerSocketFactory with the
specified SSL socket configuration. |
|
| Method Summary | |
|---|---|
java.net.ServerSocket |
createServerSocket(int port)
Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
boolean |
getNeedClientCertificate()
Returns true if client authentication is required on SSL
connections accepted by server sockets created by this factory. |
int |
hashCode()
Returns a hash code value for this CacaoRMIServerSocketFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryRMIServerSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory,
boolean needClientCertificate)
DirectoryRMIServerSocketFactory with the
specified SSL socket configuration.
sslSocketFactory - the SSL socket factory to be used by this factoryneedClientCertificate - true to require client authentication on SSL
connections accepted by server sockets created by this
factory; false to not require client
authentication.| Method Detail |
|---|
public final boolean getNeedClientCertificate()
Returns true if client authentication is required on SSL
connections accepted by server sockets created by this factory.
true if client authentication is requiredSSLSocket.setNeedClientAuth(boolean)
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
createServerSocket in interface java.rmi.server.RMIServerSocketFactoryport - the port number the socket listens to
java.io.IOException - if the socket cannot be createdpublic boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Two CacaoRMIServerSocketFactory objects are equal if they
have been constructed with the same SSL socket configuration parameters.
A subclass should override this method (as well as hashCode())
if it adds instance state that affects equality.
equals in class java.lang.Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument false otherwise.public int hashCode()
Returns a hash code value for this
CacaoRMIServerSocketFactory.
hashCode in class java.lang.ObjectCacaoRMIServerSocketFactory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||