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 Object
- implements SecureEJBLocal
SecureEJB
public SecureEJB()
getCallerPrincipal
public Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal in interface SecureEJBLocal
isCallerInRole
public boolean isCallerInRole(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 String toString()
- Overrides:
toString in class Object
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.