- java.lang.Object
-
- java.lang.Enum<LoginMethod.Type>
-
- com.gluonhq.cloudlink.client.user.LoginMethod.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<LoginMethod.Type>
- Enclosing interface:
- LoginMethod
public static enum LoginMethod.Type extends Enum<LoginMethod.Type>
Defines the different methods by which you can log in to Gluon CloudLink.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMOUS
Logs in to Gluon CloudLink as an anonymous user.CUSTOM
Logs in to Gluon CloudLink with a custom authentication method.FACEBOOK
Logs in to Gluon CloudLink using Facebook.GITHUB
Logs in to Gluon CloudLink using GitHub.GOOGLE_PLUS
Logs in to Gluon CloudLink using Google+.PASSWORD
Logs in to Gluon CloudLink using a custom username and password combination.TWITTER
Logs in to Gluon CloudLink using Twitter.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoginMethod.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static LoginMethod.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANONYMOUS
public static final LoginMethod.Type ANONYMOUS
Logs in to Gluon CloudLink as an anonymous user.
-
FACEBOOK
public static final LoginMethod.Type FACEBOOK
Logs in to Gluon CloudLink using Facebook.
-
GITHUB
public static final LoginMethod.Type GITHUB
Logs in to Gluon CloudLink using GitHub.
-
GOOGLE_PLUS
public static final LoginMethod.Type GOOGLE_PLUS
Logs in to Gluon CloudLink using Google+.
-
PASSWORD
public static final LoginMethod.Type PASSWORD
Logs in to Gluon CloudLink using a custom username and password combination.
-
TWITTER
public static final LoginMethod.Type TWITTER
Logs in to Gluon CloudLink using Twitter.
-
CUSTOM
public static final LoginMethod.Type CUSTOM
Logs in to Gluon CloudLink with a custom authentication method.
-
-
Method Detail
-
values
public static LoginMethod.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LoginMethod.Type c : LoginMethod.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoginMethod.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-