| |
|
| java.lang.Object org.jboss.test.security.ejb.StatelessSessionBean3
StatelessSessionBean3 | public class StatelessSessionBean3 implements SessionBean(Code) | | A SessionBean that accesses an Entity bean in its echo() method to test runAs
identity propagation. It also access its own excluded() method to test that the runAs
identity is also see on methods of this bean that are invoked through the
remote interface.
author: Scott.Stark@jboss.org version: $Revision: 57211 $ |
Method Summary | |
public String | echo(String arg) This method creates an instance of the entity bean bound under
java:comp/env/ejb/Entity and then invokes its echo method. | public void | ejbActivate() | public void | ejbCreate() | public void | ejbPassivate() | public void | ejbRemove() | public void | excluded() This method should be assigned access to the runAs role and no user
should have this role. | public String | forward(String echoArg) | public void | noop() This method gets this bean's remote interface and invokes the
excluded() method to test that the method is accessed as the
runAs role. | public void | npeError() | public void | setSessionContext(SessionContext context) | public void | unchecked() |
echo | public String echo(String arg)(Code) | | This method creates an instance of the entity bean bound under
java:comp/env/ejb/Entity and then invokes its echo method. This
method should be accessible by user's with a role of Echo, while
the Entity bean should only be accessible by the runAs role.
|
excluded | public void excluded()(Code) | | This method should be assigned access to the runAs role and no user
should have this role.
|
noop | public void noop()(Code) | | This method gets this bean's remote interface and invokes the
excluded() method to test that the method is accessed as the
runAs role.
|
npeError | public void npeError()(Code) | | |
unchecked | public void unchecked()(Code) | | |
|
|
|