corda / com.r3.corda.networkmanage.common.validator / LegalNameValidator

LegalNameValidator

object LegalNameValidator

Types

Rule

sealed class Rule<in T>

Properties

WHITESPACE

val WHITESPACE: <ERROR CLASS>

Functions

normalize

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.

validateAttribute

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: