org.opends.server.authorization.dseecompat
Class IP

java.lang.Object
  extended by org.opends.server.authorization.dseecompat.IP
All Implemented Interfaces:
KeywordBindRule

public class IP
extends java.lang.Object
implements KeywordBindRule

This class represents a single ACI's IP bind rule expression. It is possble for that expression to contain several IP addresses to evaluate, so the class contains a list of classes that can evaluate a remote clients IP address for each IP address parsed from the bind rule.


Method Summary
static KeywordBindRule decode(java.lang.String expr, EnumBindRuleType type)
          Decodes the provided IP bind rule expression string and returns an IP class the can be used to evaluate remote clients IP addresses.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Perform an evaluation using the provided evaluation context's remote IP address information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static KeywordBindRule decode(java.lang.String expr,
                                     EnumBindRuleType type)
                              throws AciException
Decodes the provided IP bind rule expression string and returns an IP class the can be used to evaluate remote clients IP addresses.

Parameters:
expr - The expression string from the ACI IP bind rule.
type - An enmumeration representing the expression type.
Returns:
A class that can be used to evaluate remote clients IP addresses.
Throws:
AciException - If there is a parsing error.

evaluate

public EnumEvalResult evaluate(AciEvalContext evalCtx)
Perform an evaluation using the provided evaluation context's remote IP address information.

Specified by:
evaluate in interface KeywordBindRule
Parameters:
evalCtx - An evaluation context containing the remote clients IP address information.
Returns:
An enumeration representing if the address matched.