Interface StatePersistence
- 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 TypeMethodDescriptionvoid
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
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 requestresponse
- The authorization redirect responsestate
- The state to persist
-