@DeclareRoles(value={"user","manager","UNKNOWN","runas"}) public class SecureEJB extends Object implements SecureEJBLocal
| Constructor and Description |
|---|
SecureEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowManagerMethod() |
void |
allowRunasMethod() |
void |
allowUnknownMethod() |
void |
allowUserMethod() |
void |
denyAllMethod() |
Principal |
getCallerPrincipal() |
boolean |
isCallerInRole(String role) |
String |
toString() |
public Principal getCallerPrincipal()
getCallerPrincipal in interface SecureEJBLocalpublic boolean isCallerInRole(String role)
isCallerInRole in interface SecureEJBLocal@RolesAllowed(value="user") public void allowUserMethod()
allowUserMethod in interface SecureEJBLocal@RolesAllowed(value="manager") public void allowManagerMethod()
allowManagerMethod in interface SecureEJBLocal@RolesAllowed(value="UNKNOWN") public void allowUnknownMethod()
allowUnknownMethod in interface SecureEJBLocal@RolesAllowed(value="runas") public void allowRunasMethod()
allowRunasMethod in interface SecureEJBLocal@DenyAll public void denyAllMethod()
denyAllMethod in interface SecureEJBLocalCopyright © 1999–2019 The Apache Software Foundation. All rights reserved.