password

fun password(init: Password.Builder.() -> Unit): Password

password builder create Password for validation.

Example :

val password = password {
isValidLength(5) { println("isValidLength $it") }
includeDigit { println("includeDigit $it") }
includeLowerCase { println("includeLowerCase $it") }
includeUpperCase { println("includeUpperCase $it") }
includeSpecialChar { println("includeSpecialChar $it") }
excludeWhitespace { println("excludeWhitespace $it") }
}
password.value = "password"

Since

1.4.0