Class ClientCredentialsTokenRequestContext
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<Map<String,String>,TokenResponse>
  
io.micronaut.security.oauth2.endpoint.token.request.context.ClientCredentialsTokenRequestContext
- All Implemented Interfaces:
 TokenRequestContext<Map<String,String>, TokenResponse> 
public class ClientCredentialsTokenRequestContext
extends AbstractTokenRequestContext<Map<String,String>,TokenResponse>  
A token request context for sending a client credentials request to an OAuth 2.0 provider.
- Author:
 - Sergio del Amo
 
- 
Field Summary
Fields inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
clientConfiguration, mediaType, tokenEndpoint - 
Constructor Summary
ConstructorsConstructorDescriptionClientCredentialsTokenRequestContext(OauthClientConfiguration clientConfiguration) ClientCredentialsTokenRequestContext(String scope, OauthClientConfiguration clientConfiguration) ClientCredentialsTokenRequestContext(String scope, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration)  - 
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<?>getGrant()io.micronaut.core.type.Argument<TokenResponse>Methods inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
getClientConfiguration, getEndpoint, getMediaType 
- 
Constructor Details
- 
ClientCredentialsTokenRequestContext
public ClientCredentialsTokenRequestContext(String scope, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) - Parameters:
 scope- requested scopestokenEndpoint- The token endpointclientConfiguration- The client configuration
 - 
ClientCredentialsTokenRequestContext
- Parameters:
 clientConfiguration- The client configuration
 - 
ClientCredentialsTokenRequestContext
public ClientCredentialsTokenRequestContext(String scope, OauthClientConfiguration clientConfiguration) - Parameters:
 scope- requested scopesclientConfiguration- The client configuration
 
 - 
 - 
Method Details
- 
getGrant
- Returns:
 - The grant or body of the request
 
 - 
getResponseType
- Returns:
 - The response argument
 
 - 
getErrorResponseType
public io.micronaut.core.type.Argument<?> getErrorResponseType()- Returns:
 - The error response argument
 
 
 -