maxLength

fun maxLength(length: Int, description: String = "Password must be at most "): PasswordRule(source)

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