Class PlainPkceGenerator

  • All Implemented Interfaces:
    io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, PkceGenerator

    @Named("plain")
    @Singleton
    public class PlainPkceGenerator
    extends java.lang.Object
    implements PkceGenerator
    Pkce generator for plain challenge method.
    Since:
    3.9.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CODE_CHALLENGE_METHOD_PLAIN  
      static java.lang.Integer ORDER  
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Pkce generate()  
      java.lang.String getName()  
      int getOrder()  
      boolean supportsAny​(java.util.List<java.lang.String> codeChallengeMethods)  
      • Methods inherited from class java.lang.Object

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

      • ORDER

        public static final java.lang.Integer ORDER
      • CODE_CHALLENGE_METHOD_PLAIN

        public static final java.lang.String CODE_CHALLENGE_METHOD_PLAIN
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlainPkceGenerator

        public PlainPkceGenerator​(CodeVerifierGenerator codeVerifierGenerator)
        Parameters:
        codeVerifierGenerator - Code Verifier generator
    • Method Detail

      • supportsAny

        public boolean supportsAny​(@NonNull
                                   java.util.List<java.lang.String> codeChallengeMethods)
        Specified by:
        supportsAny in interface PkceGenerator
        Parameters:
        codeChallengeMethods - Code Challenge methods
        Returns:
        Whether the PKCE Generator supports any of the supplied code challenge methods.
      • getName

        @NonNull
        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.core.naming.Named
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered