org.jboss.crypto
Class CipherClientSocketFactory

java.lang.Object
  extended by org.jboss.crypto.CipherClientSocketFactory
All Implemented Interfaces:
Serializable, RMIClientSocketFactory

public class CipherClientSocketFactory
extends Object
implements RMIClientSocketFactory, Serializable

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

Version:
$Revision: 57203 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
CipherClientSocketFactory()
          Creates new CipherClientSocketFactory
 
Method Summary
 Socket createSocket(String host, int port)
          Create a client socket connected to the specified host and port.
 boolean equals(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 Socket createSocket(String host,
                           int port)
                    throws IOException
Create a client socket connected to the specified host and port.

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.