Password

@Serializable
open class Password

Password

When password changed validator executed.

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

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder(initialize: Password.Builder.() -> Unit)

Properties

Link copied to clipboard
var value: String

Functions

Link copied to clipboard
protected open fun checkDigit(password: String): Boolean
Link copied to clipboard
protected fun checkLength(password: String, length: Int): Boolean
Link copied to clipboard
protected open fun checkLowerCase(password: String): Boolean
Link copied to clipboard
protected open fun checkSpecialChar(password: String): Boolean
Link copied to clipboard
protected open fun checkUpperCase(password: String): Boolean
Link copied to clipboard
protected open fun checkWhitespace(password: String): Boolean