org.superbiz.servlet
Class SecureEJB
java.lang.Object
org.superbiz.servlet.SecureEJB
- All Implemented Interfaces:
- SecureEJBLocal
@DeclareRoles(value={"user","manager","fake"})
public class SecureEJB
- extends java.lang.Object
- implements SecureEJBLocal
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SecureEJB
public SecureEJB()
getCallerPrincipal
public java.security.Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal
in interface SecureEJBLocal
isCallerInRole
public boolean isCallerInRole(java.lang.String role)
- Specified by:
isCallerInRole
in interface SecureEJBLocal
allowUserMethod
@RolesAllowed(value="user")
public void allowUserMethod()
- Specified by:
allowUserMethod
in interface SecureEJBLocal
allowManagerMethod
@RolesAllowed(value="manager")
public void allowManagerMethod()
- Specified by:
allowManagerMethod
in interface SecureEJBLocal
allowFakeMethod
@RolesAllowed(value="fake")
public void allowFakeMethod()
- Specified by:
allowFakeMethod
in interface SecureEJBLocal
denyAllMethod
@DenyAll
public void denyAllMethod()
- Specified by:
denyAllMethod
in interface SecureEJBLocal
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.