org.opends.server.authorization.dseecompat
Class AuthMethod

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

public class AuthMethod
extends java.lang.Object
implements KeywordBindRule

The AuthMethod class represents an authmethod bind rule keyword expression.


Method Summary
static KeywordBindRule decode(java.lang.String expr, EnumBindRuleType type)
          Decode a string representing an authmethod bind rule.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Evaluate authmethod bind rule using the provided 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 expr,
                                     EnumBindRuleType type)
                              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.
Returns:
A keyword bind rule class that can be used to evaluate the bind rule.
Throws:
AciException - If the expression string is invalid.

evaluate

public EnumEvalResult evaluate(AciEvalContext evalCtx)
Evaluate authmethod bind rule using the provided evaluation context.

Specified by:
evaluate in interface KeywordBindRule
Parameters:
evalCtx - An evaluation context to use.
Returns:
An enumeration evaluation result.