Class UserOrigReqAccessEvaluator
java.lang.Object
com.netscape.cms.evaluators.UserOrigReqAccessEvaluator
- All Implemented Interfaces:
IAccessEvaluator
A class represents a user-origreq user mapping acls evaluator.
This is primarily used for renewal. During renewal, the orig_req
uid is placed in the SessionContext of the renewal session context
to be evaluated by this evaluator
- Version:
- $Revision$, $Date$
- Author:
- Christina Fu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(IAuthToken authToken, String type, String op, String value) Evaluates the user in AuthToken to see if it's equal to valuebooleanEvaluates the user in session context to see if it's equal to valuegets the description for this acl evaluatorString[]Get the supported operators for this evaluatorgetType()gets the type name for this acl evaluatorvoidinit()initialization.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
UserOrigReqAccessEvaluator
public UserOrigReqAccessEvaluator()Class constructor.
-
-
Method Details
-
init
public void init()initialization. nothing for now.- Specified by:
initin interfaceIAccessEvaluator
-
getType
gets the type name for this acl evaluator- Specified by:
getTypein interfaceIAccessEvaluator- Returns:
- type for this acl evaluator: "user_origreq" or "at_user_origreq"
-
getDescription
gets the description for this acl evaluator- Specified by:
getDescriptionin interfaceIAccessEvaluator- Returns:
- description for this acl evaluator
-
getSupportedOperators
Description copied from interface:IAccessEvaluatorGet the supported operators for this evaluator- Specified by:
getSupportedOperatorsin interfaceIAccessEvaluator- Returns:
- Supported operators in string array
-
evaluate
Evaluates the user in AuthToken to see if it's equal to value- Specified by:
evaluatein interfaceIAccessEvaluator- Parameters:
authToken- AuthToken from authenticationtype- must be "at_userreq"op- must be "="value- the request param name- Returns:
- true if AuthToken userid is same as value, false otherwise
-
evaluate
Evaluates the user in session context to see if it's equal to value- Specified by:
evaluatein interfaceIAccessEvaluator- Parameters:
type- must be "user_origreq"op- must be "="value- the user id- Returns:
- true if SessionContext uid is same as value, false otherwise
-