Class DefaultPkceFactory

  • All Implemented Interfaces:
    PkceFactory

    @Singleton
    public class DefaultPkceFactory
    extends java.lang.Object
    implements PkceFactory
    Generates a Proof Key for Code Exchange and persists.
    Since:
    3.9.0
    • Method Summary

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

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

      • DefaultPkceFactory

        public DefaultPkceFactory​(@NonNull
                                  java.util.List<PkceGenerator> generators,
                                  @NonNull
                                  PkcePersistence persistence)
    • Method Detail

      • buildChallenge

        @NonNull
        public java.util.Optional<PkceChallenge> buildChallenge​(@NonNull
                                                                io.micronaut.http.HttpRequest<?> request,
                                                                @NonNull
                                                                io.micronaut.http.MutableHttpResponse<?> response,
                                                                @Nullable
                                                                java.util.List<java.lang.String> supportedChallengeMethods)
        Specified by:
        buildChallenge in interface PkceFactory
        Parameters:
        request - The original request prior redirect
        response - The authorization redirect response
        supportedChallengeMethods - Challenge methods supported by the authorization server
        Returns:
        A state parameter. An opaque value used to maintain state between the request and the callback.