public enum SaslMechanism extends Enum<SaslMechanism>
Enum Constant and Description |
---|
PLAIN |
SCRAM_SHA1 |
SCRAM_SHA256 |
SCRAM_SHA512 |
Modifier and Type | Method and Description |
---|---|
static SaslMechanism |
from(String mech)
Helper method to create the enum from its string representation.
|
String |
mech() |
static SaslMechanism |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SaslMechanism[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SaslMechanism PLAIN
public static final SaslMechanism SCRAM_SHA1
public static final SaslMechanism SCRAM_SHA256
public static final SaslMechanism SCRAM_SHA512
public static SaslMechanism[] values()
for (SaslMechanism c : SaslMechanism.values()) System.out.println(c);
public static SaslMechanism 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 String mech()
public static SaslMechanism from(String mech)
mech
- the mechanism to convert.Copyright © 2020 Couchbase, Inc.. All rights reserved.