|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.security.AbstractSecurityProxy org.jboss.security.SubjectSecurityProxy
public class SubjectSecurityProxy
A subclass of AbstractSecurityProxy that executes as the currently authenticated subject within the invokeHomeOnDelegate and invokeOnDelegate methods. The current subject is accessed via the security manager passed to the init() method, which must be an instance of SubjectSecurityManager. This results in AccessController.checkPermission() calls made from within the security delegate methods to be based on the Subject's permissions. This is just an experiment with the JAAS Subject based permissions.
Subject
,
SubjectSecurityManager
Field Summary |
---|
Fields inherited from class org.jboss.security.AbstractSecurityProxy |
---|
delegate, strict |
Method Summary | |
---|---|
void |
init(Class beanHome,
Class beanRemote,
Class beanLocalHome,
Class beanLocal,
Object securityMgr)
This method is called by the container SecurityInterceptor to intialize the proxy with the EJB home and remote interface classes that the container is housing. |
void |
init(Class beanHome,
Class beanRemote,
Object securityMgr)
This version invokes init(beanHome, beanRemote, null, null, securityMgr) |
protected void |
invokeHomeOnDelegate(Method m,
Object[] args,
Object delegate)
Subclasses implement this method to actually invoke the given home method on the proxy delegate. |
protected void |
invokeOnDelegate(Method m,
Object[] args,
Object delegate)
Subclasses implement this method to actually invoke the given remote method on the proxy delegate. |
Methods inherited from class org.jboss.security.AbstractSecurityProxy |
---|
invoke, invokeHome, mapHomeMethods, mapRemoteMethods, setEJBContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void init(Class beanHome, Class beanRemote, Object securityMgr) throws InstantiationException
AbstractSecurityProxy
init
in interface SecurityProxy
init
in class AbstractSecurityProxy
beanHome
- The EJB remote home interface classbeanRemote
- The EJB remote interface classsecurityMgr
- The security manager from the security domain
InstantiationException
AbstractSecurityProxy.init(Class, Class, Class, Class, Object)
public void init(Class beanHome, Class beanRemote, Class beanLocalHome, Class beanLocal, Object securityMgr) throws InstantiationException
AbstractSecurityProxy
init
in interface SecurityProxy
init
in class AbstractSecurityProxy
beanHome
- The EJB remote home interface classbeanRemote
- The EJB remote interface classbeanLocalHome
- The EJB local home interface classbeanLocal
- The EJB local interface classsecurityMgr
- The security manager from the security domain
InstantiationException
protected void invokeHomeOnDelegate(Method m, Object[] args, Object delegate) throws SecurityException
AbstractSecurityProxy
invokeHomeOnDelegate
in class AbstractSecurityProxy
SecurityException
AbstractSecurityProxy.invokeHome(Method, Object[])
protected void invokeOnDelegate(Method m, Object[] args, Object delegate) throws Exception
AbstractSecurityProxy
invokeOnDelegate
in class AbstractSecurityProxy
Exception
AbstractSecurityProxy.invoke(Method, Object[], Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |