Class StateAwareAuthorizationCallback

java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.response.StateAwareAuthorizationCallback
All Implemented Interfaces:
StateAware
Direct Known Subclasses:
AbstractAuthorizationResponse, DefaultAuthorizationErrorResponse

@Internal public abstract class StateAwareAuthorizationCallback extends Object implements StateAware
Base class to extend from that handles state retrieval and caching.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • StateAwareAuthorizationCallback

      public StateAwareAuthorizationCallback(StateSerDes stateSerDes)
      Parameters:
      stateSerDes - The state serdes
  • Method Details

    • getStateValue

      @Nullable protected abstract @Nullable String getStateValue()
      Returns:
      The state string value
    • getState

      @Nullable public @Nullable State getState()
      Specified by:
      getState in interface StateAware
      Returns:
      The state in the callback