Class OtherNameAsn1Parser
java.lang.Object
net.sf.michaelo.tomcat.realm.asn1.OtherNameAsn1Parser
A minimalist ASN.1 parser for X.509
SAN:otherName according to RFC 5280, section 4.2.1.6.
It properly takes JDK-6776681 into account and solves JDK-8277976.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OtherNameParseResultparse(byte[] otherName) Parses the DER-encoded ASN.1SAN:otherNamefield into its components:type-idandvalue.
-
Method Details
-
parse
Parses the DER-encoded ASN.1SAN:otherNamefield into its components:type-idandvalue.- Parameters:
otherName- a DER-encoded byte array- Returns:
- the parse result
- Throws:
NullPointerException- ifotherNameisnullIllegalArgumentException- ifotherNameis empty or if the DER-encoded byte array does not comply with ASN.1 DER encoding rules
-