Interface TokenRequestContext<G,R extends TokenResponse>
- Type Parameters:
G
- The grant or body of the requestR
- The response type
- All Known Implementing Classes:
AbstractTokenRequestContext
,ClientCredentialsTokenRequestContext
,OauthCodeTokenRequestContext
,OauthPasswordTokenRequestContext
,OpenIdCodeTokenRequestContext
,OpenIdPasswordTokenRequestContext
public interface TokenRequestContext<G,R extends TokenResponse>
Represents the context of a token endpoint request.
-
Method Details
-
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
-