public enum PkceMethod extends Enum<PkceMethod>
Enum Constant and Description |
---|
NONE
The OAuth 2.0 provider does not support PKCE at all.
|
PLAIN
The code challenge is identical to the code verifier.
|
S256
The code challenge is a SHA-256 hash of the code verifier.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getCodeChallenge(String verifier)
Returns the code challenge to send on the authorization request.
|
static PkceMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PkceMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PkceMethod PLAIN
public static final PkceMethod S256
public static final PkceMethod NONE
public static PkceMethod[] values()
for (PkceMethod c : PkceMethod.values()) System.out.println(c);
public static PkceMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010-2018, ForgeRock All Rights Reserved.