|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface describing the requirements for a SecurityInterceptor proxy. A SecurityProxy allows for the externalization of custom security checks on a per-method basis for both the EJB home and remote interface methods. Custom security checks are those that cannot be described using the standard EJB deployment time declarative role based security.
Method Summary | |
void |
init(java.lang.Class beanHome,
java.lang.Class beanRemote,
java.lang.Class beanLocalHome,
java.lang.Class beanLocal,
java.lang.Object securityMgr)
Inform a proxy of the context in which it is operating. |
void |
init(java.lang.Class beanHome,
java.lang.Class beanRemote,
java.lang.Object securityMgr)
Inform a proxy of the context in which it is operating. |
void |
invoke(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object bean)
Called to allow the security proxy to perform any custom security checks required for the EJB remote or local interface method. |
void |
invokeHome(java.lang.reflect.Method m,
java.lang.Object[] args)
Called to allow the security proxy to perform any custom security checks required for the EJB remote or local home interface method. |
void |
setEJBContext(EJBContext (src) ctx)
Called prior to any method invocation to set the current EJB context. |
Method Detail |
public void init(java.lang.Class beanHome, java.lang.Class beanRemote, java.lang.Object securityMgr) throws java.lang.InstantiationException
beanHome
- The EJB remote home interface classbeanRemote
- The EJB remote interface classsecurityMgr
- The security manager from the security domain
java.lang.InstantiationException
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
beanHome
- The EJB remote home interface classbeanRemote
- The EJB remote interface classbeanLocalHome
- The EJB local home interface class, may be nullbeanLocal
- The EJB local interface class, may be nullsecurityMgr
- The security manager from the security domain
java.lang.InstantiationException
public void setEJBContext(EJBContext (src) ctx)
public void invokeHome(java.lang.reflect.Method m, java.lang.Object[] args) throws java.lang.Exception
m
- , the EJB home or local home interface methodargs
- , the invocation args
java.lang.Exception
public void invoke(java.lang.reflect.Method m, java.lang.Object[] args, java.lang.Object bean) throws java.lang.Exception
m
- , the EJB remote or local interface methodargs
- , the invocation args
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |