Class PKCEOptions

java.lang.Object
net.shibboleth.oidc.profile.messaging.PKCEOptions

public class PKCEOptions extends Object
Configuration options for Proof Key for Code Exchange (PKCE).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    Indicates whether the "plain" code challenge method is allowed.
    private final boolean
    Indicates whether PKCE is enabled for the client.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PKCEOptions(boolean enabled, boolean plainAllowed)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the "plain" code challenge method is allowed.
    boolean
    Returns whether PKCE is enabled.
    Returns a string representation of this PKCE configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • isEnabled

      private final boolean isEnabled
      Indicates whether PKCE is enabled for the client.
    • allowPlain

      private final boolean allowPlain
      Indicates whether the "plain" code challenge method is allowed.
  • Constructor Details

    • PKCEOptions

      public PKCEOptions(boolean enabled, boolean plainAllowed)
      Constructor.
      Parameters:
      enabled - whether PKCE is enabled
      plainAllowed - whether the "plain" code challenge method is allowed
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether PKCE is enabled.
      Returns:
      true if PKCE is enabled; false otherwise
    • isAllowPlain

      public boolean isAllowPlain()
      Returns whether the "plain" code challenge method is allowed.
      Returns:
      true if "plain" is allowed; false otherwise
    • toString

      public String toString()
      Returns a string representation of this PKCE configuration.
      Overrides:
      toString in class Object
      Returns:
      a string describing the PKCE options