org.jboss.security.ssl
Class RMISSLClientSocketFactory
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
RMISSLClientSocketFactory
public RMISSLClientSocketFactory()
- Creates new RMISSLClientSocketFactory
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 nameport
- - 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