All Known Implementing Classes:
CookieStatePersistence, SessionStatePersistence

public interface StatePersistence
Persists the state for later retrieval necessary for validation.
Since:
1.2.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    persistState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, State state)
    Persists the state for later retrieval to allow validation.
    retrieveState(io.micronaut.http.HttpRequest<?> request)
    Retrieves and removes the state from persistence.
  • Method Details

    • retrieveState

      Optional<State> retrieveState(io.micronaut.http.HttpRequest<?> request)
      Retrieves and removes the state from persistence.
      Parameters:
      request - The request
      Returns:
      The optional state
    • persistState

      void persistState(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, State state)
      Persists the state for later retrieval to allow validation.
      Parameters:
      request - The login request
      response - The authorization redirect response
      state - The state to persist