public enum LoginOption extends Enum<LoginOption>
DISABLED means no login will be attempted
NONE means a login will be attempted if the server supports in and login credentials are set
REQUIRED means that a login will be attempted if the server supports it and the send operation will fail otherwise
XOAUTH2 means that a login will be attempted using Google Gmail Oauth2 tokens
Modifier and Type | Method and Description |
---|---|
static LoginOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoginOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoginOption DISABLED
public static final LoginOption NONE
public static final LoginOption REQUIRED
public static final LoginOption XOAUTH2
public static LoginOption[] values()
for (LoginOption c : LoginOption.values()) System.out.println(c);
public static LoginOption 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 nullCopyright © 2024 Eclipse. All rights reserved.