Package com.nimbusds.common.id
Class SID
java.lang.Object
com.nimbusds.common.id.BaseIdentifier
com.nimbusds.common.id.SID
- All Implemented Interfaces:
Identifier
,Comparable<Identifier>
,net.minidev.json.JSONAware
Represents a secure immutable session identifier (SID).
-
Field Summary
Fields inherited from class com.nimbusds.common.id.BaseIdentifier
DEFAULT_BYTE_LENGTH, SECURE_RANDOM
-
Constructor Summary
-
Method Summary
Methods inherited from class com.nimbusds.common.id.BaseIdentifier
compareTo, hashCode, toJSONString, toString
-
Constructor Details
-
SID
public SID()Creates a new unique session identifier (SID) based on a secure randomly generated 256-bit number, Base64URL-encoded. -
SID
Creates a new session identifier (SID) from the specified string.- Parameters:
value
- The session identifier (SID) value.
-
-
Method Details
-
equals
OverridesObject.equals()
.- Specified by:
equals
in classBaseIdentifier
- Parameters:
object
- The object to compare to.- Returns:
true
if the objects have the same value, otherwisefalse
.
-