Package com.neovisionaries.ws.client
Class DistinguishedNameParser
java.lang.Object
com.neovisionaries.ws.client.DistinguishedNameParser
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
findMostSpecific
(String attributeType) Parses the DN and returns the most significant attribute value for an attribute type, or null if none found.private int
getByte
(int position) private char
private char
getUTF8()
private String
hexAV()
private String
nextAT()
private String
quotedAV()
-
Field Details
-
dn
-
length
private final int length -
pos
private int pos -
beg
private int beg -
end
private int end -
cur
private int curTemporary variable to store positions of the currently parsed item. -
chars
private char[] charsDistinguished name characters.
-
-
Constructor Details
-
DistinguishedNameParser
-
-
Method Details
-
nextAT
-
quotedAV
-
hexAV
-
escapedAV
-
getEscaped
private char getEscaped() -
getUTF8
private char getUTF8() -
getByte
private int getByte(int position) -
findMostSpecific
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")
-