|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.AbstractSecurityProxy (src)
org.jboss.security.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
(src) Field Summary |
Fields inherited from class org.jboss.security.AbstractSecurityProxy (src) |
delegate, strict |
Method Summary | |
void |
init(java.lang.Class beanHome,
java.lang.Class beanRemote,
java.lang.Class beanLocalHome,
java.lang.Class beanLocal,
java.lang.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(java.lang.Class beanHome,
java.lang.Class beanRemote,
java.lang.Object securityMgr)
This version invokes init(beanHome, beanRemote, null, null, securityMgr) |
protected void |
invokeHomeOnDelegate(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object delegate)
Subclasses implement this method to actually invoke the given home method on the proxy delegate. |
protected void |
invokeOnDelegate(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.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 (src) |
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(java.lang.Class beanHome, java.lang.Class beanRemote, java.lang.Object securityMgr) throws java.lang.InstantiationException
AbstractSecurityProxy (src)
init
in interface SecurityProxy (src)
init
in class AbstractSecurityProxy (src)
java.lang.InstantiationException
AbstractSecurityProxy.init(Class, Class, Class, Class, Object)
public void init(java.lang.Class beanHome, java.lang.Class beanRemote, java.lang.Class beanLocalHome, java.lang.Class beanLocal, java.lang.Object securityMgr) throws java.lang.InstantiationException
AbstractSecurityProxy (src)
init
in interface SecurityProxy (src)
init
in class AbstractSecurityProxy (src)
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
java.lang.InstantiationException
protected void invokeHomeOnDelegate(java.lang.reflect.Method m, java.lang.Object[] args, java.lang.Object delegate) throws java.lang.SecurityException
AbstractSecurityProxy (src)
invokeHomeOnDelegate
in class AbstractSecurityProxy (src)
java.lang.SecurityException
AbstractSecurityProxy.invokeHome(Method, Object[])
protected void invokeOnDelegate(java.lang.reflect.Method m, java.lang.Object[] args, java.lang.Object delegate) throws java.lang.Exception
AbstractSecurityProxy (src)
invokeOnDelegate
in class AbstractSecurityProxy (src)
java.lang.Exception
AbstractSecurityProxy.invoke(Method, Object[], Object)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |