java.lang.Object
cryptix.sasl.rmi.SaslClientSocketFactory
- All Implemented Interfaces:
- java.rmi.server.RMIClientSocketFactory, java.io.Serializable
- public class SaslClientSocketFactory
- extends java.lang.Object
- implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable
A SaslClientSocketFactory instance is used by the RMI runtime in
order to obtain client sockets for RMI calls. A remote object can be
associated with a SaslClientSocketFactory when it is created/exported
via the constructors or exportObject() methods of
java.rmi.server.UnicastRemoteObject and java.rmi.activation.Activatable
.
A RMIClientSocketFactory instance associated with a remote object
will be downloaded to clients when the remote object's reference is
transmitted in an RMI call. This SaslClientSocketFactory will be
used to create connections to the remote object for remote method calls.
A SaslClientSocketFactory instance can also be associated with a
remote object registry so that clients can use custom socket communication
with a remote object registry.
- Version:
- 1.1
Field Summary |
private static org.apache.log4j.Category |
cat
|
private static byte[] |
NULL_MESSAGE
A dummy 0-byte message to use with SASL-ified RMI socket for mechanisms
whose client side does not have an initial response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
private static org.apache.log4j.Category cat
NULL_MESSAGE
private static final byte[] NULL_MESSAGE
- A dummy 0-byte message to use with SASL-ified RMI socket for mechanisms
whose client side does not have an initial response. This dummy message
is then supposed to be discarded by their server-side implementations.
SaslClientSocketFactory
public SaslClientSocketFactory()
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
- Creates a client socket connected to the specified host and port.
- Specified by:
createSocket
in interface java.rmi.server.RMIClientSocketFactory