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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected chargetUTF8()Decodes a UTF-8 char.List<List<AttributeTypeAndValue>>parse()Parses DN
-
-
-
Constructor Detail
-
DNParser
public DNParser(String dn) throws IOException
- Parameters:
dn- - distinguished name string to be parsed- Throws:
IOException
-
-
Method Detail
-
getUTF8
protected char getUTF8() throws IOExceptionDecodes a UTF-8 char.- Throws:
IOException
-
parse
public List<List<AttributeTypeAndValue>> parse() throws IOException
Parses DN- Returns:
- a list of Relative Distinguished Names(RDN), each RDN is represented as a list of AttributeTypeAndValue objects
- Throws:
IOException
-
-