toAttributesMap

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

supportedAttributes

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.