Interface PkceGenerator

  • All Superinterfaces:
    io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered
    All Known Implementing Classes:
    PlainPkceGenerator, S256PkceGenerator

    public interface PkceGenerator
    extends io.micronaut.core.order.Ordered, io.micronaut.core.naming.Named
    Since:
    3.9.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Pkce generate()  
      boolean supportsAny​(java.util.List<java.lang.String> codeChallengeMethods)  
      • Methods inherited from interface io.micronaut.core.naming.Named

        getName
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
    • Method Detail

      • supportsAny

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

        @NonNull
        Pkce generate()
        Returns:
        Generates a Pkce.