org.jboss.security.ssl
Class RMISSLClientSocketFactory

java.lang.Object
  extended by org.jboss.security.ssl.RMISSLClientSocketFactory
All Implemented Interfaces:
Serializable, RMIClientSocketFactory, EventListener, HandshakeCompletedListener

public class RMISSLClientSocketFactory
extends Object
implements HandshakeCompletedListener, RMIClientSocketFactory, Serializable

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

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

Field Summary
static String HANDSHAKE_COMPLETE_LISTENER
           
 
Constructor Summary
RMISSLClientSocketFactory()
          Creates new RMISSLClientSocketFactory
 
Method Summary
 Socket createSocket(String host, int port)
          Create a client socket connected to the specified host and port.
 boolean equals(Object obj)
           
 void handshakeCompleted(HandshakeCompletedEvent event)
           
 int hashCode()
           
 boolean isNeedsClientAuth()
           
 boolean isWantsClientAuth()
           
 void setNeedsClientAuth(boolean needsClientAuth)
           
 void setWantsClientAuth(boolean wantsClientAuth)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDSHAKE_COMPLETE_LISTENER

public static final String HANDSHAKE_COMPLETE_LISTENER
See Also:
Constant Field Values
Constructor Detail

RMISSLClientSocketFactory

public RMISSLClientSocketFactory()
Creates new RMISSLClientSocketFactory

Method Detail

isWantsClientAuth

public boolean isWantsClientAuth()

setWantsClientAuth

public void setWantsClientAuth(boolean wantsClientAuth)

isNeedsClientAuth

public boolean isNeedsClientAuth()

setNeedsClientAuth

public void setNeedsClientAuth(boolean needsClientAuth)

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

handshakeCompleted

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


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