Class DistinguishedNameParser

java.lang.Object
com.neovisionaries.ws.client.DistinguishedNameParser

final class DistinguishedNameParser extends Object
A distinguished name (DN) parser. This parser only supports extracting a string value from a DN. It doesn't support values in the hex-string style.
  • Field Details

    • dn

      private final String dn
    • length

      private final int length
    • pos

      private int pos
    • beg

      private int beg
    • end

      private int end
    • cur

      private int cur
      Temporary variable to store positions of the currently parsed item.
    • chars

      private char[] chars
      Distinguished name characters.
  • Constructor Details

    • DistinguishedNameParser

      public DistinguishedNameParser(X500Principal principal)
  • Method Details

    • nextAT

      private String nextAT()
    • quotedAV

      private String quotedAV()
    • hexAV

      private String hexAV()
    • escapedAV

      private String escapedAV()
    • getEscaped

      private char getEscaped()
    • getUTF8

      private char getUTF8()
    • getByte

      private int getByte(int position)
    • findMostSpecific

      public String findMostSpecific(String attributeType)
      Parses the DN and returns the most significant attribute value for an attribute type, or null if none found.
      Parameters:
      attributeType - attribute type to look for (e.g. "ca")