Class DefaultNonceFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String buildNonce​(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultNonceFactory

        public DefaultNonceFactory​(NoncePersistence noncePersistence)
        Parameters:
        noncePersistence - The nonce persistence mechanism
    • Method Detail

      • buildNonce

        @NonNull
        public java.lang.String buildNonce​(io.micronaut.http.HttpRequest<?> request,
                                           io.micronaut.http.MutableHttpResponse response)
        Specified by:
        buildNonce in interface NonceFactory
        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.