Package org.wildfly.security.auth
Enum SupportLevel
- java.lang.Object
-
- java.lang.Enum<SupportLevel>
-
- org.wildfly.security.auth.SupportLevel
-
- All Implemented Interfaces:
Serializable,Comparable<SupportLevel>
public enum SupportLevel extends Enum<SupportLevel>
The different support levels.- Author:
- David M. Lloyd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POSSIBLY_SUPPORTEDThe given credential type may be supported.SUPPORTEDThe given credential type is definitely supported.UNSUPPORTEDThe given credential type is definitely not supported.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanin(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.booleanisDefinitelySupported()Determine 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.booleanisNotSupported()Determine if this object represents definite lack of support.static SupportLevelmax(SupportLevel o1, SupportLevel o2)Get the maximum support level between two candidates.booleanmayBeSupported()Determine if this object represents possible or definite support.static SupportLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static SupportLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSUPPORTED
public static final SupportLevel UNSUPPORTED
The given credential type is definitely not supported.
-
POSSIBLY_SUPPORTED
public static final SupportLevel POSSIBLY_SUPPORTED
The given credential type may be supported.
-
SUPPORTED
public static final SupportLevel SUPPORTED
The given credential type is definitely supported.
-
-
Method Detail
-
values
public static SupportLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SupportLevel c : SupportLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SupportLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
public static boolean isFull(EnumSet<SupportLevel> set)
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
public boolean in(SupportLevel v1)
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
public boolean in(SupportLevel v1, SupportLevel v2)
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
public boolean in(SupportLevel v1, SupportLevel v2, SupportLevel v3)
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
public boolean in(SupportLevel... values)
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
public static SupportLevel max(SupportLevel o1, SupportLevel o2)
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)
-
-