public enum CodeChallengeMethod extends Enum<CodeChallengeMethod>
code_challenge_method.| Enum Constant and Description |
|---|
PLAIN
plain, meaning code_challenge = code_verifier. |
S256
S256, meaning
code_challenge = BASE64URL - ENCODE(SHA256(ASCII(code_verifier))). |
| Modifier and Type | Method and Description |
|---|---|
static CodeChallengeMethod |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static CodeChallengeMethod |
parse(String method)
Convert
String to CodeChallengeMethod. |
String |
toString() |
static CodeChallengeMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodeChallengeMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeChallengeMethod PLAIN
public static final CodeChallengeMethod S256
S256, meaning
code_challenge = BASE64URL - ENCODE(SHA256(ASCII(code_verifier))).
See RFC 7636 for details.public static CodeChallengeMethod[] values()
for (CodeChallengeMethod c : CodeChallengeMethod.values()) System.out.println(c);
public static CodeChallengeMethod 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 nullpublic short getValue()
public String toString()
toString in class Enum<CodeChallengeMethod>public static CodeChallengeMethod getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static CodeChallengeMethod parse(String method)
String to CodeChallengeMethod.method - A value of code_challenge_method parameter.
For example, "plain".CodeChallengeMethod instance, or null.Copyright © 2017. All rights reserved.