Class AbstractOAuth2AuthorizationGrantRequest
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
-
- Direct Known Subclasses:
JwtBearerGrantRequest
,OAuth2AuthorizationCodeGrantRequest
,OAuth2ClientCredentialsGrantRequest
,OAuth2PasswordGrantRequest
,OAuth2RefreshTokenGrantRequest
public abstract class AbstractOAuth2AuthorizationGrantRequest extends java.lang.Object
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:
AuthorizationGrantType
,ClientRegistration
, Section 1.3 Authorization Grant
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType)
Deprecated.protected
AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType, ClientRegistration clientRegistration)
Sub-class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRegistration
getClientRegistration()
Returns theclient registration
.AuthorizationGrantType
getGrantType()
Returns the authorization grant type.
-
-
-
Constructor Detail
-
AbstractOAuth2AuthorizationGrantRequest
@Deprecated protected AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType)
Deprecated.Sub-class constructor.- Parameters:
authorizationGrantType
- the authorization grant type
-
AbstractOAuth2AuthorizationGrantRequest
protected AbstractOAuth2AuthorizationGrantRequest(AuthorizationGrantType authorizationGrantType, ClientRegistration clientRegistration)
Sub-class constructor.- Parameters:
authorizationGrantType
- the authorization grant typeclientRegistration
- the client registration- Since:
- 5.5
-
-
Method Detail
-
getGrantType
public AuthorizationGrantType getGrantType()
Returns the authorization grant type.- Returns:
- the authorization grant type
-
getClientRegistration
public ClientRegistration getClientRegistration()
Returns theclient registration
.- Returns:
- the
ClientRegistration
- Since:
- 5.5
-
-