public class CodeVerifier extends Secret
Related specifications:
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LENGTH
The maximum character length of a code verifier.
|
static int |
MIN_LENGTH
The minimum character length of a code verifier.
|
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
CodeVerifier()
Generates a new code verifier represented by a secure random 256-bit
number that is Base64URL-encoded (as a 43 character string, which is
the
minimum character length of a code
verifier). |
CodeVerifier(String value)
Creates a new code verifier with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Comparison with another secret is constant time.
|
equalsSHA256Based, erase, expired, getExpirationDate, getSHA256, getValue, getValueBytes, hashCode
public static final int MIN_LENGTH
public static final int MAX_LENGTH
public CodeVerifier(String value)
value
- The code verifier value. Must not contain characters
other than [A-Z] / [a-z] / [0-9] / "-" / "." / "_" /
"~". The verifier length must be at least 43
characters but not more than 128 characters. Must not
be null
or empty string.public CodeVerifier()
minimum character length
of a code
verifier).Copyright © 2017 Connect2id Ltd.. All rights reserved.