org.apache.geronimo.corba
Class TSSBean

java.lang.Object
  extended by org.apache.geronimo.corba.TSSBean
All Implemented Interfaces:
GBeanLifecycle

public class TSSBean
extends Object
implements GBeanLifecycle

A TSSBean represents a transport-level security profile for exported EJB objects. An exported object is attached to a TSSBean-created named POA. The TSSBean POA is created in the context of the ORB controlled by a CORBABean instance. The parent CORBABean controls the transport-level security of the host connection and defines the endpoint connnection for the object (host and listener port). TSSBean may then define additional characteristics that get encoded in the IOR of the connection.


Constructor Summary
TSSBean()
          gbean endpoint constructor
TSSBean(ClassLoader classLoader, String POAName, CORBABean server)
           
 
Method Summary
 Policy[] addPolicyOverrides(Policy[] policies)
          Add the policy overrides (if any) to the list of policies used to create a POA instance.
 void doFail()
          Fails the GBean.
 void doStart()
          TODO: Security policy really shouldn't be inserted if there is not CSI config to put into it.
 void doStop()
          Stops the target.
 String getPOAName()
           
 CORBABean getServer()
           
 TSSConfig getTssConfig()
           
 void registerContainer(TSSLink tssLink)
           
 void setTssConfig(TSSConfig tssConfig)
           
 void unregisterContainer(TSSLink tssLink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSSBean

public TSSBean()
gbean endpoint constructor


TSSBean

public TSSBean(ClassLoader classLoader,
               String POAName,
               CORBABean server)
Method Detail

getServer

public CORBABean getServer()

getPOAName

public String getPOAName()

getTssConfig

public TSSConfig getTssConfig()

setTssConfig

public void setTssConfig(TSSConfig tssConfig)

doStart

public void doStart()
             throws Exception
TODO: Security policy really shouldn't be inserted if there is not CSI config to put into it.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

registerContainer

public void registerContainer(TSSLink tssLink)
                       throws CORBAException
Throws:
CORBAException

unregisterContainer

public void unregisterContainer(TSSLink tssLink)

addPolicyOverrides

public Policy[] addPolicyOverrides(Policy[] policies)
Add the policy overrides (if any) to the list of policies used to create a POA instance.

Parameters:
policies - The base set of policies.
Returns:
A new Policy array with the overrides added. Returns the same array if no overrides are required.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.