Class DefaultAuthorizationErrorResponse
java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.response.StateAwareAuthorizationCallback
io.micronaut.security.oauth2.endpoint.authorization.response.DefaultAuthorizationErrorResponse
- All Implemented Interfaces:
ErrorResponse
,AuthorizationErrorResponse
,StateAware
@Prototype
public class DefaultAuthorizationErrorResponse
extends StateAwareAuthorizationCallback
implements AuthorizationErrorResponse
Default implementation of
AuthorizationErrorResponse
.- Since:
- 1.2.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.security.errors.ErrorResponse
JSON_KEY_ERROR, JSON_KEY_ERROR_DESCRIPTION, JSON_KEY_ERROR_URI, JSON_KEY_STATE
-
Constructor Summary
ConstructorDescriptionDefaultAuthorizationErrorResponse
(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.AuthorizationErrorResponse
getState
-
Constructor Details
-
DefaultAuthorizationErrorResponse
public DefaultAuthorizationErrorResponse(@Parameter io.micronaut.http.HttpRequest<Map<String, Object>> request, StateSerDes stateSerDes) - Parameters:
request
- The callback requeststateSerDes
- The state serializer/deserializer
-
-
Method Details
-
getError
- Specified by:
getError
in interfaceErrorResponse
- Returns:
- The error code
-
getErrorDescription
- Specified by:
getErrorDescription
in interfaceErrorResponse
- Returns:
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
-
getStateValue
- Specified by:
getStateValue
in classStateAwareAuthorizationCallback
- Returns:
- The state string value
-
getErrorUri
- Specified by:
getErrorUri
in interfaceErrorResponse
- Returns:
- URI identifying a human-readable web page with information about the errorCode
-