Class PatternIP
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.PatternIP
-
public final class PatternIP extends Object
A class representing a single IP address parsed from a IP bind rule expression. The class can be used to evaluate a remote clients IP address using the information parsed from the IP bind rule expression.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatternIP
decode(String expr)
Decode the provided address expression string and create a class that can be used to perform an evaluation of an IP address based on the decoded expression string information.EnumEvalResult
evaluate(InetAddress remoteAddr)
Evaluate the provided IP address against the information processed during the IP bind rule expression decode.
-
-
-
Method Detail
-
decode
public static PatternIP decode(String expr) throws AciException
Decode the provided address expression string and create a class that can be used to perform an evaluation of an IP address based on the decoded expression string information.- Parameters:
expr
- The address expression string from the ACI IP bind rule.- Returns:
- A class that can evaluate a remote clients IP address using the expression's information.
- Throws:
AciException
- If the address expression is invalid.
-
evaluate
public EnumEvalResult evaluate(InetAddress remoteAddr)
Evaluate the provided IP address against the information processed during the IP bind rule expression decode.- Parameters:
remoteAddr
- A IP address to evaluate.- Returns:
- An enumeration representing the result of the evaluation.
-
-