org.opends.server.authorization.dseecompat
Class BindRule

java.lang.Object
  extended by org.opends.server.authorization.dseecompat.BindRule

public class BindRule
extends java.lang.Object

This class represents a single bind rule of an ACI permission-bind rule pair.


Method Summary
static BindRule decode(java.lang.String input)
          Decode an ACI bind rule string representation.
 EnumEvalResult evaluate(AciEvalContext evalCtx)
          Evaluate an bind rule against 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 BindRule decode(java.lang.String input)
                       throws AciException
Decode an ACI bind rule string representation.

Parameters:
input - The string representation of the bind rule.
Returns:
A BindRule class representing the bind rule.
Throws:
AciException - If the string is an invalid bind rule.

evaluate

public EnumEvalResult evaluate(AciEvalContext evalCtx)
Evaluate an bind rule against an evaluation context. If it is a simple bind rule (no boolean type) then grab the keyword rule from the map table and call the corresponding evaluate function. If it is a complex rule call the routine above "evalComplex()".

Parameters:
evalCtx - The evaluation context to pass to the keyword evaluation function.
Returns:
An result enumeration containing the result of the evaluation.