public enum ResponseType extends Enum<ResponseType>
response_type
.
RFC 6749 (OAuth 2.0), 3.1.1. Response Type
response_type
- REQUIRED. The value MUST be one of
"code"
for requesting an authorization code as described by Section 4.1.1,"token"
for requesting an access token (implicit grant) as described by Section 4.2.1, or a registered extension value as described by Section 8.4.
Enum Constant and Description |
---|
code
response_type to request an authorization code. |
token
response_type to request an access token (implicit grant). |
Modifier and Type | Method and Description |
---|---|
static ResponseType |
valueOf(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
response_type
to request an authorization code.public static final ResponseType token
response_type
to request an access token (implicit grant).public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType 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 © 2016. All rights reserved.