Class OAuth2ClientCredentialsGrantRequest
- java.lang.Object
-
- org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
-
- org.springframework.security.oauth2.client.endpoint.OAuth2ClientCredentialsGrantRequest
-
public class OAuth2ClientCredentialsGrantRequest extends AbstractOAuth2AuthorizationGrantRequest
An OAuth 2.0 Client Credentials Grant request that holds the client's credentials ingetClientRegistration()
.- Since:
- 5.1
- See Also:
AbstractOAuth2AuthorizationGrantRequest
,ClientRegistration
, Section 1.3.4 Client Credentials Grant
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientCredentialsGrantRequest(ClientRegistration clientRegistration)
Constructs anOAuth2ClientCredentialsGrantRequest
using the provided parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRegistration
getClientRegistration()
Returns theclient registration
.-
Methods inherited from class org.springframework.security.oauth2.client.endpoint.AbstractOAuth2AuthorizationGrantRequest
getGrantType
-
-
-
-
Constructor Detail
-
OAuth2ClientCredentialsGrantRequest
public OAuth2ClientCredentialsGrantRequest(ClientRegistration clientRegistration)
Constructs anOAuth2ClientCredentialsGrantRequest
using the provided parameters.- Parameters:
clientRegistration
- the client registration
-
-
Method Detail
-
getClientRegistration
public ClientRegistration getClientRegistration()
Returns theclient registration
.- Returns:
- the
ClientRegistration
-
-