object LegalNameValidator
sealed class Rule<in T> |
val WHITESPACE: <ERROR CLASS> |
fun normalize(nameAttribute: String): String
The normalize function will trim the input string, replace any multiple spaces with a single space, and normalize the string according to NFKC normalization form. |
|
fun validateAttribute(normalizedNameAttribute: String): Unit
The validation function validates a string for use as the X500 attribute of a name. It applies the following rules: |