org.ocpsoft.rewrite.servlet.config
Class JAASRoles
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.JAASRoles
- All Implemented Interfaces:
- Condition, ConditionBuilder
public class JAASRoles
- extends HttpCondition
A Condition that checks the current session roles using HttpServletRequest.isUserInRole(String)
- Author:
- Christian Kaltepoth, Lincoln Baxter, III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
required
public static JAASRoles required(String... roles)
- Create a new
JAASRoles condition specifying the roles of which the current user must be a member for
evaluation to return true.
evaluateHttp
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
- Specified by:
evaluateHttp in class HttpCondition
Copyright © 2013 OCPsoft. All Rights Reserved.