public enum ScramMechanism extends Enum<ScramMechanism>
| Enum Constant and Description |
|---|
SCRAM_SHA_256 |
SCRAM_SHA_512 |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ScramMechanism |
fromMechanismName(String mechanismName) |
static ScramMechanism |
fromType(byte type) |
String |
mechanismName() |
byte |
type() |
static ScramMechanism |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ScramMechanism fromType(byte type)
type - the type indicatorUNKNOWNpublic static ScramMechanism fromMechanismName(String mechanismName)
mechanismName - the SASL SCRAM mechanism nameUNKNOWNpublic String mechanismName()
public byte type()