|
|||||||||||
PREV CLASS NEXT CLASS | 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(Class beanHome,
Class beanRemote,
Class beanLocalHome,
Class beanLocal,
Object securityMgr)
Inform a proxy of the context in which it is operating. |
void |
init(Class beanHome,
Class beanRemote,
Object securityMgr)
Inform a proxy of the context in which it is operating. |
void |
invoke(Method m,
Object[] args,
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(Method m,
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(javax.ejb.EJBContext ctx)
Called prior to any method invocation to set the current EJB context. |
Method Detail |
public void init(Class beanHome, Class beanRemote, Object securityMgr) throws InstantiationException
beanHome
- The EJB remote home interface classbeanRemote
- The EJB remote interface classsecurityMgr
- The security manager from the security domain
InstantiationException
public void init(Class beanHome, Class beanRemote, Class beanLocalHome, Class beanLocal, Object securityMgr) throws 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
InstantiationException
public void setEJBContext(javax.ejb.EJBContext ctx)
public void invokeHome(Method m, Object[] args) throws Exception
m
- , the EJB home or local home interface methodargs
- , the invocation args
Exception
public void invoke(Method m, Object[] args, Object bean) throws Exception
m
- , the EJB remote or local interface methodargs
- , the invocation args
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |