org.jboss.ejb.plugins
Class RunAsSecurityInterceptor

java.lang.Object
  extended byorg.jboss.ejb.plugins.AbstractInterceptor
      extended byorg.jboss.ejb.plugins.RunAsSecurityInterceptor
All Implemented Interfaces:
ContainerPlugin, Interceptor, org.jboss.system.Service

public class RunAsSecurityInterceptor
extends AbstractInterceptor

An interceptor that enforces the run-as identity declared by a bean.

Version:
$Revision: 1.2.2.1 $
Author:
Scott Stark.

Field Summary
protected  Principal runAsRole
           
 
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor
container, log, nextInterceptor
 
Constructor Summary
RunAsSecurityInterceptor()
           
 
Method Summary
 Object invoke(Invocation mi)
          ???
 Object invokeHome(Invocation mi)
          ???
 void setContainer(Container container)
          Called by the super class to set the container to which this interceptor belongs.
 void start()
           
 
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor
create, destroy, getContainer, getNext, setNext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runAsRole

protected Principal runAsRole
Constructor Detail

RunAsSecurityInterceptor

public RunAsSecurityInterceptor()
Method Detail

setContainer

public void setContainer(Container container)
Called by the super class to set the container to which this interceptor belongs. We obtain the security manager and runAs identity to use here.

Specified by:
setContainer in interface ContainerPlugin
Overrides:
setContainer in class AbstractInterceptor

start

public void start()
           throws Exception
Specified by:
start in interface org.jboss.system.Service
Overrides:
start in class AbstractInterceptor
Throws:
Exception

invokeHome

public Object invokeHome(Invocation mi)
                  throws Exception
Description copied from interface: Interceptor
???

Specified by:
invokeHome in interface Interceptor
Overrides:
invokeHome in class AbstractInterceptor
Throws:
Exception

invoke

public Object invoke(Invocation mi)
              throws Exception
Description copied from interface: Interceptor
???

Specified by:
invoke in interface Interceptor
Overrides:
invoke in class AbstractInterceptor
Throws:
Exception


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