org.keycloak.policy

## Class DefaultPasswordPolicyManagerProvider

- java.lang.Object
- - org.keycloak.policy.DefaultPasswordPolicyManagerProvider

- All Implemented Interfaces:
    PasswordPolicyManagerProvider, Provider

      public class DefaultPasswordPolicyManagerProvider
      extends Object
      implements PasswordPolicyManagerProvider

  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultPasswordPolicyManagerProvider(KeycloakSession session)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `PolicyError` | `validate(RealmModel realm, UserModel user, String password)`
    `PolicyError` | `validate(String user, String password)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultPasswordPolicyManagerProvider

          public DefaultPasswordPolicyManagerProvider(KeycloakSession session)

  - ### Method Detail

    - #### validate

          public PolicyError validate(RealmModel realm,
                                      UserModel user,
                                      String password)

      Specified by:
        `validate` in interface `PasswordPolicyManagerProvider`

    - #### validate

          public PolicyError validate(String user,
                                      String password)

      Specified by:
        `validate` in interface `PasswordPolicyManagerProvider`

    - #### close

          public void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2021 JBoss by Red Hat. All rights reserved.