org.opends.server.authorization.dseecompat
Class UserAttr

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

public class UserAttr
extends java.lang.Object
implements KeywordBindRule

This class implements the userattr bind rule keyword.


Method Summary
static KeywordBindRule decode(java.lang.String expression, EnumBindRuleType type)
          Decode an string containing the userattr bind rule expression.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Evaluate the expression using an evaluation context.
 
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 expression,
                                     EnumBindRuleType type)
                              throws AciException
Decode an string containing the userattr bind rule expression.

Parameters:
expression - The expression string.
type - The bind rule type.
Returns:
A class suitable for evaluating a userattr bind rule.
Throws:
AciException - If the string contains an invalid expression.

evaluate

public EnumEvalResult evaluate(AciEvalContext evalCtx)
Evaluate the expression using an evaluation context.

Specified by:
evaluate in interface KeywordBindRule
Parameters:
evalCtx - The evaluation context to use in the evaluation of the userattr expression.
Returns:
An enumeration containing the result of the evaluation.