java.lang.Object
io.micronaut.security.oauth2.endpoint.authorization.pkce.Pkce
All Implemented Interfaces:
PkceChallenge

@Introspected public class Pkce extends Object implements PkceChallenge
Proof Key for Code Exchange.
See Also:
  • Constructor Details

    • Pkce

      public Pkce(@NonNull @NonNull String codeChallengeMethod, @NonNull @NonNull String codeChallenge, @NonNull @NonNull String codeVerifier)
  • Method Details

    • getCodeChallengeMethod

      @NonNull public @NonNull String getCodeChallengeMethod()
      Specified by:
      getCodeChallengeMethod in interface PkceChallenge
      Returns:
      A method that was used to derive code challenge.
      See Also:
    • getCodeChallenge

      @NonNull public @NonNull String getCodeChallenge()
      Specified by:
      getCodeChallenge in interface PkceChallenge
      Returns:
      A challenge derived from the code verifier that is sent in the authorization request, to be verified against later.
    • getCodeVerifier

      @NonNull public @NonNull String getCodeVerifier()
      Returns:
      A cryptographically random string that is used to correlate the authorization request to the token request.