Class AbstractTokenRequestContext<G,R extends TokenResponse> 
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<G,R> 
- Type Parameters:
 G- The grant or body of the requestR- The response type
- All Implemented Interfaces:
 TokenRequestContext<G,R> 
- Direct Known Subclasses:
 ClientCredentialsTokenRequestContext,OauthCodeTokenRequestContext,OauthPasswordTokenRequestContext,OpenIdCodeTokenRequestContext,OpenIdPasswordTokenRequestContext
public abstract class AbstractTokenRequestContext<G,R extends TokenResponse> 
extends Object
implements TokenRequestContext<G,R> 
A base class that provides getters for common context properties.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OauthClientConfigurationprotected final io.micronaut.http.MediaTypeprotected final SecureEndpoint - 
Constructor Summary
ConstructorsConstructorDescriptionAbstractTokenRequestContext(io.micronaut.http.MediaType mediaType, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration)  - 
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.MediaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.security.oauth2.endpoint.token.request.context.TokenRequestContext
getErrorResponseType, getGrant, getResponseType 
- 
Field Details
- 
mediaType
protected final io.micronaut.http.MediaType mediaType - 
tokenEndpoint
 - 
clientConfiguration
 
 - 
 - 
Constructor Details
- 
AbstractTokenRequestContext
public AbstractTokenRequestContext(io.micronaut.http.MediaType mediaType, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) - Parameters:
 mediaType- The media typetokenEndpoint- The token endpointclientConfiguration- The client configuration
 
 - 
 - 
Method Details
- 
getMediaType
public io.micronaut.http.MediaType getMediaType()- Specified by:
 getMediaTypein interfaceTokenRequestContext<G,R extends TokenResponse> - Returns:
 - The media type of the grant or body
 
 - 
getEndpoint
- Specified by:
 getEndpointin interfaceTokenRequestContext<G,R extends TokenResponse> - Returns:
 - The endpoint of which to send the request
 
 - 
getClientConfiguration
- Specified by:
 getClientConfigurationin interfaceTokenRequestContext<G,R extends TokenResponse> - Returns:
 - The client configuration
 
 
 -