Class AbstractAuthorizationResponse
java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.response.StateAwareAuthorizationCallback
io.micronaut.security.oauth2.endpoint.authorization.response.AbstractAuthorizationResponse
- All Implemented Interfaces:
AuthorizationResponse
,StateAware
- Direct Known Subclasses:
DefaultOauthAuthorizationResponse
,DefaultOpenIdAuthorizationResponse
public abstract class AbstractAuthorizationResponse
extends StateAwareAuthorizationCallback
implements AuthorizationResponse
A base class for authorization responses to extend from.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.micronaut.core.convert.value.ConvertibleMultiValues<String>
Fields inherited from interface io.micronaut.security.oauth2.endpoint.authorization.response.AuthorizationResponse
KEY_CODE, KEY_STATE
-
Constructor Summary
ConstructorDescriptionAbstractAuthorizationResponse
(io.micronaut.http.HttpRequest<Map<String, Object>> request, StateSerDes stateSerDes) -
Method Summary
Methods inherited from class io.micronaut.security.oauth2.endpoint.authorization.response.StateAwareAuthorizationCallback
getState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.security.oauth2.endpoint.authorization.response.AuthorizationResponse
getState
-
Field Details
-
responseData
-
request
-
-
Constructor Details
-
AbstractAuthorizationResponse
public AbstractAuthorizationResponse(@Parameter io.micronaut.http.HttpRequest<Map<String, Object>> request, StateSerDes stateSerDes) - Parameters:
request
- The requeststateSerDes
- State Serdes
-
-
Method Details
-
getStateValue
- Specified by:
getStateValue
in classStateAwareAuthorizationCallback
- Returns:
- The state string value
-
getCode
- Specified by:
getCode
in interfaceAuthorizationResponse
- Returns:
- An authorization code which the client will later exchange for an access token.
-
getCallbackRequest
@NonNull public @NonNull io.micronaut.http.HttpRequest<?> getCallbackRequest()- Specified by:
getCallbackRequest
in interfaceAuthorizationResponse
- Returns:
- The authorization callback request
-