public class UserAttr extends Object implements KeywordBindRule
TODO Evaluate making this class more efficient.
This class isn't as efficient as it could be. For example, the evalVAL(AciEvalContext)
method should be able to use cached versions of the attribute type and filter.
The evalURL(AciEvalContext)
and evalDNKeywords(AciEvalContext)
methods should also be able to use a cached version of the attribute type.
Modifier and Type | Method and Description |
---|---|
static KeywordBindRule |
decode(String expression,
org.opends.server.authorization.dseecompat.EnumBindRuleType type)
Decode an string containing the userattr bind rule expression.
|
EnumEvalResult |
evaluate(AciEvalContext evalCtx)
Evaluate the expression using an evaluation context.
|
String |
toString() |
void |
toString(StringBuilder buffer)
Appends a string representation of this object to the provided buffer.
|
public static KeywordBindRule decode(String expression, org.opends.server.authorization.dseecompat.EnumBindRuleType type) throws AciException
expression
- The expression string.type
- The bind rule type.AciException
- If the string contains an invalid expression.public EnumEvalResult evaluate(AciEvalContext evalCtx)
evaluate
in interface KeywordBindRule
evalCtx
- The evaluation context to use in the evaluation of the
userattr expression.public final void toString(StringBuilder buffer)
KeywordBindRule
toString
in interface KeywordBindRule
buffer
- The buffer into which a string representation of this object
should be appended.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.