Enum Class GrantType
- All Implemented Interfaces:
Serializable
,Comparable<GrantType>
,Constable
The OAuth 2.0 grant types.
- Since:
- 1.2.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe Authorization Code grant type is used by confidential and public clients to exchange an authorization code for an access token.The Client Credentials grant type is used by clients to obtain an access token outside of the context of a user.The implicit grant is a simplified authorization code flow optimized for clients implemented in a browser using a scripting language such as JavaScript.The Password grant type is used by first-party clients to exchange a user's credentials for an access token.OAuth 2.0 refresh tokens. -
Method Summary
-
Enum Constant Details
-
CLIENT_CREDENTIALS
The Client Credentials grant type is used by clients to obtain an access token outside of the context of a user. This is typically used by clients to access resources about themselves rather than to access a user's resources.- See Also:
-
AUTHORIZATION_CODE
The Authorization Code grant type is used by confidential and public clients to exchange an authorization code for an access token.- See Also:
-
REFRESH_TOKEN
OAuth 2.0 refresh tokens. Refresh tokens are issued to the client by the authorization server and are used to obtain a new access token when the current access token becomes invalid or expires, or to obtain additional access tokens with identical or narrower scope.- See Also:
-
IMPLICIT
The implicit grant is a simplified authorization code flow optimized for clients implemented in a browser using a scripting language such as JavaScript. In the implicit flow, instead of issuing the client an authorization code, the client is issued an access token directly- See Also:
-
PASSWORD
The Password grant type is used by first-party clients to exchange a user's credentials for an access token. Resource Owner Password Credentials -
JWT_BEARER_ASSERTION_GRANT
-
SAML_2_0_BEARER_ASSERTION_GRANT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-