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