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 SummaryFields inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContextclientConfiguration, mediaType, tokenEndpoint
- 
Constructor SummaryConstructorsConstructorDescriptionClientCredentialsTokenRequestContext(OauthClientConfiguration clientConfiguration) ClientCredentialsTokenRequestContext(String scope, OauthClientConfiguration clientConfiguration) ClientCredentialsTokenRequestContext(String scope, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) 
- 
Method SummaryModifier 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.AbstractTokenRequestContextgetClientConfiguration, getEndpoint, getMediaType
- 
Constructor Details- 
ClientCredentialsTokenRequestContextpublic ClientCredentialsTokenRequestContext(String scope, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) - Parameters:
- scope- requested scopes
- tokenEndpoint- The token endpoint
- clientConfiguration- The client configuration
 
- 
ClientCredentialsTokenRequestContext- Parameters:
- clientConfiguration- The client configuration
 
- 
ClientCredentialsTokenRequestContextpublic ClientCredentialsTokenRequestContext(String scope, OauthClientConfiguration clientConfiguration) - Parameters:
- scope- requested scopes
- clientConfiguration- The client configuration
 
 
- 
- 
Method Details- 
getGrant- Returns:
- The grant or body of the request
 
- 
getResponseType- Returns:
- The response argument
 
- 
getErrorResponseTypepublic io.micronaut.core.type.Argument<?> getErrorResponseType()- Returns:
- The error response argument
 
 
-