Companion

Functions

Link copied to clipboard
fun containsDigit(description: String = "Password must contain at least one digit"): PasswordRule

Creates a PasswordRule that checks whether the password contains at least one digit.

Link copied to clipboard
fun containsLowercase(description: String = "Password must contain at least one lowercase character"): PasswordRule

Creates a PasswordRule that checks whether the password contains at least one lowercase character.

Link copied to clipboard
fun containsSpecialCharacter(description: String = "Password must contain at least one special character"): PasswordRule

Creates a PasswordRule that checks whether the password contains at least one special character.

Link copied to clipboard
fun containsUppercase(description: String = "Password must contain at least one uppercase character"): PasswordRule

Creates a PasswordRule that checks whether the password contains at least one uppercase character.

Link copied to clipboard
fun maxLength(length: Int, description: String = "Password must be at most "): PasswordRule

Creates a PasswordRule that checks whether the password is at most length characters long.

Link copied to clipboard
fun minLength(length: Int, description: String = "Password must be at least "): PasswordRule

Creates a PasswordRule that checks whether the password is at least length characters long.