public static enum Credentials.Provider extends Enum<Credentials.Provider>
EMAIL_PASSWORD
must be enabled manually on MongoDB Realm to
work.Enum Constant and Description |
---|
ANONYMOUS |
API_KEY |
APPLE |
CUSTOM_FUNCTION |
EMAIL_PASSWORD |
FACEBOOK |
GOOGLE |
JWT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Credentials.Provider |
fromId(String id)
Create the identity provider from the ID string returned by MongoDB Realm.
|
String |
getId()
Return the string presentation of this identity provider.
|
static Credentials.Provider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Credentials.Provider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Credentials.Provider ANONYMOUS
public static final Credentials.Provider API_KEY
public static final Credentials.Provider APPLE
public static final Credentials.Provider CUSTOM_FUNCTION
public static final Credentials.Provider EMAIL_PASSWORD
public static final Credentials.Provider FACEBOOK
public static final Credentials.Provider GOOGLE
public static final Credentials.Provider JWT
public static final Credentials.Provider UNKNOWN
public static Credentials.Provider[] values()
for (Credentials.Provider c : Credentials.Provider.values()) System.out.println(c);
public static Credentials.Provider 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 Credentials.Provider fromId(String id)
id
- the string identifier for the providerUNKNOWN
if no matching provider
was found.public String getId()