@Immutable public final class AuthorizationCode extends Identifier
Related specifications:
DEFAULT_BYTE_LENGTH| Constructor and 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 and Description |
|---|---|
boolean |
equals(Object object)
Overrides
Object.equals(). |
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)
IdentifierObject.equals().equals in class Identifierobject - The object to compare to.true if the objects have the same value, otherwise
false.Copyright © 2013 NimbusDS. All Rights Reserved.