Enum Class SaslConfiguration.Rules

java.lang.Object
java.lang.Enum<SaslConfiguration.Rules>
com.isode.dsapi.util.SaslConfiguration.Rules
All Implemented Interfaces:
Serializable, Comparable<SaslConfiguration.Rules>, Constable
Enclosing class:
SaslConfiguration

public static enum SaslConfiguration.Rules extends Enum<SaslConfiguration.Rules>
  • Enum Constant Details

  • Method Details

    • values

      public static SaslConfiguration.Rules[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SaslConfiguration.Rules valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Returns rule ID used in directory configuration
      Returns:
      ID
    • getDescription

      public String getDescription()
      Returns rule description.
      Returns:
      rule description (not null)
    • getRule

      public static SaslConfiguration.Rules getRule(int id)
      Returns mapping rule for specific ID or null if there is no rule mapping associated with given ID.
      Parameters:
      id - mapping rule ID
      Returns:
      mapping rule (null possible)