org.jboss.security.ssl
Class RMISSLClientSocketFactory

java.lang.Object
  extended byorg.jboss.security.ssl.RMISSLClientSocketFactory
All Implemented Interfaces:
java.util.EventListener, javax.net.ssl.HandshakeCompletedListener, java.rmi.server.RMIClientSocketFactory, java.io.Serializable

public class RMISSLClientSocketFactory
extends java.lang.Object
implements javax.net.ssl.HandshakeCompletedListener, java.rmi.server.RMIClientSocketFactory, java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
RMISSLClientSocketFactory()
          Creates new RMISSLClientSocketFactory
 
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)
           
 void handshakeCompleted(javax.net.ssl.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
 

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 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()

handshakeCompleted

public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent event)
Specified by:
handshakeCompleted in interface javax.net.ssl.HandshakeCompletedListener