java.lang.Object
java.lang.Enum<PkceChallengeMethod>
io.helidon.security.providers.oidc.common.PkceChallengeMethod
All Implemented Interfaces:
Serializable, Comparable<PkceChallengeMethod>, Constable

public enum PkceChallengeMethod extends Enum<PkceChallengeMethod>
Proof Key Code Exchange (PKCE) challenge generation type. Based on RFC7636 - Section 4.2
  • Enum Constant Details

    • PLAIN

      public static final PkceChallengeMethod PLAIN
      No hashing will be applied. Challenge string will be the same as verifier.
    • S256

      public static final PkceChallengeMethod S256
      SHA-256 algorithm is used to hash the verifier value.
  • Method Details

    • values

      public static PkceChallengeMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PkceChallengeMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • transform

      public String transform(String verifier)
      Transform Proof Key Code Exchange (PKCE) verifier to the challenge.
      Parameters:
      verifier - PKCE verifier
      Returns:
      PKCE challenge
    • method

      public String method()
      Proof Key Code Exchange (PKCE) method name.
      Returns:
      method name