public class PasswdStrength extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PasswdStrength.CHAR_TYPE
字符类型枚举
|
static class |
PasswdStrength.PASSWD_LEVEL
密码等级枚举
|
Constructor and Description |
---|
PasswdStrength() |
Modifier and Type | Method and Description |
---|---|
static int |
check(String passwd)
检查密码的健壮性
|
static PasswdStrength.PASSWD_LEVEL |
getLevel(String passwd)
Get password strength level, includes easy, midium, strong, very strong, extremely strong
|
public static int check(String passwd)
passwd
- 密码public static PasswdStrength.PASSWD_LEVEL getLevel(String passwd)
passwd
- 密码Copyright © 2024. All rights reserved.