Package org.apache.openejb.test.servlet
Class SecureEJB
java.lang.Object
org.apache.openejb.test.servlet.SecureEJB
- All Implemented Interfaces:
SecureEJBLocal
@DeclareRoles({"user","manager","UNKNOWN","runas"})
public class SecureEJB
extends Object
implements SecureEJBLocal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidbooleanisCallerInRole(String role) toString()
-
Constructor Details
-
SecureEJB
public SecureEJB()
-
-
Method Details
-
getCallerPrincipal
- Specified by:
getCallerPrincipalin interfaceSecureEJBLocal
-
isCallerInRole
- Specified by:
isCallerInRolein interfaceSecureEJBLocal
-
allowUserMethod
@RolesAllowed("user") public void allowUserMethod()- Specified by:
allowUserMethodin interfaceSecureEJBLocal
-
allowManagerMethod
@RolesAllowed("manager") public void allowManagerMethod()- Specified by:
allowManagerMethodin interfaceSecureEJBLocal
-
allowUnknownMethod
@RolesAllowed("UNKNOWN") public void allowUnknownMethod()- Specified by:
allowUnknownMethodin interfaceSecureEJBLocal
-
allowRunasMethod
@RolesAllowed("runas") public void allowRunasMethod()- Specified by:
allowRunasMethodin interfaceSecureEJBLocal
-
denyAllMethod
@DenyAll public void denyAllMethod()- Specified by:
denyAllMethodin interfaceSecureEJBLocal
-
toString
-