Class PKCEOptions
java.lang.Object
net.shibboleth.oidc.profile.messaging.PKCEOptions
Configuration options for Proof Key for Code Exchange (PKCE).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanIndicates whether the "plain" code challenge method is allowed.private final booleanIndicates whether PKCE is enabled for the client. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the "plain" code challenge method is allowed.booleanReturns whether PKCE is enabled.toString()Returns a string representation of this PKCE configuration.
-
Field Details
-
isEnabled
private final boolean isEnabledIndicates whether PKCE is enabled for the client. -
allowPlain
private final boolean allowPlainIndicates whether the "plain" code challenge method is allowed.
-
-
Constructor Details
-
PKCEOptions
public PKCEOptions(boolean enabled, boolean plainAllowed) Constructor.- Parameters:
enabled- whether PKCE is enabledplainAllowed- whether the "plain" code challenge method is allowed
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether PKCE is enabled.- Returns:
trueif PKCE is enabled;falseotherwise
-
isAllowPlain
public boolean isAllowPlain()Returns whether the "plain" code challenge method is allowed.- Returns:
trueif "plain" is allowed;falseotherwise
-
toString
Returns a string representation of this PKCE configuration.
-