public class BlacklistPasswordPolicyProvider extends Object implements PasswordPolicyProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MESSAGE |
INT_CONFIG_TYPE, STRING_CONFIG_TYPE| Constructor and Description |
|---|
BlacklistPasswordPolicyProvider(KeycloakContext context,
BlacklistPasswordPolicyProviderFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
parseConfig(String blacklistName) |
PolicyError |
validate(RealmModel realm,
UserModel user,
String password) |
PolicyError |
validate(String username,
String password)
Checks whether the provided password is contained in the configured blacklist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseIntegerpublic static final String ERROR_MESSAGE
public BlacklistPasswordPolicyProvider(KeycloakContext context, BlacklistPasswordPolicyProviderFactory factory)
public PolicyError validate(String username, String password)
validate in interface PasswordPolicyProviderusername - password - PolicyErrorpublic PolicyError validate(RealmModel realm, UserModel user, String password)
validate in interface PasswordPolicyProviderpublic Object parseConfig(String blacklistName)
parseConfig in interface PasswordPolicyProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.