Package org.apache.harmony.security.x509
Class DNParser
java.lang.Object
org.apache.harmony.security.x509.DNParser
public final class DNParser extends Object
Distinguished Name Parser.
Parses a distinguished name(DN) string according
BNF syntax specified in RFC 2253 and RFC 1779
RFC 2253: Lightweight Directory Access Protocol (v3):
UTF-8 String Representation of Distinguished Names
http://www.ietf.org/rfc/rfc2253.txt
RFC 1779: A String Representation of Distinguished Names
http://www.ietf.org/rfc/rfc1779.txt
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected chargetUTF8()Decodes a UTF-8 char.List<List<AttributeTypeAndValue>>parse()Parses DN
-
Constructor Details
-
DNParser
- Parameters:
dn- - distinguished name string to be parsed- Throws:
IOException
-
-
Method Details
-
getUTF8
Decodes a UTF-8 char.- Throws:
IOException
-
parse
Parses DN- Returns:
- a list of Relative Distinguished Names(RDN), each RDN is represented as a list of AttributeTypeAndValue objects
- Throws:
IOException
-