public enum ScramMechanism extends java.lang.Enum<ScramMechanism>
Enum Constant and Description |
---|
SCRAM_SHA_256 |
SCRAM_SHA_512 |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ScramMechanism |
fromMechanismName(java.lang.String mechanismName) |
static ScramMechanism |
fromType(byte type) |
java.lang.String |
mechanismName() |
byte |
type() |
static ScramMechanism |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScramMechanism[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScramMechanism UNKNOWN
public static final ScramMechanism SCRAM_SHA_256
public static final ScramMechanism SCRAM_SHA_512
public static ScramMechanism[] values()
for (ScramMechanism c : ScramMechanism.values()) System.out.println(c);
public static ScramMechanism valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ScramMechanism fromType(byte type)
type
- the type indicatorUNKNOWN
public static ScramMechanism fromMechanismName(java.lang.String mechanismName)
mechanismName
- the SASL SCRAM mechanism nameUNKNOWN