@Immutable public final class Audience extends Identifier
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
Audience()
Creates a new audience identifier with a randomly generated 256-bit
(32-byte) value, Base64URL-encoded.
|
Audience(int byteLength)
Creates a new audience identifier with a randomly generated value of
the specified byte length, Base64URL-encoded.
|
Audience(String value)
Creates a new audience identifier with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Overrides
Object.equals() . |
List<Audience> |
toSingleAudienceList()
Returns a list consisting of this audience only.
|
compareTo, getValue, hashCode, toJSONString, toString
public Audience(String value)
value
- The audience identifier value. Must not be null
or empty string.public Audience(int byteLength)
byteLength
- The byte length of the value to generate. Must be
greater than one.public Audience()
public List<Audience> toSingleAudienceList()
public boolean equals(Object object)
Identifier
Object.equals()
.equals
in class Identifier
object
- The object to compare to.true
if the objects have the same value, otherwise
false
.Copyright © 2014 NimbusDS. All Rights Reserved.