org.glassfish.ejb.security
Class EJBSecurityUtil
java.lang.Object
org.glassfish.ejb.security.EJBSecurityUtil
public class EJBSecurityUtil
- extends Object
- Author:
- Mahesh Kannan
Date: Jul 6, 2008
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBSecurityUtil
public EJBSecurityUtil()
invoke
public static Object invoke(Method beanClassMethod,
EjbInvocation inv,
Object o,
Object[] oa,
EJBSecurityManager ejbSecMgr)
throws Throwable
- This method is similiar to the runMethod, except it keeps the
semantics same as the one in reflection. On failure, if the
exception is caused due to reflection, it returns the
InvocationTargetException. This method is called from the
containers for ejbTimeout, WebService and MDBs.
- Parameters:
beanClassMethod, - the bean class method to be invokedinv, - the current invocationo, - the object on which this method is to be
invoked in this case the ejb,oa, - the parameters for the method,ejbSecMgr, - security manager for this container,
can be a null value, where in the container will be queried to
find its security manager.
- Returns:
- Object, the result of the execution of the method.
- Throws:
Throwable
runMethod
public static Object runMethod(Method beanClassMethod,
EjbInvocation inv,
Object o,
Object[] oa,
EJBSecurityManager mgr)
throws Throwable
- This method is called from the generated code to execute the
method. This is a translation of method.invoke that the
generated code needs to do, to invoke a particular ejb
method. The method is invoked under a security Subject. This
method is called from the generated code.
- Parameters:
Method - beanClassMethod, the bean class method to be invokedInvocation - inv, the current invocation objectObject - o, the object on which this method needs to be invoked,Object[] - oa, the parameters to the methods,Container - c, the container from which the appropriate subject is
queried from.
- Throws:
Throwable
Copyright © 2012 GlassFish Community. All Rights Reserved.