/** * Creates a new EJBMethodPermission with name corresponding to the * EJBName and actions composed from methodInterface, and the * Method object. * <P> * A container uses this constructor prior to checking if a caller * has permission to call the method of an EJB. * <P> * @param EJBName The string representation of the name of the EJB as it * appears in the corresponding ejb-name element in the deployment * descriptor. * <P> * @param methodInterface A string that may be used to specify the EJB * interface to which the permission pertains. * A value of null or "", indicates that the permission pertains * to all methods that match the other parameters of the * permission specification without consideration of the * interface they occur on. * <P> * @param method an instance of the Java.lang.reflect.Method class * corresponding to the method that the container is trying to determine * whether the caller has permission to access. This value must not be * null. */ public EJBMethodPermission(String EJBName, String methodInterface, Method method) { super(EJBName); setMethodSpec(methodInterface,method); }
/** * Creates a new EJBMethodPermission with name corresponding to the * EJBName and actions composed from methodInterface, and the * Method object. * <P> * A container uses this constructor prior to checking if a caller * has permission to call the method of an EJB. * <P> * @param EJBName The string representation of the name of the EJB as it * appears in the corresponding ejb-name element in the deployment * descriptor. * <P> * @param methodInterface A string that may be used to specify the EJB * interface to which the permission pertains. * A value of null or "", indicates that the permission pertains * to all methods that match the other parameters of the * permission specification without consideration of the * interface they occur on. * <P> * @param method an instance of the Java.lang.reflect.Method class * corresponding to the method that the container is trying to determine * whether the caller has permission to access. This value must not be * null. */ public EJBMethodPermission(String EJBName, String methodInterface, Method method) { super(EJBName); setMethodSpec(methodInterface,method); }
setMethodSpec(methodName,methodInterface,methodParams);
setMethodSpec(methodName,methodInterface,methodParams);
/** * readObject reads the serialized fields from the * input stream and uses them to restore the permission. * This method need not be implemented if establishing the * values of the serialized fields (as is done by defaultReadObject) * is sufficient to initialize the permission. */ private void readObject(java.io.ObjectInputStream s) throws IOException,ClassNotFoundException { setMethodSpec((String) s.readFields().get("actions",null)); }
/** * readObject reads the serialized fields from the * input stream and uses them to restore the permission. * This method need not be implemented if establishing the * values of the serialized fields (as is done by defaultReadObject) * is sufficient to initialize the permission. */ private synchronized void readObject(java.io.ObjectInputStream s) throws IOException,ClassNotFoundException { setMethodSpec((String) s.readFields().get("actions",null)); }