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
public final class DNIdentity extends BaseIdentifier
Represents a distinguished name (DN) identity.
-
-
Field Summary
-
Fields inherited from class com.nimbusds.common.id.BaseIdentifier
DEFAULT_BYTE_LENGTH, SECURE_RANDOM
-
-
Constructor Summary
Constructors Constructor Description DNIdentity(com.unboundid.ldap.sdk.DN dn)
Creates a new distinguished name (DN) identity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
OverridesObject.equals()
.com.unboundid.ldap.sdk.DN
getDN()
Gets the distinguished name (DN) value.int
hashCode()
OverridesObject.hashCode()
.-
Methods inherited from class com.nimbusds.common.id.BaseIdentifier
compareTo, toJSONString, toString
-
-
-
-
Constructor Detail
-
DNIdentity
public DNIdentity(com.unboundid.ldap.sdk.DN dn)
Creates a new distinguished name (DN) identity.- Parameters:
dn
- The DN, must not benull
.
-
-
Method Detail
-
getDN
public com.unboundid.ldap.sdk.DN getDN()
Gets the distinguished name (DN) value.- Returns:
- The DN.
-
hashCode
public int hashCode()
OverridesObject.hashCode()
.- Overrides:
hashCode
in classBaseIdentifier
- Returns:
- The object hash code.
-
equals
public boolean equals(Object object)
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
.
-
-