|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.security.SeamSecurityManager
@Scope(value=APPLICATION) @Name(value="org.jboss.seam.securityManager") @Install(value=false, precedence=0) @Intercept(value=NEVER) public class SeamSecurityManager
Holds configuration settings and provides functionality for the security API
| Constructor Summary | |
|---|---|
SeamSecurityManager()
|
|
| Method Summary | |
|---|---|
boolean |
evaluateExpression(String expr)
Evaluates the specified security expression, which must return a boolean value. |
static boolean |
hasPermission(String name,
String action,
Object... args)
Performs a permission check for the specified name and action |
static boolean |
hasRole(String name)
Checks if the authenticated Identity is a member of the specified role. |
void |
initSecurityManager()
Initialise the security manager |
static SeamSecurityManager |
instance()
Returns the application-scoped instance of the security manager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeamSecurityManager()
| Method Detail |
|---|
@Create public void initSecurityManager() throws Exception
Exceptionpublic static SeamSecurityManager instance()
public boolean evaluateExpression(String expr)
expr - String
public static boolean hasRole(String name)
name - String
public static boolean hasPermission(String name, String action, Object... args)
name - Stringaction - Stringargs - Object[]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||