Package com.nimbusds.common.id
Class DNIdentity
java.lang.Object
com.nimbusds.common.id.BaseIdentifier
com.nimbusds.common.id.DNIdentity
- All Implemented Interfaces:
Identifier
,Comparable<Identifier>
,net.minidev.json.JSONAware
Represents a distinguished name (DN) identity.
-
Field Summary
Fields inherited from class com.nimbusds.common.id.BaseIdentifier
DEFAULT_BYTE_LENGTH, SECURE_RANDOM
-
Constructor Summary
ConstructorDescriptionDNIdentity
(com.unboundid.ldap.sdk.DN dn) Creates a new distinguished name (DN) identity. -
Method Summary
Methods inherited from class com.nimbusds.common.id.BaseIdentifier
compareTo, toJSONString, toString
-
Constructor Details
-
DNIdentity
Creates a new distinguished name (DN) identity.- Parameters:
dn
- The DN, must not benull
.
-
-
Method Details
-
getDN
Gets the distinguished name (DN) value.- Returns:
- The DN.
-
hashCode
OverridesObject.hashCode()
.- Overrides:
hashCode
in classBaseIdentifier
- Returns:
- The object hash code.
-
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
.
-