Package com.netscape.cms.evaluators
Class UserOrigReqAccessEvaluator
- java.lang.Object
-
- com.netscape.cms.evaluators.UserOrigReqAccessEvaluator
-
- All Implemented Interfaces:
com.netscape.certsrv.evaluators.IAccessEvaluator
public class UserOrigReqAccessEvaluator extends java.lang.Object implements com.netscape.certsrv.evaluators.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 Modifier and Type Field Description static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description UserOrigReqAccessEvaluator()
Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(com.netscape.certsrv.authentication.IAuthToken authToken, java.lang.String type, java.lang.String op, java.lang.String value)
Evaluates the user in AuthToken to see if it's equal to valueboolean
evaluate(java.lang.String type, java.lang.String op, java.lang.String value)
Evaluates the user in session context to see if it's equal to valuejava.lang.String
getDescription()
gets the description for this acl evaluatorjava.lang.String[]
getSupportedOperators()
Get the supported operators for this evaluatorjava.lang.String
getType()
gets the type name for this acl evaluatorvoid
init()
initialization.
-
-
-
Method Detail
-
init
public void init()
initialization. nothing for now.- Specified by:
init
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
-
getType
public java.lang.String getType()
gets the type name for this acl evaluator- Specified by:
getType
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
- Returns:
- type for this acl evaluator: "user_origreq" or "at_user_origreq"
-
getDescription
public java.lang.String getDescription()
gets the description for this acl evaluator- Specified by:
getDescription
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
- Returns:
- description for this acl evaluator
-
getSupportedOperators
public java.lang.String[] getSupportedOperators()
Description copied from interface:com.netscape.certsrv.evaluators.IAccessEvaluator
Get the supported operators for this evaluator- Specified by:
getSupportedOperators
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
- Returns:
- Supported operators in string array
-
evaluate
public boolean evaluate(com.netscape.certsrv.authentication.IAuthToken authToken, java.lang.String type, java.lang.String op, java.lang.String value)
Evaluates the user in AuthToken to see if it's equal to value- Specified by:
evaluate
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
- 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
public boolean evaluate(java.lang.String type, java.lang.String op, java.lang.String value)
Evaluates the user in session context to see if it's equal to value- Specified by:
evaluate
in interfacecom.netscape.certsrv.evaluators.IAccessEvaluator
- Parameters:
type
- must be "user_origreq"op
- must be "="value
- the user id- Returns:
- true if SessionContext uid is same as value, false otherwise
-
-