@DeclareRoles(value={"admin","manager","fake"}) public class SecureEJB extends Object implements SecureEJBLocal
| Constructor and Description |
|---|
SecureEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowFakeMethod() |
void |
allowManagerMethod() |
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="admin") public void allowUserMethod()
allowUserMethod in interface SecureEJBLocal@RolesAllowed(value="manager") public void allowManagerMethod()
allowManagerMethod in interface SecureEJBLocal@RolesAllowed(value="fake") public void allowFakeMethod()
allowFakeMethod in interface SecureEJBLocal@DenyAll public void denyAllMethod()
denyAllMethod in interface SecureEJBLocalCopyright © 2015 WSO2 Inc. All rights reserved.