Class DN

  • All Implemented Interfaces:
    DEREncoder

    @Deprecated
    public class DN
    extends java.lang.Object
    implements DEREncoder
    Deprecated.
    Use Dn
    A sequence of RDN values.
    Author:
    Middleware Services
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      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[] encode()
      Deprecated.
      Encode this object into it's DER type.
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      RDN[] getRDNs()
      Deprecated.
      Returns the RDNs in this DN.
      int hashCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DN

        public DN​(java.util.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 Detail

      • 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​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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