Class LdapPasswordPolicyProperties

java.lang.Object
org.apereo.cas.configuration.model.core.authentication.PasswordPolicyProperties
org.apereo.cas.configuration.model.support.ldap.LdapPasswordPolicyProperties
All Implemented Interfaces:
Serializable

@RequiresModule(name="cas-server-support-ldap") public class LdapPasswordPolicyProperties extends PasswordPolicyProperties
Since:
5.3.0
See Also:
  • Constructor Details

    • LdapPasswordPolicyProperties

      public LdapPasswordPolicyProperties()
  • Method Details

    • getCustomPolicyClass

      public String getCustomPolicyClass()
      An implementation of a policy class that knows how to handle LDAP responses. The class must be an implementation of org.ldaptive.auth.AuthenticationResponseHandler.
    • getType

      LDAP type.
    • getPasswordExpirationNumberOfDays

      public int getPasswordExpirationNumberOfDays()
      This is used to calculate an expiration period for the account password. When defined, LDAP password policy handling will use the pwdLastSet attribute which must be returned from the LDAP authentication attempt. LDAP password policy handling will emit a warning for the pwdLastSet value plus the expiration amount. A negative value will disable the operations that calculate the expiration period.
    • setCustomPolicyClass

      public LdapPasswordPolicyProperties setCustomPolicyClass(String customPolicyClass)
      An implementation of a policy class that knows how to handle LDAP responses. The class must be an implementation of org.ldaptive.auth.AuthenticationResponseHandler.
      Returns:
      this.
    • setType

      LDAP type.
      Returns:
      this.
    • setPasswordExpirationNumberOfDays

      public LdapPasswordPolicyProperties setPasswordExpirationNumberOfDays(int passwordExpirationNumberOfDays)
      This is used to calculate an expiration period for the account password. When defined, LDAP password policy handling will use the pwdLastSet attribute which must be returned from the LDAP authentication attempt. LDAP password policy handling will emit a warning for the pwdLastSet value plus the expiration amount. A negative value will disable the operations that calculate the expiration period.
      Returns:
      this.