|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nimbusds.oauth2.sdk.id.Identifier
public abstract class Identifier
The base abstract class for representing identifiers and identities. Provides constructors that generate random identifier values made up of mixed-case alphanumeric ASCII characters.
Extending classes must override the equals(java.lang.Object)
method.
Constructor Summary | |
---|---|
Identifier()
Creates a new identifier with a randomly generated value. |
|
Identifier(int length)
Creates a new identifier with a randomly generated value of the specified length. |
|
Identifier(String value)
Creates a new identifier with the specified value. |
Method Summary | |
---|---|
abstract boolean |
equals(Object object)
Overrides Object.equals() . |
String |
getValue()
Gets the value of this identifier. |
int |
hashCode()
Overrides Object.hashCode() . |
String |
toJSONString()
Returns the JSON string representation of this identifier. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Identifier(String value)
value
- The identifier value. Must not be null
or empty
string.public Identifier(int length)
length
- The number of characters. Must be a positive integer.public Identifier()
Method Detail |
---|
public String getValue()
public String toJSONString()
toJSONString
in interface net.minidev.json.JSONAware
public String toString()
toString
in class Object
getValue()
public int hashCode()
Object.hashCode()
.
hashCode
in class Object
public abstract boolean equals(Object object)
Object.equals()
.
equals
in class Object
object
- The object to compare to.
true
if the objects have the same value, otherwise
false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |