Serializable
, Comparable<Identifier>
, net.minidev.json.JSONAware
public class CodeChallenge extends Identifier
Related specifications:
DEFAULT_BYTE_LENGTH, secureRandom
Modifier and Type | Method | Description |
---|---|---|
static CodeChallenge |
compute(CodeChallengeMethod method,
CodeVerifier codeVerifier) |
Computes the code challenge using the specified method and verifier.
|
static CodeChallenge |
parse(String value) |
Parses a code challenge from the specified string.
|
compareTo, equals, getValue, hashCode, toJSONString, toString
public static CodeChallenge compute(CodeChallengeMethod method, CodeVerifier codeVerifier)
method
- The code challenge method. Must be supported and
not null
.codeVerifier
- The code verifier. Must not be null
.public static CodeChallenge parse(String value) throws ParseException
value
- The code challenge value.ParseException
- If parsing failed.Copyright © 2019 Connect2id Ltd.. All rights reserved.