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 it's protected resources) to the client and used by the client to obtain an
access token.
The OAuth 2.0 Authorization Framework defines four standard grant types: authorization code, resource owner password credentials, and client credentials. It also provides an extensibility mechanism for defining additional grant types.
- Since:
- 5.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AuthorizationGrantType
static final AuthorizationGrantType
static final AuthorizationGrantType
static final AuthorizationGrantType
static final AuthorizationGrantType
Deprecated.The latest OAuth 2.0 Security Best Current Practice disallows the use of the Resource Owner Password Credentials grant.static final AuthorizationGrantType
static final AuthorizationGrantType
-
Constructor Summary
ConstructorDescriptionAuthorizationGrantType
(String value) Constructs anAuthorizationGrantType
using the provided value. -
Method Summary
-
Field Details
-
AUTHORIZATION_CODE
-
REFRESH_TOKEN
-
CLIENT_CREDENTIALS
-
PASSWORD
Deprecated.The latest OAuth 2.0 Security Best Current Practice disallows the use of the Resource Owner Password Credentials grant. See reference OAuth 2.0 Security Best Current Practice. -
JWT_BEARER
- Since:
- 5.5
-
DEVICE_CODE
- Since:
- 6.1
-
TOKEN_EXCHANGE
- Since:
- 6.3
-
-
Constructor Details
-
AuthorizationGrantType
Constructs anAuthorizationGrantType
using the provided value.- Parameters:
value
- the value of the authorization grant type
-
-
Method Details