@DeclareRoles(value={"Role1","Role2","Role3"}) public class AnnotatedSLSB extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD |
static String |
USERNAME |
| Constructor and Description |
|---|
AnnotatedSLSB() |
| Modifier and Type | Method and Description |
|---|---|
String |
doAnything(String msg) |
String |
doSelected(String msg) |
void |
restrictedMethod() |
String |
secureRouteAccess(String msg) |
public static final String USERNAME
public static final String PASSWORD
@PermitAll public String doAnything(String msg)
@RolesAllowed(value="Role2") public String doSelected(String msg)
@RolesAllowed(value="Role2") public String secureRouteAccess(String msg)
@DenyAll public void restrictedMethod()
Copyright © 2017. All rights reserved.