Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.sasl.rmi
Class SaslClientSocketFactory  view SaslClientSocketFactory download SaslClientSocketFactory.java

java.lang.Object
  extended bycryptix.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.
 
Constructor Summary
SaslClientSocketFactory()
           
 
Method Summary
 java.net.Socket createSocket(java.lang.String host, int port)
          Creates a client socket connected to the specified host and port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

SaslClientSocketFactory

public SaslClientSocketFactory()
Method Detail

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