Package com.neovisionaries.ws.client
Class DistinguishedNameParser
- java.lang.Object
-
- com.neovisionaries.ws.client.DistinguishedNameParser
-
final class DistinguishedNameParser extends java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor Description DistinguishedNameParser(javax.security.auth.x500.X500Principal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringescapedAV()java.lang.StringfindMostSpecific(java.lang.String attributeType)Parses the DN and returns the most significant attribute value for an attribute type, or null if none found.private intgetByte(int position)private chargetEscaped()private chargetUTF8()private java.lang.StringhexAV()private java.lang.StringnextAT()private java.lang.StringquotedAV()
-
-
-
Method Detail
-
nextAT
private java.lang.String nextAT()
-
quotedAV
private java.lang.String quotedAV()
-
hexAV
private java.lang.String hexAV()
-
escapedAV
private java.lang.String escapedAV()
-
getEscaped
private char getEscaped()
-
getUTF8
private char getUTF8()
-
getByte
private int getByte(int position)
-
findMostSpecific
public java.lang.String findMostSpecific(java.lang.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")
-
-