Package com.isode.dsapi.util
Enum Class SaslConfiguration.Rules
- All Implemented Interfaces:
Serializable
,Comparable<SaslConfiguration.Rules>
,Constable
- Enclosing class:
- SaslConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns rule description.int
getId()
Returns rule ID used in directory configurationstatic SaslConfiguration.Rules
getRule
(int id) Returns mapping rule for specific ID ornull if there is no rule mapping associated with given ID.
static SaslConfiguration.Rules
Returns the enum constant of this class with the specified name.static SaslConfiguration.Rules[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVE_DIRECTORY
-
DOMAINPART_SEARCH
-
TWO_SEARCHES
-
SINGLE_SEARCH
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getId
public int getId()Returns rule ID used in directory configuration- Returns:
- ID
-
getDescription
Returns rule description.- Returns:
- rule description (not
null
)
-
getRule
Returns mapping rule for specific ID ornull if there is no rule mapping associated with given ID.
- Parameters:
id
- mapping rule ID- Returns:
- mapping rule (
null
possible)
-