Class IPAddressAccessEvaluator
java.lang.Object
com.netscape.cms.evaluators.IPAddressAccessEvaluator
- All Implemented Interfaces:
IAccessEvaluator
A class represents a IP address acls evaluator.
- Version:
- $Revision$, $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(IAuthToken authToken, String type, String op, String value) Gets the IP address from session contextbooleanevaluates uid in SessionContext to see if it has membership in group 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
-
IPAddressAccessEvaluator
public IPAddressAccessEvaluator()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: ipaddress
-
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
Gets the IP address from session context- Specified by:
evaluatein interfaceIAccessEvaluator- 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 interfaceIAccessEvaluator- Parameters:
type- must be "group"op- must be "="value- the group name- Returns:
- true if SessionContext uid belongs to the group value, false otherwise
-