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, wait
parseInteger
public static final String ERROR_MESSAGE
public BlacklistPasswordPolicyProvider(KeycloakContext context, BlacklistPasswordPolicyProviderFactory factory)
public PolicyError validate(String username, String password)
validate
in interface PasswordPolicyProvider
username
- password
- PolicyError
public PolicyError validate(RealmModel realm, UserModel user, String password)
validate
in interface PasswordPolicyProvider
public Object parseConfig(String blacklistName)
parseConfig
in interface PasswordPolicyProvider
Copyright © 2020 JBoss by Red Hat. All rights reserved.