org.jboss.security.ssl
Class ClientSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by org.jboss.security.ssl.ClientSocketFactory
All Implemented Interfaces:
Serializable, EventListener, HandshakeCompletedListener

public class ClientSocketFactory
extends SocketFactory
implements HandshakeCompletedListener, Serializable

An implementation of SocketFactory that uses the JSSE default SSLSocketFactory to create a client SSLSocket.

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

Constructor Summary
ClientSocketFactory()
          Creates new RMISSLClientSocketFactory
 
Method Summary
 Socket createSocket(InetAddress serverAddr, int serverPort)
           
 Socket createSocket(InetAddress serverAddr, int serverPort, InetAddress clientAddr, int clientPort)
           
 Socket createSocket(String serverHost, int serverPort)
          Create a client socket connected to the specified host and port.
 Socket createSocket(String serverHost, int serverPort, InetAddress clientAddr, int clientPort)
           
 boolean equals(Object obj)
           
 void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent)
           
 int hashCode()
           
 
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSocketFactory

public ClientSocketFactory()
Creates new RMISSLClientSocketFactory

Method Detail

createSocket

public Socket createSocket(String serverHost,
                           int serverPort)
                    throws IOException,
                           UnknownHostException
Create a client socket connected to the specified host and port.

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

createSocket

public Socket createSocket(String serverHost,
                           int serverPort,
                           InetAddress clientAddr,
                           int clientPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(InetAddress serverAddr,
                           int serverPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(InetAddress serverAddr,
                           int serverPort,
                           InetAddress clientAddr,
                           int clientPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

handshakeCompleted

public void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent)
Specified by:
handshakeCompleted in interface HandshakeCompletedListener


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