Custom Password Policies

Hi All,

I am trying to add custom password policies on Keycloak, As per the procedure I make a new project and in this project create a package policy and class RepetitiveCharacterPolicyProvider which implements PasswordPolicyProvider.

After that, I make a new directory in resources, and after that created a file org.keycloak.policy.PasswordPolicyProviderFactory name, In this file I have provided the file path “com.demo.custom.policy.RepetitiveCharacterPolicyProvider”.

I make a jar file for this project and copy this file and paste it to my Keycloak providers folder and run the Keycloak server, But the policy is not showing on Keycloak.
Where I am doing a mistake, Please help me with this concept.

Thank you!