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.
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 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 home interface method.
void
setEJBContext(javax.ejb.EJBContext ctx)
Called prior to any method invocation to set the current EJB context.
Method Detail
init
public void init(java.lang.Class beanHome,
java.lang.Class beanRemote,
java.lang.Object securityMgr)
throws java.lang.InstantiationException
setEJBContext
public void setEJBContext(javax.ejb.EJBContext ctx)
Called prior to any method invocation to set the current EJB context.
invokeHome
public void invokeHome(java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.SecurityException
Called to allow the security proxy to perform any custom security
checks required for the EJB home interface method.
Parameters:
m, - the EJB home interface method? Or is this the EJB bean impl method?
invoke
public void invoke(java.lang.reflect.Method m,
java.lang.Object[] args,
java.lang.Object bean)
throws java.lang.SecurityException
Called to allow the security proxy to perform any custom security
checks required for the EJB remote interface method.
Parameters:
m, - the EJB remote interface method? Or is this the EJB bean impl method?