public class PasswordPolicy extends Object implements Serializable
| 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() |
String |
getHashAlgorithm() |
int |
getHashIterations() |
String |
toString() |
PasswordPolicy.Error |
validate(KeycloakSession session,
String user,
String password) |
PasswordPolicy.Error |
validate(KeycloakSession session,
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 String getHashAlgorithm()
public int getHashIterations()
public int getExpiredPasswords()
public int getDaysToExpirePassword()
public PasswordPolicy.Error validate(KeycloakSession session, UserModel user, String password)
public PasswordPolicy.Error validate(KeycloakSession session, String user, String password)
Copyright © 2016 JBoss by Red Hat. All rights reserved.