fromName
Builds a X500Name from the encoded form.
For example, if passing the string CN=David,ST=US-MA,O=Google,OU=Android,C=US
a X500Name instance with the the X500Name.components property containing the following entries
val components = mapOf<String, ASN1String>(
"2.5.4.6" to ASN1String("US"),
"2.5.4.11" to ASN1String("Android"),
"2.5.4.10" to ASN1String("Google"),
"2.5.4.8" to ASN1String("US-MA"),
"2.5.4.3" to ASN1String("David"),
)
Content copied to clipboard
Parameters
name
an encoded form of a X.501 Name according to RFC 2253.
Throws
if one of the keys isn't known.