org.jboss.security.ssl
Class RMISSLServerSocketFactory

java.lang.Object
  extended by org.jboss.security.ssl.RMISSLServerSocketFactory
All Implemented Interfaces:
RMIServerSocketFactory

public class RMISSLServerSocketFactory
extends Object
implements 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.

Version:
$Revision: 1.7.6.3 $
Author:
Scott.Stark@jboss.org

Constructor Summary
RMISSLServerSocketFactory()
          Creates new RMISSLServerSocketFactory initialized with a DomainServerSocketFactory with not security domain.
 
Method Summary
 ServerSocket createServerSocket(int port)
          Create a server socket on the specified port (port 0 indicates an anonymous port).
 boolean equals(Object obj)
           
 String getBindAddress()
           
 String[] getCiperSuites()
           
 String[] getProtocols()
           
 SecurityDomain getSecurityDomain()
           
 int hashCode()
           
 boolean isNeedsClientAuth()
           
 boolean isWantsClientAuth()
           
 void setBindAddress(String host)
           
 void setCiperSuites(String[] ciperSuites)
           
 void setNeedsClientAuth(boolean needsClientAuth)
           
 void setProtocols(String[] protocols)
           
 void setSecurityDomain(SecurityDomain 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 String getBindAddress()

setBindAddress

public void setBindAddress(String host)
                    throws UnknownHostException
Throws:
UnknownHostException

getSecurityDomain

public SecurityDomain getSecurityDomain()

setSecurityDomain

public void setSecurityDomain(SecurityDomain securityDomain)

isWantsClientAuth

public boolean isWantsClientAuth()

setWantsClientAuth

public void setWantsClientAuth(boolean wantsClientAuth)

isNeedsClientAuth

public boolean isNeedsClientAuth()

setNeedsClientAuth

public void setNeedsClientAuth(boolean needsClientAuth)

getCiperSuites

public String[] getCiperSuites()

setCiperSuites

public void setCiperSuites(String[] ciperSuites)

getProtocols

public String[] getProtocols()

setProtocols

public void setProtocols(String[] protocols)

createServerSocket

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

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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