Package org.wildfly.security.auth
Enum Class SupportLevel
- All Implemented Interfaces:
Serializable,Comparable<SupportLevel>,Constable
The different support levels.
- Author:
- David M. Lloyd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe given credential type may be supported.The given credential type is definitely supported.The given credential type is definitely not supported. -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(SupportLevel v1) Determine whether this instance is equal to one of the given instances.booleanin(SupportLevel... values) Determine whether this instance is equal to one of the given instances.booleanin(SupportLevel v1, SupportLevel v2) Determine whether this instance is equal to one of the given instances.booleanin(SupportLevel v1, SupportLevel v2, SupportLevel v3) Determine whether this instance is equal to one of the given instances.booleanDetermine if this object represents definite support.static booleanisFull(EnumSet<SupportLevel> set) Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.booleanDetermine if this object represents definite lack of support.static SupportLevelmax(SupportLevel o1, SupportLevel o2) Get the maximum support level between two candidates.booleanDetermine if this object represents possible or definite support.static SupportLevelReturns the enum constant of this class with the specified name.static SupportLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED
The given credential type is definitely not supported. -
POSSIBLY_SUPPORTED
The given credential type may be supported. -
SUPPORTED
The given credential type is definitely supported.
-
-
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
-
isDefinitelySupported
public boolean isDefinitelySupported()Determine if this object represents definite support.- Returns:
trueif this object represents definite support,falseotherwise
-
mayBeSupported
public boolean mayBeSupported()Determine if this object represents possible or definite support.- Returns:
trueif this object represents possible or definite support,falseotherwise
-
isNotSupported
public boolean isNotSupported()Determine if this object represents definite lack of support.- Returns:
trueif this object represents definite lack of support,falseotherwise
-
isFull
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.- Parameters:
set- the set- Returns:
trueif the set is full,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
v1- the first instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
v1- the first instancev2- the second instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
v1- the first instancev2- the second instancev3- the third instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
values- the possible values- Returns:
trueif one of the instances matches this one,falseotherwise
-
max
Get the maximum support level between two candidates.- Parameters:
o1- the first support level (must not benull)o2- the second support level (must not benull)- Returns:
- the maximum support level (not
null)
-