Class DN

java.lang.Object
org.ldaptive.asn1.DN
All Implemented Interfaces:
DEREncoder

@Deprecated public class DN extends Object implements DEREncoder
Deprecated.
Use Dn
A sequence of RDN values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
    Deprecated.
    hash code seed.
    private final RDN[]
    Deprecated.
    RDNs in this RDN sequence.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DN(Collection<RDN> names)
    Deprecated.
    Creates a new DN.
    DN(RDN... names)
    Deprecated.
    Creates a new DN.
  • Method Summary

    Modifier and Type
    Method
    Description
    static DN
    decode(DERBuffer encoded)
    Deprecated.
    Converts bytes in the buffer to a DN by reading from the current position to the limit.
    byte[]
    Deprecated.
    Encode this object into it's DER type.
    boolean
    Deprecated.
     
    RDN[]
    Deprecated.
    Returns the RDNs in this DN.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      Deprecated.
      hash code seed.
      See Also:
    • rdns

      private final RDN[] rdns
      Deprecated.
      RDNs in this RDN sequence.
  • Constructor Details

    • DN

      public DN(Collection<RDN> names)
      Deprecated.
      Creates a new DN.
      Parameters:
      names - RDNs in this sequence
    • DN

      public DN(RDN... names)
      Deprecated.
      Creates a new DN.
      Parameters:
      names - RDNs in this sequence
  • Method Details

    • getRDNs

      public RDN[] getRDNs()
      Deprecated.
      Returns the RDNs in this DN.
      Returns:
      RDNs
    • encode

      public byte[] encode()
      Deprecated.
      Description copied from interface: DEREncoder
      Encode this object into it's DER type.
      Specified by:
      encode in interface DEREncoder
      Returns:
      DER encoded object
    • decode

      public static DN decode(DERBuffer encoded)
      Deprecated.
      Converts bytes in the buffer to a DN by reading from the current position to the limit.
      Parameters:
      encoded - buffer containing DER-encoded data where the buffer is positioned at the tag of the DN and the limit is set beyond the last byte of DN data.
      Returns:
      decoded bytes as a DN
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object