org.jboss.crypto
Class CipherClientSocketFactory

java.lang.Object
  extended byorg.jboss.crypto.CipherClientSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.io.Serializable

public class CipherClientSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable

An implementation of RMIClientSocketFactory that uses the JCE Cipher with an SRP session key to create an encrypted stream.

See Also:
Serialized Form

Constructor Summary
CipherClientSocketFactory()
          Creates new CipherClientSocketFactory
 
Method Summary
 java.net.Socket createSocket(java.lang.String host, int port)
          Create a client socket connected to the specified host and port.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherClientSocketFactory

public CipherClientSocketFactory()
Creates new CipherClientSocketFactory

Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Create a client socket connected to the specified host and port.

Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Parameters:
host - - the host name
port - - the port number
Returns:
a socket connected to the specified host and port.
Throws:
java.io.IOException - if an I/O error occurs during socket creation.

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()