public enum ResponseType extends java.lang.Enum<ResponseType>
The response_type parameter value may be one of "code" for requesting an authorization code or "token" for requesting an access token (implicit grant).
NOTE: "code" is currently the only supported response type.
Enum Constant and Description |
---|
CODE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
value() |
static ResponseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType CODE
public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()