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