public static enum AuthenticationResponse.Type extends Enum<AuthenticationResponse.Type>
Enum Constant and Description |
---|
CODE
The response is a code reply.
|
EMPTY
Response doesn't contain data because auth flow was cancelled or LoginActivity killed.
|
ERROR
The response is an error response.
|
TOKEN
The response is an implicit grant with access token.
|
UNKNOWN
The response is unknown.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static AuthenticationResponse.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationResponse.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationResponse.Type CODE
public static final AuthenticationResponse.Type TOKEN
public static final AuthenticationResponse.Type ERROR
public static final AuthenticationResponse.Type EMPTY
public static final AuthenticationResponse.Type UNKNOWN
public static AuthenticationResponse.Type[] values()
for (AuthenticationResponse.Type c : AuthenticationResponse.Type.values()) System.out.println(c);
public static AuthenticationResponse.Type 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 toString()
toString
in class Enum<AuthenticationResponse.Type>