public enum MongoAuthMechanism extends Enum<MongoAuthMechanism>
| Enum Constant and Description |
|---|
MONGO_X509 |
MONGODB_CR |
SCRAM_SHA_1 |
| Modifier and Type | Method and Description |
|---|---|
static MongoAuthMechanism |
fromString(String text) |
String |
getText() |
static MongoAuthMechanism |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoAuthMechanism[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoAuthMechanism SCRAM_SHA_1
public static final MongoAuthMechanism MONGODB_CR
public static final MongoAuthMechanism MONGO_X509
public static MongoAuthMechanism[] values()
for (MongoAuthMechanism c : MongoAuthMechanism.values()) System.out.println(c);
public static MongoAuthMechanism 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 getText()
public static MongoAuthMechanism fromString(String text)
Copyright © 2016. All rights reserved.