org.apache.openejb.test.servlet
Class SecureEJB
java.lang.Object
org.apache.openejb.test.servlet.SecureEJB
- All Implemented Interfaces:
- SecureEJBLocal
@DeclareRoles(value={"user","manager","UNKNOWN","runas"})
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
allowUnknownMethod
@RolesAllowed(value="UNKNOWN")
public void allowUnknownMethod()
- Specified by:
allowUnknownMethod in interface SecureEJBLocal
allowRunasMethod
@RolesAllowed(value="runas")
public void allowRunasMethod()
- Specified by:
allowRunasMethod 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-2008 The Apache OpenEJB development community. All Rights Reserved.