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 Type
    Method
    Description
    void
    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

      Optional<String> retrieveNonce(io.micronaut.http.HttpRequest<?> request)
      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 request
      response - The authorization redirect response
      nonce - The nonce to persist