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
  • Constructor Details

    • DefaultAuthorizationErrorResponse

      public DefaultAuthorizationErrorResponse(@Parameter io.micronaut.http.HttpRequest<Map<String,Object>> request, StateSerDes stateSerDes)
      Parameters:
      request - The callback request
      stateSerDes - The state serializer/deserializer
  • Method Details

    • getError

      @NonNull public @NonNull ErrorCode getError()
      Specified by:
      getError in interface ErrorResponse
      Returns:
      The error code
    • getErrorDescription

      @Nullable public @Nullable String getErrorDescription()
      Specified by:
      getErrorDescription in interface ErrorResponse
      Returns:
      Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the errorCode that occurred.
    • getStateValue

      @Nullable public @Nullable String getStateValue()
      Specified by:
      getStateValue in class StateAwareAuthorizationCallback
      Returns:
      The state string value
    • getErrorUri

      @Nullable public @Nullable String getErrorUri()
      Specified by:
      getErrorUri in interface ErrorResponse
      Returns:
      URI identifying a human-readable web page with information about the errorCode