Package javax.net.ssl
Class DistinguishedNameParser
- java.lang.Object
-
- javax.net.ssl.DistinguishedNameParser
-
public 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.
-
-
Constructor Summary
Constructors Constructor Description DistinguishedNameParser(X500Principal principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindMostSpecific(String attributeType)Parses the DN and returns the most significant attribute value for an attribute type, or null if none found.List<String>getAllMostSpecificFirst(String attributeType)Parses the DN and returns all values for an attribute type, in the order of decreasing significance (most significant first).
-
-
-
Constructor Detail
-
DistinguishedNameParser
public DistinguishedNameParser(X500Principal principal)
-
-