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
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.
-
Constructor Details
-
DistinguishedNameParser
-
-
Method Details
-
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")
-