Class AuthMethod

  • All Implemented Interfaces:
    KeywordBindRule

    public class AuthMethod
    extends Object
    implements KeywordBindRule
    The AuthMethod class represents an authmethod bind rule keyword expression.
    • Method Detail

      • decode

        public static KeywordBindRule decode​(String expr,
                                             org.opends.server.authorization.dseecompat.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.
      • toString

        public final void toString​(StringBuilder buffer)
        Description copied from interface: KeywordBindRule
        Appends a string representation of this object to the provided buffer.
        Specified by:
        toString in interface KeywordBindRule
        Parameters:
        buffer - The buffer into which a string representation of this object should be appended.