Class IPAddressAccessEvaluator
java.lang.Object
com.netscape.certsrv.evaluators.AccessEvaluator
com.netscape.cms.evaluators.IPAddressAccessEvaluator
A class represents a IP address acls evaluator.
-
Field Summary
FieldsFields inherited from class AccessEvaluator
description, engine, type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AccessEvaluator
getCMSEngine, getDescription, getType, setCMSEngine
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
IPAddressAccessEvaluator
public IPAddressAccessEvaluator()Class constructor.
-
-
Method Details
-
init
-
getSupportedOperators
Description copied from class:AccessEvaluatorGet the supported operators for this evaluator- Specified by:
getSupportedOperatorsin classAccessEvaluator- Returns:
- Supported operators in string array
-
evaluate
Gets the IP address from session context- Specified by:
evaluatein classAccessEvaluator- Parameters:
authToken- authentication tokentype- must be "ipaddress"op- must be "=" or "!="value- the ipaddress- Returns:
- true if the evaluation expression is matched; false otherwise.
-
evaluate
evaluates uid in SessionContext to see if it has membership in group value- Specified by:
evaluatein classAccessEvaluator- Parameters:
type- must be "group"op- must be "="value- the group name- Returns:
- true if SessionContext uid belongs to the group value, false otherwise
-