Package com.neovisionaries.ws.client
Class DistinguishedNameParser
- java.lang.Object
-
- com.neovisionaries.ws.client.DistinguishedNameParser
-
final class DistinguishedNameParser extends java.lang.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.
-
-
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.String
escapedAV()
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.private int
getByte(int position)
private char
getEscaped()
private char
getUTF8()
private java.lang.String
hexAV()
private java.lang.String
nextAT()
private java.lang.String
quotedAV()
-
-
-
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")
-
-