public class RoleMatcher extends Object
Supports the following expression constructs:
Constructor and Description |
---|
RoleMatcher(String expression)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getRolesInExpression()
Returns all the tokens used in this expression.
|
boolean |
matches(Set<String> roles)
Returns
|
String |
toString() |
public RoleMatcher(String expression) throws ParseException
expression
- The string expression.ParseException
- If the expression is malformed.public boolean matches(Set<String> roles)
roles
- The user roles.public Set<String> getRolesInExpression()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.