Interface NonceFactory

All Known Implementing Classes:
DefaultNonceFactory

@DefaultImplementation(DefaultNonceFactory.class) public interface NonceFactory
Generates a nonce. A String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
Since:
1.2.0
Author:
Sergio del Amo
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull String
    buildNonce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response)
     
  • Method Details

    • buildNonce

      @NonNull @NonNull String buildNonce(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response)
      Parameters:
      request - The login request
      response - The authorization redirect response
      Returns:
      A nonce. A String value used to associate a Client session with an ID Token, and to mitigate replay attacks.