@Immutable public final class Subject extends Identifier
DEFAULT_BYTE_LENGTH
Constructor and Description |
---|
Subject()
Creates a new subject identifier with a randomly generated 256-bit
(32-byte) value, Base64URL-encoded.
|
Subject(int byteLength)
Creates a new subject identifier with a randomly generated value of
the specified byte length, Base64URL-encoded.
|
Subject(String value)
Creates a new subject identifier with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
compareTo, getValue, hashCode, toJSONString, toString
public Subject(String value)
value
- The subject identifier value. Must not be null
or empty string.public Subject(int byteLength)
byteLength
- The byte length of the value to generate. Must be
greater than one.public Subject()
public boolean equals(Object object)
equals
in class Identifier
Copyright © 2015 Connect2id Ltd.. All Rights Reserved.