Class AuthMethod
java.lang.Object
org.opends.server.authorization.dseecompat.AuthMethod
- All Implemented Interfaces:
KeywordBindRule
The AuthMethod class represents an authmethod bind rule keyword expression.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeywordBindRule
decode
(String expr, org.opends.server.authorization.dseecompat.EnumBindRuleType type, ServerContext serverContext) Decode a string representing an authmethod bind rule.evaluate
(AciEvalContext evalCtx) Evaluate a bind rule using the passed in context.toString()
void
toString
(StringBuilder buffer) Appends a string representation of this object to the provided buffer.
-
Method Details
-
decode
public static KeywordBindRule decode(String expr, org.opends.server.authorization.dseecompat.EnumBindRuleType type, ServerContext serverContext) throws AciException Decode a string representing an authmethod bind rule.- Parameters:
expr
- The string representing the bind rule.type
- An enumeration representing the bind rule type.serverContext
- The server context- Returns:
- A keyword bind rule class that can be used to evaluate the bind rule.
- Throws:
AciException
- If the expression string is invalid.
-
evaluate
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
-
toString
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.
-