Class DNS
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.DNS
-
- All Implemented Interfaces:
KeywordBindRule
public class DNS extends Object implements KeywordBindRule
This class implements the dns bind rule keyword.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DNS
decode(String expr, org.opends.server.authorization.dseecompat.EnumBindRuleType type)
Decode an string representing a dns bind rule.EnumEvalResult
evaluate(AciEvalContext evalCtx)
Evaluate a bind rule using the passed in context.String
toString()
void
toString(StringBuilder buffer)
Appends a string representation of this object to the provided buffer.
-
-
-
Method Detail
-
decode
public static DNS decode(String expr, org.opends.server.authorization.dseecompat.EnumBindRuleType type) throws AciException
Decode an string representing a dns bind rule.- Parameters:
expr
- A string representation of the bind rule.type
- An enumeration representing the bind rule type.- Returns:
- A keyword bind rule class that can be used to evaluate this bind rule.
- Throws:
AciException
- If the expression string is invalid.
-
evaluate
public EnumEvalResult evaluate(AciEvalContext evalCtx)
Description copied from interface:KeywordBindRule
Evaluate a bind rule using the passed in context.- Specified by:
evaluate
in interfaceKeywordBindRule
- Parameters:
evalCtx
- An evaluation context to use in the evaluation.- Returns:
- An enumeration evaluation result.
-
toString
public final void toString(StringBuilder buffer)
Description copied from interface:KeywordBindRule
Appends a string representation of this object to the provided buffer.- Specified by:
toString
in interfaceKeywordBindRule
- Parameters:
buffer
- The buffer into which a string representation of this object should be appended.
-
-