Package org.keycloak.policy
Class NotEmailPasswordPolicyProvider
- java.lang.Object
-
- org.keycloak.policy.NotEmailPasswordPolicyProvider
-
- All Implemented Interfaces:
PasswordPolicyProvider
,Provider
public class NotEmailPasswordPolicyProvider extends Object implements PasswordPolicyProvider
APasswordPolicyProvider
which does not allow to use the current email as password.- Author:
- Thomas Darimont
-
-
Field Summary
-
Fields inherited from interface org.keycloak.policy.PasswordPolicyProvider
INT_CONFIG_TYPE, STRING_CONFIG_TYPE
-
-
Constructor Summary
Constructors Constructor Description NotEmailPasswordPolicyProvider(KeycloakContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Object
parseConfig(String value)
PolicyError
validate(String email, String password)
PolicyError
validate(RealmModel realm, UserModel user, String password)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.policy.PasswordPolicyProvider
parseInteger
-
-
-
-
Constructor Detail
-
NotEmailPasswordPolicyProvider
public NotEmailPasswordPolicyProvider(KeycloakContext context)
-
-
Method Detail
-
validate
public PolicyError validate(String email, String password)
- Specified by:
validate
in interfacePasswordPolicyProvider
-
validate
public PolicyError validate(RealmModel realm, UserModel user, String password)
- Specified by:
validate
in interfacePasswordPolicyProvider
-
parseConfig
public Object parseConfig(String value)
- Specified by:
parseConfig
in interfacePasswordPolicyProvider
-
-