Class AbstractOAuth2AuthorizationGrantRequest
java.lang.Object
org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
- Direct Known Subclasses:
JwtBearerGrantRequest
,OAuth2AuthorizationCodeGrantRequest
,OAuth2ClientCredentialsGrantRequest
,OAuth2PasswordGrantRequest
,OAuth2RefreshTokenGrantRequest
Base implementation of an OAuth 2.0 Authorization Grant request that holds an
authorization grant credential and is used when initiating a request to the
Authorization Server's Token Endpoint.
- Since:
- 5.0
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractOAuth2AuthorizationGrantRequest
(AuthorizationGrantType authorizationGrantType, ClientRegistration clientRegistration) Sub-class constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns theclient registration
.Returns the authorization grant type.
-
Constructor Details
-
AbstractOAuth2AuthorizationGrantRequest
protected AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType, ClientRegistration clientRegistration) Sub-class constructor.- Parameters:
authorizationGrantType
- the authorization grant typeclientRegistration
- the client registration- Since:
- 5.5
-
-
Method Details
-
getGrantType
Returns the authorization grant type.- Returns:
- the authorization grant type
-
getClientRegistration
Returns theclient registration
.- Returns:
- the
ClientRegistration
- Since:
- 5.5
-