org.jboss.remoting.security
Class SSLServerSocketFactoryService

java.lang.Object
  extended by javax.net.ServerSocketFactory
      extended by javax.net.ssl.SSLServerSocketFactory
          extended by org.jboss.remoting.security.CustomSSLServerSocketFactory
              extended by org.jboss.remoting.security.SSLServerSocketFactoryService
All Implemented Interfaces:
ServerSocketFactoryMBean, SSLServerSocketFactoryServiceMBean

public class SSLServerSocketFactoryService
extends CustomSSLServerSocketFactory
implements SSLServerSocketFactoryServiceMBean

This is a basic wrapper around the SSLSocketBuilder which is needed because it extneds the javax.net.ServerSocketFactory class and implements the SSLServerSocketFactoryServiceMBean. It has no other function.

Author:
Tom Elrod

Constructor Summary
SSLServerSocketFactoryService()
           
SSLServerSocketFactoryService(javax.net.ssl.SSLServerSocketFactory factory, SSLSocketBuilderMBean builder)
          Constructor for CustomSSLServerSocketFactory.
 
Method Summary
 void create()
          create the service, do expensive operations etc
 void destroy()
          destroy the service, tear down
 void start()
          start the service, create is already called
 void stop()
          stop the service
 
Methods inherited from class org.jboss.remoting.security.CustomSSLServerSocketFactory
createServerSocket, createServerSocket, createServerSocket, createServerSocket, equals, getDefaultCipherSuites, getSSLSocketBuilder, getSupportedCipherSuites, hashCode, setFactory, setSSLSocketBuilder, toString
 
Methods inherited from class javax.net.ssl.SSLServerSocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.security.SSLServerSocketFactoryServiceMBean
getSSLSocketBuilder, setSSLSocketBuilder
 
Methods inherited from interface org.jboss.remoting.security.ServerSocketFactoryMBean
createServerSocket, createServerSocket, createServerSocket, createServerSocket
 

Constructor Detail

SSLServerSocketFactoryService

public SSLServerSocketFactoryService()

SSLServerSocketFactoryService

public SSLServerSocketFactoryService(javax.net.ssl.SSLServerSocketFactory factory,
                                     SSLSocketBuilderMBean builder)
Constructor for CustomSSLServerSocketFactory. The factory can be null - call CustomSSLServerSocketFactory.setFactory(javax.net.ssl.SSLServerSocketFactory) to set it later.

Parameters:
factory - the true factory this class delegates to
builder - the class that built this custom factory - contains all the configuration for this factory
Method Detail

start

public void start()
           throws java.lang.Exception
start the service, create is already called

Specified by:
start in interface SSLServerSocketFactoryServiceMBean
Throws:
java.lang.Exception

create

public void create()
            throws java.lang.Exception
create the service, do expensive operations etc

Specified by:
create in interface SSLServerSocketFactoryServiceMBean
Throws:
java.lang.Exception

stop

public void stop()
stop the service

Specified by:
stop in interface SSLServerSocketFactoryServiceMBean

destroy

public void destroy()
destroy the service, tear down

Specified by:
destroy in interface SSLServerSocketFactoryServiceMBean


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.