Interface TokenRequestContext<G,R extends TokenResponse>
-
- Type Parameters:
G- The grant or body of the requestR- The response type
- All Known Implementing Classes:
AbstractTokenRequestContext,OauthCodeTokenRequestContext,OauthPasswordTokenRequestContext,OpenIdCodeTokenRequestContext,OpenIdPasswordTokenRequestContext
public interface TokenRequestContext<G,R extends TokenResponse>Represents the context of a token endpoint request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OauthClientConfigurationgetClientConfiguration()SecureEndpointgetEndpoint()io.micronaut.core.type.Argument<?>getErrorResponseType()GgetGrant()io.micronaut.http.MediaTypegetMediaType()io.micronaut.core.type.Argument<R>getResponseType()
-
-
-
Method Detail
-
getGrant
G getGrant()
- Returns:
- The grant or body of the request
-
getResponseType
io.micronaut.core.type.Argument<R> getResponseType()
- Returns:
- The response argument
-
getErrorResponseType
io.micronaut.core.type.Argument<?> getErrorResponseType()
- Returns:
- The error response argument
-
getMediaType
io.micronaut.http.MediaType getMediaType()
- Returns:
- The media type of the grant or body
-
getEndpoint
SecureEndpoint getEndpoint()
- Returns:
- The endpoint of which to send the request
-
getClientConfiguration
OauthClientConfiguration getClientConfiguration()
- Returns:
- The client configuration
-
-