|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<GrantType> org.springframework.social.oauth2.GrantType
public enum GrantType
OAuth2 supports two types of authorization flow, typically referred to as "Client-side" and "Server-side".
Enum Constant Summary | |
---|---|
AUTHORIZATION_CODE
AUTHORIZATION_CODE denotes the server-side authorization flow, and is associated with the response_type=code parameter value |
|
IMPLICIT_GRANT
IMPLICIT_GRANT denotes the client-side authorization flow and is associated with the response_type=token parameter value |
Method Summary | |
---|---|
static GrantType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GrantType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GrantType AUTHORIZATION_CODE
public static final GrantType IMPLICIT_GRANT
Method Detail |
---|
public static GrantType[] values()
for (GrantType c : GrantType.values()) System.out.println(c);
public static GrantType 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 name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |