org.jboss.security.ssl
Class RMISSLServerSocketFactory

java.lang.Object
  extended byorg.jboss.security.ssl.RMISSLServerSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIServerSocketFactory

public class RMISSLServerSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIServerSocketFactory

An implementation of RMIServerSocketFactory that uses a DomainServerSocketFactory for its implementation. This class is just an adaptor from the RMIServerSocketFactory to the DomainServerSocketFactory. This class is not suitable for RMI object that require a Serializable socket factory like activatable services. The reason for this limitation is that a SecurityDomain is not serializable due to its association with a local KeyStore.


Constructor Summary
RMISSLServerSocketFactory()
          Creates new RMISSLServerSocketFactory initialized with a DomainServerSocketFactory with not security domain.
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          Create a server socket on the specified port (port 0 indicates an anonymous port).
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBindAddress()
           
 SecurityDomain (src) getSecurityDomain()
           
 int hashCode()
           
 boolean isNeedsClientAuth()
           
 boolean isWantsClientAuth()
           
 void setBindAddress(java.lang.String host)
           
 void setNeedsClientAuth(boolean needsClientAuth)
           
 void setSecurityDomain(SecurityDomain (src)  securityDomain)
           
 void setWantsClientAuth(boolean wantsClientAuth)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMISSLServerSocketFactory

public RMISSLServerSocketFactory()
Creates new RMISSLServerSocketFactory initialized with a DomainServerSocketFactory with not security domain. The setSecurityDomain method must be invoked to establish the correct non-default value.

Method Detail

getBindAddress

public java.lang.String getBindAddress()

setBindAddress

public void setBindAddress(java.lang.String host)
                    throws java.net.UnknownHostException
Throws:
java.net.UnknownHostException

getSecurityDomain

public SecurityDomain (src)  getSecurityDomain()

setSecurityDomain

public void setSecurityDomain(SecurityDomain (src)  securityDomain)

isWantsClientAuth

public boolean isWantsClientAuth()

setWantsClientAuth

public void setWantsClientAuth(boolean wantsClientAuth)

isNeedsClientAuth

public boolean isNeedsClientAuth()

setNeedsClientAuth

public void setNeedsClientAuth(boolean needsClientAuth)

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Create a server socket on the specified port (port 0 indicates an anonymous port).

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Parameters:
port - the port number
Returns:
the server socket on the specified port
Throws:
java.io.IOException - if an I/O error occurs during server socket creation

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()