public class PasswordPolicy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PasswordPolicy.Error |
| Modifier and Type | Field and Description |
|---|---|
static String |
INVALID_PASSWORD_HISTORY |
static String |
INVALID_PASSWORD_MIN_DIGITS_MESSAGE |
static String |
INVALID_PASSWORD_MIN_LENGTH_MESSAGE |
static String |
INVALID_PASSWORD_MIN_LOWER_CASE_CHARS_MESSAGE |
static String |
INVALID_PASSWORD_MIN_SPECIAL_CHARS_MESSAGE |
static String |
INVALID_PASSWORD_MIN_UPPER_CASE_CHARS_MESSAGE |
static String |
INVALID_PASSWORD_NOT_USERNAME |
static String |
INVALID_PASSWORD_REGEX_PATTERN |
| Constructor and Description |
|---|
PasswordPolicy(String policyString) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDaysToExpirePassword() |
int |
getExpiredPasswords() |
int |
getHashIterations() |
String |
toString() |
PasswordPolicy.Error |
validate(String user,
String password) |
PasswordPolicy.Error |
validate(UserModel user,
String password) |
public static final String INVALID_PASSWORD_MIN_LENGTH_MESSAGE
public static final String INVALID_PASSWORD_MIN_DIGITS_MESSAGE
public static final String INVALID_PASSWORD_MIN_LOWER_CASE_CHARS_MESSAGE
public static final String INVALID_PASSWORD_MIN_UPPER_CASE_CHARS_MESSAGE
public static final String INVALID_PASSWORD_MIN_SPECIAL_CHARS_MESSAGE
public static final String INVALID_PASSWORD_NOT_USERNAME
public static final String INVALID_PASSWORD_REGEX_PATTERN
public static final String INVALID_PASSWORD_HISTORY
public PasswordPolicy(String policyString)
public int getHashIterations()
public int getExpiredPasswords()
public int getDaysToExpirePassword()
public PasswordPolicy.Error validate(UserModel user, String password)
public PasswordPolicy.Error validate(String user, String password)
Copyright © 2015 JBoss by Red Hat. All rights reserved.