Interface PasswordPolicyCfgClient
-
- All Superinterfaces:
AuthenticationPolicyCfgClient
,ConfigurationClient
public interface PasswordPolicyCfgClient extends AuthenticationPolicyCfgClient
A client-side interface for reading and modifying Password Policy settings.Password Policies define a number of password management rules, as well as requirements for authentication processing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends PasswordPolicyCfgClient,? extends PasswordPolicyCfg>
definition()
Get the configuration definition associated with this Password Policy.SortedSet<ValueOrExpression<String>>
getAccountStatusNotificationHandler()
Gets the "account-status-notification-handler" property.SortedSet<ValueOrExpression<String>>
getDefaultPasswordStorageScheme()
Gets the "default-password-storage-scheme" property.SortedSet<ValueOrExpression<String>>
getDeprecatedPasswordStorageScheme()
Gets the "deprecated-password-storage-scheme" property.ValueOrExpression<Integer>
getGraceLoginCount()
Gets the "grace-login-count" property.ValueOrExpression<Long>
getIdleLockoutInterval()
Gets the "idle-lockout-interval" property.ValueOrExpression<String>
getJavaClass()
Gets the "java-class" property.ValueOrExpression<AttributeType>
getLastLoginTimeAttribute()
Gets the "last-login-time-attribute" property.ValueOrExpression<String>
getLastLoginTimeFormat()
Gets the "last-login-time-format" property.ValueOrExpression<Long>
getLockoutDuration()
Gets the "lockout-duration" property.ValueOrExpression<Integer>
getLockoutFailureCount()
Gets the "lockout-failure-count" property.ValueOrExpression<Long>
getLockoutFailureExpirationInterval()
Gets the "lockout-failure-expiration-interval" property.ValueOrExpression<Long>
getMaxPasswordAge()
Gets the "max-password-age" property.ValueOrExpression<Long>
getMaxPasswordResetAge()
Gets the "max-password-reset-age" property.ValueOrExpression<Long>
getMinPasswordAge()
Gets the "min-password-age" property.ValueOrExpression<AttributeType>
getPasswordAttribute()
Gets the "password-attribute" property.ValueOrExpression<Long>
getPasswordExpirationWarningInterval()
Gets the "password-expiration-warning-interval" property.ValueOrExpression<String>
getPasswordGenerator()
Gets the "password-generator" property.ValueOrExpression<Integer>
getPasswordHistoryCount()
Gets the "password-history-count" property.ValueOrExpression<Long>
getPasswordHistoryDuration()
Gets the "password-history-duration" property.SortedSet<ValueOrExpression<String>>
getPasswordValidator()
Gets the "password-validator" property.SortedSet<ValueOrExpression<String>>
getPreviousLastLoginTimeFormat()
Gets the "previous-last-login-time-format" property.ValueOrExpression<String>
getRequireChangeByTime()
Gets the "require-change-by-time" property.ValueOrExpression<PasswordPolicyCfgDefn.StateUpdateFailurePolicy>
getStateUpdateFailurePolicy()
Gets the "state-update-failure-policy" property.ValueOrExpression<Boolean>
isAllowExpiredPasswordChanges()
Gets the "allow-expired-password-changes" property.ValueOrExpression<Boolean>
isAllowMultiplePasswordValues()
Gets the "allow-multiple-password-values" property.ValueOrExpression<Boolean>
isAllowPreEncodedPasswords()
Gets the "allow-pre-encoded-passwords" property.ValueOrExpression<Boolean>
isAllowUserPasswordChanges()
Gets the "allow-user-password-changes" property.ValueOrExpression<Boolean>
isExpirePasswordsWithoutWarning()
Gets the "expire-passwords-without-warning" property.ValueOrExpression<Boolean>
isForceChangeOnAdd()
Gets the "force-change-on-add" property.ValueOrExpression<Boolean>
isForceChangeOnReset()
Gets the "force-change-on-reset" property.ValueOrExpression<Boolean>
isPasswordChangeRequiresCurrentPassword()
Gets the "password-change-requires-current-password" property.ValueOrExpression<Boolean>
isRequireSecureAuthentication()
Gets the "require-secure-authentication" property.ValueOrExpression<Boolean>
isRequireSecurePasswordChanges()
Gets the "require-secure-password-changes" property.ValueOrExpression<Boolean>
isSkipValidationForAdministrators()
Gets the "skip-validation-for-administrators" property.void
setAccountStatusNotificationHandler(Collection<ValueOrExpression<String>> values)
Sets the "account-status-notification-handler" property.void
setAllowExpiredPasswordChanges(ValueOrExpression<Boolean> value)
Sets the "allow-expired-password-changes" property.void
setAllowMultiplePasswordValues(ValueOrExpression<Boolean> value)
Sets the "allow-multiple-password-values" property.void
setAllowPreEncodedPasswords(ValueOrExpression<Boolean> value)
Sets the "allow-pre-encoded-passwords" property.void
setAllowUserPasswordChanges(ValueOrExpression<Boolean> value)
Sets the "allow-user-password-changes" property.void
setDefaultPasswordStorageScheme(Collection<ValueOrExpression<String>> values)
Sets the "default-password-storage-scheme" property.void
setDeprecatedPasswordStorageScheme(Collection<ValueOrExpression<String>> values)
Sets the "deprecated-password-storage-scheme" property.void
setExpirePasswordsWithoutWarning(ValueOrExpression<Boolean> value)
Sets the "expire-passwords-without-warning" property.void
setForceChangeOnAdd(ValueOrExpression<Boolean> value)
Sets the "force-change-on-add" property.void
setForceChangeOnReset(ValueOrExpression<Boolean> value)
Sets the "force-change-on-reset" property.void
setGraceLoginCount(ValueOrExpression<Integer> value)
Sets the "grace-login-count" property.void
setIdleLockoutInterval(ValueOrExpression<Long> value)
Sets the "idle-lockout-interval" property.void
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.void
setLastLoginTimeAttribute(ValueOrExpression<AttributeType> value)
Sets the "last-login-time-attribute" property.void
setLastLoginTimeFormat(ValueOrExpression<String> value)
Sets the "last-login-time-format" property.void
setLockoutDuration(ValueOrExpression<Long> value)
Sets the "lockout-duration" property.void
setLockoutFailureCount(ValueOrExpression<Integer> value)
Sets the "lockout-failure-count" property.void
setLockoutFailureExpirationInterval(ValueOrExpression<Long> value)
Sets the "lockout-failure-expiration-interval" property.void
setMaxPasswordAge(ValueOrExpression<Long> value)
Sets the "max-password-age" property.void
setMaxPasswordResetAge(ValueOrExpression<Long> value)
Sets the "max-password-reset-age" property.void
setMinPasswordAge(ValueOrExpression<Long> value)
Sets the "min-password-age" property.void
setPasswordAttribute(ValueOrExpression<AttributeType> value)
Sets the "password-attribute" property.void
setPasswordChangeRequiresCurrentPassword(ValueOrExpression<Boolean> value)
Sets the "password-change-requires-current-password" property.void
setPasswordExpirationWarningInterval(ValueOrExpression<Long> value)
Sets the "password-expiration-warning-interval" property.void
setPasswordGenerator(ValueOrExpression<String> value)
Sets the "password-generator" property.void
setPasswordHistoryCount(ValueOrExpression<Integer> value)
Sets the "password-history-count" property.void
setPasswordHistoryDuration(ValueOrExpression<Long> value)
Sets the "password-history-duration" property.void
setPasswordValidator(Collection<ValueOrExpression<String>> values)
Sets the "password-validator" property.void
setPreviousLastLoginTimeFormat(Collection<ValueOrExpression<String>> values)
Sets the "previous-last-login-time-format" property.void
setRequireChangeByTime(ValueOrExpression<String> value)
Sets the "require-change-by-time" property.void
setRequireSecureAuthentication(ValueOrExpression<Boolean> value)
Sets the "require-secure-authentication" property.void
setRequireSecurePasswordChanges(ValueOrExpression<Boolean> value)
Sets the "require-secure-password-changes" property.void
setSkipValidationForAdministrators(ValueOrExpression<Boolean> value)
Sets the "skip-validation-for-administrators" property.void
setStateUpdateFailurePolicy(ValueOrExpression<PasswordPolicyCfgDefn.StateUpdateFailurePolicy> value)
Sets the "state-update-failure-policy" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends PasswordPolicyCfgClient,? extends PasswordPolicyCfg> definition()
Get the configuration definition associated with this Password Policy.- Specified by:
definition
in interfaceAuthenticationPolicyCfgClient
- Specified by:
definition
in interfaceConfigurationClient
- Returns:
- Returns the configuration definition associated with this Password Policy.
-
getAccountStatusNotificationHandler
SortedSet<ValueOrExpression<String>> getAccountStatusNotificationHandler()
Gets the "account-status-notification-handler" property.Specifies the names of the account status notification handlers that are used with the associated password storage scheme.
Default value is undefined
- Returns:
- Returns the values of the "account-status-notification-handler" property.
-
setAccountStatusNotificationHandler
void setAccountStatusNotificationHandler(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "account-status-notification-handler" property.Specifies the names of the account status notification handlers that are used with the associated password storage scheme.
- Parameters:
values
- The values of the "account-status-notification-handler" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
isAllowExpiredPasswordChanges
ValueOrExpression<Boolean> isAllowExpiredPasswordChanges()
Gets the "allow-expired-password-changes" property.Indicates whether a user whose password is expired is still allowed to change that password using the password modify extended operation.
Default value:
false
- Returns:
- Returns the value of the "allow-expired-password-changes" property.
-
setAllowExpiredPasswordChanges
void setAllowExpiredPasswordChanges(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "allow-expired-password-changes" property.Indicates whether a user whose password is expired is still allowed to change that password using the password modify extended operation.
- Parameters:
value
- The value of the "allow-expired-password-changes" property.- Throws:
PropertyException
- If the new value is invalid.
-
isAllowMultiplePasswordValues
ValueOrExpression<Boolean> isAllowMultiplePasswordValues()
Gets the "allow-multiple-password-values" property.Indicates whether user entries can have multiple distinct values for the password attribute.
This is potentially dangerous because many mechanisms used to change the password do not work well with such a configuration. If multiple password values are allowed, then any of them can be used to authenticate, and they are all subject to the same policy constraints.
Default value:
false
- Returns:
- Returns the value of the "allow-multiple-password-values" property.
-
setAllowMultiplePasswordValues
void setAllowMultiplePasswordValues(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "allow-multiple-password-values" property.Indicates whether user entries can have multiple distinct values for the password attribute.
This is potentially dangerous because many mechanisms used to change the password do not work well with such a configuration. If multiple password values are allowed, then any of them can be used to authenticate, and they are all subject to the same policy constraints.
- Parameters:
value
- The value of the "allow-multiple-password-values" property.- Throws:
PropertyException
- If the new value is invalid.
-
isAllowPreEncodedPasswords
ValueOrExpression<Boolean> isAllowPreEncodedPasswords()
Gets the "allow-pre-encoded-passwords" property.Indicates whether users can change their passwords by providing a pre-encoded value.
This can cause a security risk because the clear-text version of the password is not known and therefore validation checks cannot be applied to it.
Default value:
false
- Returns:
- Returns the value of the "allow-pre-encoded-passwords" property.
-
setAllowPreEncodedPasswords
void setAllowPreEncodedPasswords(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "allow-pre-encoded-passwords" property.Indicates whether users can change their passwords by providing a pre-encoded value.
This can cause a security risk because the clear-text version of the password is not known and therefore validation checks cannot be applied to it.
- Parameters:
value
- The value of the "allow-pre-encoded-passwords" property.- Throws:
PropertyException
- If the new value is invalid.
-
isAllowUserPasswordChanges
ValueOrExpression<Boolean> isAllowUserPasswordChanges()
Gets the "allow-user-password-changes" property.Indicates whether users can change their own passwords.
This check is made in addition to access control evaluation. Both must allow the password change for it to occur.
Default value:
true
- Returns:
- Returns the value of the "allow-user-password-changes" property.
-
setAllowUserPasswordChanges
void setAllowUserPasswordChanges(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "allow-user-password-changes" property.Indicates whether users can change their own passwords.
This check is made in addition to access control evaluation. Both must allow the password change for it to occur.
- Parameters:
value
- The value of the "allow-user-password-changes" property.- Throws:
PropertyException
- If the new value is invalid.
-
getDefaultPasswordStorageScheme
@MandatoryProperty SortedSet<ValueOrExpression<String>> getDefaultPasswordStorageScheme()
Gets the "default-password-storage-scheme" property.Specifies the names of the password storage schemes that are used to encode clear-text passwords for this password policy.
- Returns:
- Returns the values of the "default-password-storage-scheme" property.
-
setDefaultPasswordStorageScheme
@MandatoryProperty void setDefaultPasswordStorageScheme(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "default-password-storage-scheme" property.Specifies the names of the password storage schemes that are used to encode clear-text passwords for this password policy.
- Parameters:
values
- The values of the "default-password-storage-scheme" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getDeprecatedPasswordStorageScheme
SortedSet<ValueOrExpression<String>> getDeprecatedPasswordStorageScheme()
Gets the "deprecated-password-storage-scheme" property.Specifies the names of the password storage schemes that are considered deprecated for this password policy.
If a user with this password policy authenticates to the server and his/her password is encoded with a deprecated scheme, those values are removed and replaced with values encoded using the default password storage scheme(s).
Default value is undefined
- Returns:
- Returns the values of the "deprecated-password-storage-scheme" property.
-
setDeprecatedPasswordStorageScheme
void setDeprecatedPasswordStorageScheme(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "deprecated-password-storage-scheme" property.Specifies the names of the password storage schemes that are considered deprecated for this password policy.
If a user with this password policy authenticates to the server and his/her password is encoded with a deprecated scheme, those values are removed and replaced with values encoded using the default password storage scheme(s).
- Parameters:
values
- The values of the "deprecated-password-storage-scheme" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
isExpirePasswordsWithoutWarning
ValueOrExpression<Boolean> isExpirePasswordsWithoutWarning()
Gets the "expire-passwords-without-warning" property.Indicates whether the directory server allows a user's password to expire even if that user has never seen an expiration warning notification.
If this property is true, accounts always expire when the expiration time arrives. If this property is false or disabled, the user always receives at least one warning notification, and the password expiration is set to the warning time plus the warning interval.
Default value:
false
- Returns:
- Returns the value of the "expire-passwords-without-warning" property.
-
setExpirePasswordsWithoutWarning
void setExpirePasswordsWithoutWarning(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "expire-passwords-without-warning" property.Indicates whether the directory server allows a user's password to expire even if that user has never seen an expiration warning notification.
If this property is true, accounts always expire when the expiration time arrives. If this property is false or disabled, the user always receives at least one warning notification, and the password expiration is set to the warning time plus the warning interval.
- Parameters:
value
- The value of the "expire-passwords-without-warning" property.- Throws:
PropertyException
- If the new value is invalid.
-
isForceChangeOnAdd
ValueOrExpression<Boolean> isForceChangeOnAdd()
Gets the "force-change-on-add" property.Indicates whether users are forced to change their passwords upon first authenticating to the directory server after their account has been created.
Default value:
false
- Returns:
- Returns the value of the "force-change-on-add" property.
-
setForceChangeOnAdd
void setForceChangeOnAdd(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "force-change-on-add" property.Indicates whether users are forced to change their passwords upon first authenticating to the directory server after their account has been created.
- Parameters:
value
- The value of the "force-change-on-add" property.- Throws:
PropertyException
- If the new value is invalid.
-
isForceChangeOnReset
ValueOrExpression<Boolean> isForceChangeOnReset()
Gets the "force-change-on-reset" property.Indicates whether users are forced to change their passwords if they are reset by an administrator.
For this purpose, anyone with permission to change a given user's password other than that user is considered an administrator.
Default value:
false
- Returns:
- Returns the value of the "force-change-on-reset" property.
-
setForceChangeOnReset
void setForceChangeOnReset(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "force-change-on-reset" property.Indicates whether users are forced to change their passwords if they are reset by an administrator.
For this purpose, anyone with permission to change a given user's password other than that user is considered an administrator.
- Parameters:
value
- The value of the "force-change-on-reset" property.- Throws:
PropertyException
- If the new value is invalid.
-
getGraceLoginCount
ValueOrExpression<Integer> getGraceLoginCount()
Gets the "grace-login-count" property.Specifies the number of grace logins that a user is allowed after the account has expired to allow that user to choose a new password.
A value of 0 indicates that no grace logins are allowed.
Default value:
0
- Returns:
- Returns the value of the "grace-login-count" property.
-
setGraceLoginCount
void setGraceLoginCount(ValueOrExpression<Integer> value) throws PropertyException
Sets the "grace-login-count" property.Specifies the number of grace logins that a user is allowed after the account has expired to allow that user to choose a new password.
A value of 0 indicates that no grace logins are allowed.
- Parameters:
value
- The value of the "grace-login-count" property.- Throws:
PropertyException
- If the new value is invalid.
-
getIdleLockoutInterval
ValueOrExpression<Long> getIdleLockoutInterval()
Gets the "idle-lockout-interval" property.Specifies the maximum length of time that an account may remain idle (that is, the associated user does not authenticate to the server) before that user is locked out.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that idle accounts are not automatically locked out. This feature is available only if the last login time is maintained.
Default value:
0 seconds
- Returns:
- Returns the value of the "idle-lockout-interval" property.
-
setIdleLockoutInterval
void setIdleLockoutInterval(ValueOrExpression<Long> value) throws PropertyException
Sets the "idle-lockout-interval" property.Specifies the maximum length of time that an account may remain idle (that is, the associated user does not authenticate to the server) before that user is locked out.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that idle accounts are not automatically locked out. This feature is available only if the last login time is maintained.
- Parameters:
value
- The value of the "idle-lockout-interval" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
@MandatoryProperty ValueOrExpression<String> getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class which provides the Password Policy implementation.
Default value:
org.opends.server.core.PasswordPolicyFactory
- Specified by:
getJavaClass
in interfaceAuthenticationPolicyCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
@MandatoryProperty void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class which provides the Password Policy implementation.
- Specified by:
setJavaClass
in interfaceAuthenticationPolicyCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLastLoginTimeAttribute
ValueOrExpression<AttributeType> getLastLoginTimeAttribute()
Gets the "last-login-time-attribute" property.Specifies the name or OID of the attribute type that is used to hold the last login time for users with the associated password policy.
This attribute type must be defined in the directory server schema and must either be defined as an operational attribute or must be allowed by the set of objectClasses for all users with the associated password policy.
Default value is undefined
- Returns:
- Returns the value of the "last-login-time-attribute" property.
-
setLastLoginTimeAttribute
void setLastLoginTimeAttribute(ValueOrExpression<AttributeType> value) throws PropertyException
Sets the "last-login-time-attribute" property.Specifies the name or OID of the attribute type that is used to hold the last login time for users with the associated password policy.
This attribute type must be defined in the directory server schema and must either be defined as an operational attribute or must be allowed by the set of objectClasses for all users with the associated password policy.
- Parameters:
value
- The value of the "last-login-time-attribute" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLastLoginTimeFormat
ValueOrExpression<String> getLastLoginTimeFormat()
Gets the "last-login-time-format" property.Specifies the format string that is used to generate the last login time value for users with the associated password policy.
This format string conforms to the syntax described in the API documentation for the java.text.SimpleDateFormat class.
Default value is undefined
- Returns:
- Returns the value of the "last-login-time-format" property.
-
setLastLoginTimeFormat
void setLastLoginTimeFormat(ValueOrExpression<String> value) throws PropertyException
Sets the "last-login-time-format" property.Specifies the format string that is used to generate the last login time value for users with the associated password policy.
This format string conforms to the syntax described in the API documentation for the java.text.SimpleDateFormat class.
- Parameters:
value
- The value of the "last-login-time-format" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLockoutDuration
ValueOrExpression<Long> getLockoutDuration()
Gets the "lockout-duration" property.Specifies the length of time that an account is locked after too many authentication failures.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that the account must remain locked until an administrator resets the password.
Default value:
0 seconds
- Returns:
- Returns the value of the "lockout-duration" property.
-
setLockoutDuration
void setLockoutDuration(ValueOrExpression<Long> value) throws PropertyException
Sets the "lockout-duration" property.Specifies the length of time that an account is locked after too many authentication failures.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that the account must remain locked until an administrator resets the password.
- Parameters:
value
- The value of the "lockout-duration" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLockoutFailureCount
ValueOrExpression<Integer> getLockoutFailureCount()
Gets the "lockout-failure-count" property.Specifies the maximum number of authentication failures that a user is allowed before the account is locked out.
A value of 0 indicates that accounts are never locked out due to failed attempts.
Default value:
0
- Returns:
- Returns the value of the "lockout-failure-count" property.
-
setLockoutFailureCount
void setLockoutFailureCount(ValueOrExpression<Integer> value) throws PropertyException
Sets the "lockout-failure-count" property.Specifies the maximum number of authentication failures that a user is allowed before the account is locked out.
A value of 0 indicates that accounts are never locked out due to failed attempts.
- Parameters:
value
- The value of the "lockout-failure-count" property.- Throws:
PropertyException
- If the new value is invalid.
-
getLockoutFailureExpirationInterval
ValueOrExpression<Long> getLockoutFailureExpirationInterval()
Gets the "lockout-failure-expiration-interval" property.Specifies the length of time before an authentication failure is no longer counted against a user for the purposes of account lockout.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that the authentication failures must never expire. The failure count is always cleared upon a successful authentication.
Default value:
0 seconds
- Returns:
- Returns the value of the "lockout-failure-expiration-interval" property.
-
setLockoutFailureExpirationInterval
void setLockoutFailureExpirationInterval(ValueOrExpression<Long> value) throws PropertyException
Sets the "lockout-failure-expiration-interval" property.Specifies the length of time before an authentication failure is no longer counted against a user for the purposes of account lockout.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds indicates that the authentication failures must never expire. The failure count is always cleared upon a successful authentication.
- Parameters:
value
- The value of the "lockout-failure-expiration-interval" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMaxPasswordAge
ValueOrExpression<Long> getMaxPasswordAge()
Gets the "max-password-age" property.Specifies the maximum length of time that a user can continue using the same password before it must be changed (that is, the password expiration interval).
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables password expiration.
Default value:
0 seconds
- Returns:
- Returns the value of the "max-password-age" property.
-
setMaxPasswordAge
void setMaxPasswordAge(ValueOrExpression<Long> value) throws PropertyException
Sets the "max-password-age" property.Specifies the maximum length of time that a user can continue using the same password before it must be changed (that is, the password expiration interval).
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables password expiration.
- Parameters:
value
- The value of the "max-password-age" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMaxPasswordResetAge
ValueOrExpression<Long> getMaxPasswordResetAge()
Gets the "max-password-reset-age" property.Specifies the maximum length of time that users have to change passwords after they have been reset by an administrator before they become locked.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables this feature.
Default value:
0 seconds
- Returns:
- Returns the value of the "max-password-reset-age" property.
-
setMaxPasswordResetAge
void setMaxPasswordResetAge(ValueOrExpression<Long> value) throws PropertyException
Sets the "max-password-reset-age" property.Specifies the maximum length of time that users have to change passwords after they have been reset by an administrator before they become locked.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables this feature.
- Parameters:
value
- The value of the "max-password-reset-age" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMinPasswordAge
ValueOrExpression<Long> getMinPasswordAge()
Gets the "min-password-age" property.Specifies the minimum length of time after a password change before the user is allowed to change the password again.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. This setting can be used to prevent users from changing their passwords repeatedly over a short period of time to flush an old password from the history so that it can be re-used.
Default value:
0 seconds
- Returns:
- Returns the value of the "min-password-age" property.
-
setMinPasswordAge
void setMinPasswordAge(ValueOrExpression<Long> value) throws PropertyException
Sets the "min-password-age" property.Specifies the minimum length of time after a password change before the user is allowed to change the password again.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. This setting can be used to prevent users from changing their passwords repeatedly over a short period of time to flush an old password from the history so that it can be re-used.
- Parameters:
value
- The value of the "min-password-age" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordAttribute
@MandatoryProperty ValueOrExpression<AttributeType> getPasswordAttribute()
Gets the "password-attribute" property.Specifies the attribute type used to hold user passwords.
This attribute type must be defined in the server schema, and it must have either the user password or auth password syntax.
- Returns:
- Returns the value of the "password-attribute" property.
-
setPasswordAttribute
@MandatoryProperty void setPasswordAttribute(ValueOrExpression<AttributeType> value) throws PropertyException
Sets the "password-attribute" property.Specifies the attribute type used to hold user passwords.
This attribute type must be defined in the server schema, and it must have either the user password or auth password syntax.
- Parameters:
value
- The value of the "password-attribute" property.- Throws:
PropertyException
- If the new value is invalid.
-
isPasswordChangeRequiresCurrentPassword
ValueOrExpression<Boolean> isPasswordChangeRequiresCurrentPassword()
Gets the "password-change-requires-current-password" property.Indicates whether user password changes must include the user's current password before the change is allowed. This can be done with either the password modify extended operation, or a modify operation using delete and add.
Default value:
false
- Returns:
- Returns the value of the "password-change-requires-current-password" property.
-
setPasswordChangeRequiresCurrentPassword
void setPasswordChangeRequiresCurrentPassword(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "password-change-requires-current-password" property.Indicates whether user password changes must include the user's current password before the change is allowed. This can be done with either the password modify extended operation, or a modify operation using delete and add.
- Parameters:
value
- The value of the "password-change-requires-current-password" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordExpirationWarningInterval
ValueOrExpression<Long> getPasswordExpirationWarningInterval()
Gets the "password-expiration-warning-interval" property.Specifies the maximum length of time before a user's password actually expires that the server begins to include warning notifications in bind responses for that user.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables the warning interval.
Default value:
5 days
- Returns:
- Returns the value of the "password-expiration-warning-interval" property.
-
setPasswordExpirationWarningInterval
void setPasswordExpirationWarningInterval(ValueOrExpression<Long> value) throws PropertyException
Sets the "password-expiration-warning-interval" property.Specifies the maximum length of time before a user's password actually expires that the server begins to include warning notifications in bind responses for that user.
The value of this attribute is an integer followed by a unit of seconds, minutes, hours, days, weeks, or years. A value of 0 seconds disables the warning interval.
- Parameters:
value
- The value of the "password-expiration-warning-interval" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordGenerator
ValueOrExpression<String> getPasswordGenerator()
Gets the "password-generator" property.Specifies the name of the password generator that is used with the associated password policy.
This is used in conjunction with the password modify extended operation to generate a new password for a user when none was provided in the request.
Default value is undefined
- Returns:
- Returns the value of the "password-generator" property.
-
setPasswordGenerator
void setPasswordGenerator(ValueOrExpression<String> value) throws PropertyException
Sets the "password-generator" property.Specifies the name of the password generator that is used with the associated password policy.
This is used in conjunction with the password modify extended operation to generate a new password for a user when none was provided in the request.
- Parameters:
value
- The value of the "password-generator" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordHistoryCount
ValueOrExpression<Integer> getPasswordHistoryCount()
Gets the "password-history-count" property.Specifies the maximum number of former passwords to maintain in the password history.
When choosing a new password, the proposed password is checked to ensure that it does not match the current password, nor any other password in the history list. A value of zero indicates that either no password history is to be maintained (if the password history duration has a value of zero seconds), or that there is no maximum number of passwords to maintain in the history (if the password history duration has a value greater than zero seconds).
Default value:
0
- Returns:
- Returns the value of the "password-history-count" property.
-
setPasswordHistoryCount
void setPasswordHistoryCount(ValueOrExpression<Integer> value) throws PropertyException
Sets the "password-history-count" property.Specifies the maximum number of former passwords to maintain in the password history.
When choosing a new password, the proposed password is checked to ensure that it does not match the current password, nor any other password in the history list. A value of zero indicates that either no password history is to be maintained (if the password history duration has a value of zero seconds), or that there is no maximum number of passwords to maintain in the history (if the password history duration has a value greater than zero seconds).
- Parameters:
value
- The value of the "password-history-count" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordHistoryDuration
ValueOrExpression<Long> getPasswordHistoryDuration()
Gets the "password-history-duration" property.Specifies the maximum length of time that passwords remain in the password history.
When choosing a new password, the proposed password is checked to ensure that it does not match the current password, nor any other password in the history list. A value of zero seconds indicates that either no password history is to be maintained (if the password history count has a value of zero), or that there is no maximum duration for passwords in the history (if the password history count has a value greater than zero).
Default value:
0 seconds
- Returns:
- Returns the value of the "password-history-duration" property.
-
setPasswordHistoryDuration
void setPasswordHistoryDuration(ValueOrExpression<Long> value) throws PropertyException
Sets the "password-history-duration" property.Specifies the maximum length of time that passwords remain in the password history.
When choosing a new password, the proposed password is checked to ensure that it does not match the current password, nor any other password in the history list. A value of zero seconds indicates that either no password history is to be maintained (if the password history count has a value of zero), or that there is no maximum duration for passwords in the history (if the password history count has a value greater than zero).
- Parameters:
value
- The value of the "password-history-duration" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPasswordValidator
SortedSet<ValueOrExpression<String>> getPasswordValidator()
Gets the "password-validator" property.Specifies the names of the password validators that are used with the associated password storage scheme.
The password validators are invoked when a user attempts to provide a new password, to determine whether the new password is acceptable.
Default value is undefined
- Returns:
- Returns the values of the "password-validator" property.
-
setPasswordValidator
void setPasswordValidator(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "password-validator" property.Specifies the names of the password validators that are used with the associated password storage scheme.
The password validators are invoked when a user attempts to provide a new password, to determine whether the new password is acceptable.
- Parameters:
values
- The values of the "password-validator" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getPreviousLastLoginTimeFormat
SortedSet<ValueOrExpression<String>> getPreviousLastLoginTimeFormat()
Gets the "previous-last-login-time-format" property.Specifies the format string(s) that might have been used with the last login time at any point in the past for users associated with the password policy.
These values are used to make it possible to parse previous values, but are not used to set new values. The format strings conform to the syntax described in the API documentation for the java.text.SimpleDateFormat class.
Default value is undefined
- Returns:
- Returns the values of the "previous-last-login-time-format" property.
-
setPreviousLastLoginTimeFormat
void setPreviousLastLoginTimeFormat(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "previous-last-login-time-format" property.Specifies the format string(s) that might have been used with the last login time at any point in the past for users associated with the password policy.
These values are used to make it possible to parse previous values, but are not used to set new values. The format strings conform to the syntax described in the API documentation for the java.text.SimpleDateFormat class.
- Parameters:
values
- The values of the "previous-last-login-time-format" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getRequireChangeByTime
ValueOrExpression<String> getRequireChangeByTime()
Gets the "require-change-by-time" property.Specifies the time by which all users with the associated password policy must change their passwords.
The value is expressed in a generalized time format. If this time is equal to the current time or is in the past, then all users are required to change their passwords immediately. The behavior of the server in this mode is identical to the behavior observed when users are forced to change their passwords after an administrative reset.
Default value is undefined
- Returns:
- Returns the value of the "require-change-by-time" property.
-
setRequireChangeByTime
void setRequireChangeByTime(ValueOrExpression<String> value) throws PropertyException
Sets the "require-change-by-time" property.Specifies the time by which all users with the associated password policy must change their passwords.
The value is expressed in a generalized time format. If this time is equal to the current time or is in the past, then all users are required to change their passwords immediately. The behavior of the server in this mode is identical to the behavior observed when users are forced to change their passwords after an administrative reset.
- Parameters:
value
- The value of the "require-change-by-time" property.- Throws:
PropertyException
- If the new value is invalid.
-
isRequireSecureAuthentication
ValueOrExpression<Boolean> isRequireSecureAuthentication()
Gets the "require-secure-authentication" property.Indicates whether users with the associated password policy are required to authenticate in a secure manner.
This might mean either using a secure communication channel between the client and the server, or using a SASL mechanism that does not expose the credentials.
Default value:
false
- Returns:
- Returns the value of the "require-secure-authentication" property.
-
setRequireSecureAuthentication
void setRequireSecureAuthentication(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "require-secure-authentication" property.Indicates whether users with the associated password policy are required to authenticate in a secure manner.
This might mean either using a secure communication channel between the client and the server, or using a SASL mechanism that does not expose the credentials.
- Parameters:
value
- The value of the "require-secure-authentication" property.- Throws:
PropertyException
- If the new value is invalid.
-
isRequireSecurePasswordChanges
ValueOrExpression<Boolean> isRequireSecurePasswordChanges()
Gets the "require-secure-password-changes" property.Indicates whether users with the associated password policy are required to change their password in a secure manner that does not expose the credentials.
Default value:
false
- Returns:
- Returns the value of the "require-secure-password-changes" property.
-
setRequireSecurePasswordChanges
void setRequireSecurePasswordChanges(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "require-secure-password-changes" property.Indicates whether users with the associated password policy are required to change their password in a secure manner that does not expose the credentials.
- Parameters:
value
- The value of the "require-secure-password-changes" property.- Throws:
PropertyException
- If the new value is invalid.
-
isSkipValidationForAdministrators
ValueOrExpression<Boolean> isSkipValidationForAdministrators()
Gets the "skip-validation-for-administrators" property.Indicates whether passwords set by administrators are allowed to bypass the password validation process that is required for user password changes.
Default value:
false
- Returns:
- Returns the value of the "skip-validation-for-administrators" property.
-
setSkipValidationForAdministrators
void setSkipValidationForAdministrators(ValueOrExpression<Boolean> value) throws PropertyException
Sets the "skip-validation-for-administrators" property.Indicates whether passwords set by administrators are allowed to bypass the password validation process that is required for user password changes.
- Parameters:
value
- The value of the "skip-validation-for-administrators" property.- Throws:
PropertyException
- If the new value is invalid.
-
getStateUpdateFailurePolicy
ValueOrExpression<PasswordPolicyCfgDefn.StateUpdateFailurePolicy> getStateUpdateFailurePolicy()
Gets the "state-update-failure-policy" property.Specifies how the server deals with the inability to update password policy state information during an authentication attempt.
In particular, this property can be used to control whether an otherwise successful bind operation fails if a failure occurs while attempting to update password policy state information (for example, to clear a record of previous authentication failures or to update the last login time). It can also be used to control whether to reject a bind request if it is known ahead of time that it will not be possible to update the authentication failure times in the event of an unsuccessful bind attempt (for example, if the backend writability mode is disabled).
Default value:
reactive
- Returns:
- Returns the value of the "state-update-failure-policy" property.
-
setStateUpdateFailurePolicy
void setStateUpdateFailurePolicy(ValueOrExpression<PasswordPolicyCfgDefn.StateUpdateFailurePolicy> value) throws PropertyException
Sets the "state-update-failure-policy" property.Specifies how the server deals with the inability to update password policy state information during an authentication attempt.
In particular, this property can be used to control whether an otherwise successful bind operation fails if a failure occurs while attempting to update password policy state information (for example, to clear a record of previous authentication failures or to update the last login time). It can also be used to control whether to reject a bind request if it is known ahead of time that it will not be possible to update the authentication failure times in the event of an unsuccessful bind attempt (for example, if the backend writability mode is disabled).
- Parameters:
value
- The value of the "state-update-failure-policy" property.- Throws:
PropertyException
- If the new value is invalid.
-
-