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
This is
LdapPasswordPolicyProperties
.- Since:
- 5.3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apereo.cas.configuration.model.core.authentication.PasswordPolicyProperties
PasswordPolicyProperties.PasswordPolicyHandlingOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAn implementation of a policy class that knows how to handle LDAP responses.int
This is used to calculate an expiration period for the account password.getType()
LDAP type.setCustomPolicyClass
(String customPolicyClass) An implementation of a policy class that knows how to handle LDAP responses.setPasswordExpirationNumberOfDays
(int passwordExpirationNumberOfDays) This is used to calculate an expiration period for the account password.LDAP type.Methods inherited from class org.apereo.cas.configuration.model.core.authentication.PasswordPolicyProperties
getGroovy, getLoginFailures, getPolicyAttributes, getStrategy, getWarningAttributeName, getWarningAttributeValue, getWarningDays, isAccountStateHandlingEnabled, isDisplayWarningOnMatch, isEnabled, isWarnAll, setAccountStateHandlingEnabled, setDisplayWarningOnMatch, setEnabled, setGroovy, setLoginFailures, setPolicyAttributes, setStrategy, setWarnAll, setWarningAttributeName, setWarningAttributeValue, setWarningDays
-
Constructor Details
-
LdapPasswordPolicyProperties
public LdapPasswordPolicyProperties()
-
-
Method Details
-
getCustomPolicyClass
An implementation of a policy class that knows how to handle LDAP responses. The class must be an implementation oforg.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 thepwdLastSet
attribute which must be returned from the LDAP authentication attempt. LDAP password policy handling will emit a warning for thepwdLastSet
value plus the expiration amount. A negative value will disable the operations that calculate the expiration period. -
setCustomPolicyClass
An implementation of a policy class that knows how to handle LDAP responses. The class must be an implementation oforg.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 thepwdLastSet
attribute which must be returned from the LDAP authentication attempt. LDAP password policy handling will emit a warning for thepwdLastSet
value plus the expiration amount. A negative value will disable the operations that calculate the expiration period.- Returns:
this
.
-