public static enum Credentials.IdentityProvider extends Enum<Credentials.IdentityProvider>
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.IdentityProvider |
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.IdentityProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Credentials.IdentityProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Credentials.IdentityProvider ANONYMOUS
public static final Credentials.IdentityProvider API_KEY
public static final Credentials.IdentityProvider APPLE
public static final Credentials.IdentityProvider CUSTOM_FUNCTION
public static final Credentials.IdentityProvider EMAIL_PASSWORD
public static final Credentials.IdentityProvider FACEBOOK
public static final Credentials.IdentityProvider GOOGLE
public static final Credentials.IdentityProvider JWT
public static final Credentials.IdentityProvider UNKNOWN
public static Credentials.IdentityProvider[] values()
for (Credentials.IdentityProvider c : Credentials.IdentityProvider.values()) System.out.println(c);
public static Credentials.IdentityProvider 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.IdentityProvider fromId(String id)
id
- the string identifier for the providerUNKNOWN
if no matching provider
was found.public String getId()