org.ow2.easybeans.examples.security
Class StatelessRunAsBean
java.lang.Object
org.ow2.easybeans.examples.security.StatelessRunAsBean
- All Implemented Interfaces:
- StatelessRunAsRemote
@DeclareRoles(value="admin")
@RunAs(value="admin")
public class StatelessRunAsBean
- extends Object
- implements StatelessRunAsRemote
Stateless Bean with secured methods.
Two roles are declared : user and admin.
- Author:
- Florent Benoit
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatelessRunAsBean
public StatelessRunAsBean()
printCurrentCaller
public void printCurrentCaller()
- Prints the current caller.
- Specified by:
printCurrentCaller
in interface StatelessRunAsRemote
callBeanWithRunAsAdmin
public void callBeanWithRunAsAdmin()
- Call method that is allowed only for admin. (but use run-as role).
- Specified by:
callBeanWithRunAsAdmin
in interface StatelessRunAsRemote
Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.