Serializable, Comparable<Identifier>, net.minidev.json.JSONAware@Immutable public final class AuthorizationCode extends Identifier
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor | Description |
|---|---|
AuthorizationCode() |
Creates a new authorisation code with a randomly generated 256-bit
(32-byte) value, Base64URL-encoded.
|
AuthorizationCode(int byteLength) |
Creates a new authorisation code with a randomly generated value of
the specified byte length, Base64URL-encoded.
|
AuthorizationCode(String value) |
Creates a new authorisation code with the specified value.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object object) |
compareTo, getValue, hashCode, toJSONString, toStringpublic AuthorizationCode(String value)
value - The code value. Must not be null or empty
string.public AuthorizationCode(int byteLength)
byteLength - The byte length of the value to generate. Must be
greater than one.public AuthorizationCode()
public boolean equals(Object object)
equals in class IdentifierCopyright © 2018 Connect2id Ltd.. All rights reserved.