org.opends.server.authorization.dseecompat
Class DNS

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

public class DNS
extends java.lang.Object
implements KeywordBindRule

This class implements the dns bind rule keyword.


Method Summary
static DNS decode(java.lang.String expr, EnumBindRuleType type)
          Decode an string representing a dns bind rule.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Performs evaluation of dns keyword 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 DNS decode(java.lang.String expr,
                         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)
Performs evaluation of dns keyword bind rule using the provided evaluation context.

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