java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.pkce.PlainPkceGenerator
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, PkceGenerator

@Named("plain") @Singleton public class PlainPkceGenerator extends Object implements PkceGenerator
Pkce generator for plain challenge method.
Since:
3.9.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • PlainPkceGenerator

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

    • supportsAny

      public boolean supportsAny(@NonNull @NonNull List<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.
    • generate

      @NonNull public @NonNull Pkce generate()
      Specified by:
      generate in interface PkceGenerator
      Returns:
      Generates a Pkce.
    • getName

      @NonNull public @NonNull 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