Interface NoncePersistence
- All Known Implementing Classes:
CookieNoncePersistence
,SessionNoncePersistence
public interface NoncePersistence
Persists the nonce for later retrieval necessary for validation.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionvoid
persistNonce
(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, String nonce) Persists the nonce for later retrieval to allow validation.retrieveNonce
(io.micronaut.http.HttpRequest<?> request) Retrieves and removes the nonce from persistence.
-
Method Details
-
retrieveNonce
Retrieves and removes the nonce from persistence.- Parameters:
request
- The request- Returns:
- The optional nonce
-
persistNonce
void persistNonce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response, String nonce) Persists the nonce for later retrieval to allow validation.- Parameters:
request
- The login requestresponse
- The authorization redirect responsenonce
- The nonce to persist
-