to Attributes Map
fun X500Principal.toAttributesMap(supportedAttributes: Set<<Error class: unknown class>> = emptySet()): Map<<Error class: unknown class>, String>
Transforms the X500Principal to the attributes map.
Return
attributes map for this principal
Parameters
supported Attributes
list of supported attributes. If empty, it accepts all the attributes.
Throws
if this principal consists of duplicated attributes or the attribute is not supported.