Class AuthorizationGrantType
java.lang.Object
org.springframework.security.oauth2.core.AuthorizationGrantType
- All Implemented Interfaces:
Serializable
An authorization grant is a credential representing the resource owner's authorization
(to access its protected resources) to the client and used by the client to obtain an
access token.
The OAuth 2.0 Authorization Framework defines the standard grant types: authorization code, refresh token and client credentials. It also provides an extensibility mechanism for defining additional grant types.
- Since:
- 5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuthorizationGrantTypestatic final AuthorizationGrantTypestatic final AuthorizationGrantTypeThe device_code authorization grant type.static final AuthorizationGrantTypeThe jwt-bearer authorization grant type.static final AuthorizationGrantTypestatic final AuthorizationGrantTypeThe token-exchange authorization grant type. -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationGrantType(String value) Constructs anAuthorizationGrantTypeusing the provided value. -
Method Summary
-
Field Details
-
AUTHORIZATION_CODE
-
REFRESH_TOKEN
-
CLIENT_CREDENTIALS
-
JWT_BEARER
The jwt-bearer authorization grant type.- Since:
- 5.5
-
DEVICE_CODE
The device_code authorization grant type.- Since:
- 6.1
-
TOKEN_EXCHANGE
The token-exchange authorization grant type.- Since:
- 6.3
-
-
Constructor Details
-
AuthorizationGrantType
Constructs anAuthorizationGrantTypeusing the provided value.- Parameters:
value- the value of the authorization grant type
-
-
Method Details