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.
  • Constructor Details

    • DNIdentity

      public DNIdentity(com.unboundid.ldap.sdk.DN dn)
      Creates a new distinguished name (DN) identity.
      Parameters:
      dn - The DN, must not be null.
  • Method Details

    • getDN

      public com.unboundid.ldap.sdk.DN getDN()
      Gets the distinguished name (DN) value.
      Returns:
      The DN.
    • hashCode

      public int hashCode()
      Overrides Object.hashCode().
      Overrides:
      hashCode in class BaseIdentifier
      Returns:
      The object hash code.
    • equals

      public boolean equals(Object object)
      Description copied from class: BaseIdentifier
      Overrides Object.equals().
      Specified by:
      equals in class BaseIdentifier
      Parameters:
      object - The object to compare to.
      Returns:
      true if the objects have the same value, otherwise false.