@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class PasswordUpdateBehaviorRequestControlProperties extends java.lang.Object implements java.io.Serializable
PasswordUpdateBehaviorRequestControl
.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
PasswordUpdateBehaviorRequestControlProperties()
Creates a new password update behavior request control properties object
with none of the properties set, which will cause the server to behave as
if the control had not been included in the request.
|
PasswordUpdateBehaviorRequestControlProperties(PasswordUpdateBehaviorRequestControl control)
Creates a new password update behavior request control properties object
with the settings used for the provided password update behavior request
control.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getAllowPreEncodedPassword()
Indicates whether the password update behavior request control should
override the value of the
allow-pre-encoded-passwords configuration
property for the target user's password policy, and if so, what the
overridden value should be. |
java.lang.Boolean |
getIgnoreMinimumPasswordAge()
Indicates whether the password update behavior request control should
override the server's normal behavior with regard to checking the
minimum password age, and if so, what the overridden behavior should be.
|
java.lang.Boolean |
getIgnorePasswordHistory()
Indicates whether the password update behavior request control should
override the server's normal behavior with regard to checking the password
history for any new passwords included in the password update, and if so,
what the overridden behavior should be.
|
java.lang.Boolean |
getIsSelfChange()
Indicates whether the password update behavior request control should
override the server's automatic classification of the password update as a
self change or an administrative reset, and if so, what the overridden
value should be.
|
java.lang.Boolean |
getMustChangePassword()
Indicates whether the password update behavior request control should
override the server's normal behavior with regard to requiring a password
change, and if so, what that behavior should be.
|
java.lang.String |
getPasswordStorageScheme()
Indicates whether the password update behavior request control should
override the server's normal behavior with regard to selecting the password
storage scheme to use to encode new password values, and if so, which
password storage scheme should be used.
|
java.lang.Boolean |
getSkipPasswordValidation()
Indicates whether the password update behavior request control should
override the server's normal behavior with regard to invoking password
validators for any new passwords included in the password update, and if
so, what the overridden behavior should be.
|
void |
setAllowPreEncodedPassword(java.lang.Boolean allowPreEncodedPassword)
Specifies whether the password update behavior request control should
override the value of the
allow-pre-encoded-passwords configuration
property for the target user's password policy, and if so, what the
overridden value should be. |
void |
setIgnoreMinimumPasswordAge(java.lang.Boolean ignoreMinimumPasswordAge)
Specifies whether the password update behavior request control should
override the server's normal behavior with regard to checking the
minimum password age, and if so, what the overridden behavior should be.
|
void |
setIgnorePasswordHistory(java.lang.Boolean ignorePasswordHistory)
Specifies whether the password update behavior request control should
override the server's normal behavior with regard to checking the password
history for any new passwords included in the password update, and if so,
what the overridden behavior should be.
|
void |
setIsSelfChange(java.lang.Boolean isSelfChange)
Specifies whether the password update behavior request control should
override the server's automatic classification of the password update as a
self change or an administrative reset, and if so, what the overridden
value should be.
|
void |
setMustChangePassword(java.lang.Boolean mustChangePassword)
Specifies whether the password update behavior request control should
override the server's normal behavior with regard to requiring a password
change, and if so, what that behavior should be.
|
void |
setPasswordStorageScheme(java.lang.String passwordStorageScheme)
Specifies whether the password update behavior request control should
override the server's normal behavior with regard to selecting the password
storage scheme to use to encode new password values, and if so, which
password storage scheme should be used.
|
void |
setSkipPasswordValidation(java.lang.Boolean skipPasswordValidation)
Specifies whether the password update behavior request control should
override the server's normal behavior with regard to invoking password
validators for any new passwords included in the password update, and if
so, what the overridden behavior should be.
|
java.lang.String |
toString()
Retrieves a string representation of this password update behavior request
control properties object.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this password update behavior request
control properties object to the provided buffer.
|
public PasswordUpdateBehaviorRequestControlProperties()
public PasswordUpdateBehaviorRequestControlProperties(@NotNull PasswordUpdateBehaviorRequestControl control)
control
- The control to use to initialize this properties object.@Nullable public java.lang.Boolean getIsSelfChange()
Boolean.TRUE
if the server should treat the password
update as a self change, Boolean.FALSE
if the server
should treat the password update as an administrative reset, or
null
if the server should automatically determine whether
the password update is a self change or an administrative reset.public void setIsSelfChange(@Nullable java.lang.Boolean isSelfChange)
Boolean.TRUE
, then the server will
consider the password update to be a self change even if it would have
otherwise been considered an administrative reset, and if this method is
called with a value of Boolean.FALSE
, then the server will consider
the password update to be an administrative reset even if it would have
otherwise been considered a self change.
isSelfChange
- Specifies whether the control should override the
server's automatic classification of the password
update as a self change or an administrative reset.
If this is Boolean.TRUE
, then it indicates
that the server should treat the password update as a
self change. If this is Boolean.FALSE
, then
it indicates that the server should treat the
password update as an administrative reset. If this
is null
, it indicates that the server should
automatically determine whether the password change
is a self change or an administrative reset.@Nullable public java.lang.Boolean getAllowPreEncodedPassword()
allow-pre-encoded-passwords
configuration
property for the target user's password policy, and if so, what the
overridden value should be.Boolean.TRUE
if the server should accept a pre-encoded
password in the password update even if the server's password
policy configuration would normally not permit this,
Boolean.FALSE
if the server should reject a pre-encoded
password in the password update even if the server's password
policy configuration would normally accept it, or null
if
the password policy configuration should be used to determine
whether to accept pre-encoded passwords.public void setAllowPreEncodedPassword(@Nullable java.lang.Boolean allowPreEncodedPassword)
allow-pre-encoded-passwords
configuration
property for the target user's password policy, and if so, what the
overridden value should be.
allowPreEncodedPassword
- Specifies whether the password update
behavior request control should override
the value of the
allow-pre-encoded-passwords
configuration property for the target
user's password policy, and if so, what
the overridden value should be. If this
is Boolean.TRUE
, then the server
will permit a pre-encoded password, even
if it would normally reject them. If this
is Boolean.FALSE
, then the server
will reject a pre-encoded password, even
if it would normally accept it. If this
is null
, then the server will use
the password policy configuration to
determine whether to accept a pre-encoded
password.@Nullable public java.lang.Boolean getSkipPasswordValidation()
Boolean.TRUE
if the server should skip invoking the
password validators configured in the target user's password
policy validators for any new passwords included in the password
update even if the server would normally perform password
validation, Boolean.FALSE
if the server should invoke the
password validators even if it would normally skip them, or
null
if the password policy configuration should be used
to determine whether to skip password validation.public void setSkipPasswordValidation(@Nullable java.lang.Boolean skipPasswordValidation)
skipPasswordValidation
- Specifies whether the password update
behavior request control should override
the server's normal behavior with regard to
invoking password validators for any new
passwords included in the password update,
and if so, what the overridden behavior
should be. If this is
Boolean.TRUE
, then the server will
skip new password validation even if it
would normally perform it. If this is
Boolean.FALSE
, then the server will
perform new password validation even if it
would normally skip it. If this is
null
, then the server will use the
password policy configuration to determine
whether to perform new password validation.@Nullable public java.lang.Boolean getIgnorePasswordHistory()
Boolean.TRUE
if the server should not check to see whether
any new password matches the current password or is in the user's
password history even if it would normally perform that check,
Boolean.FALSE
if the server should check to see whether
any new password matches the current or previous password even if
it would normally not perform such a check, or null
if the
password policy configuration should be used to determine whether
to ignore the password history.public void setIgnorePasswordHistory(@Nullable java.lang.Boolean ignorePasswordHistory)
ignorePasswordHistory
- Specifies whether the password update
behavior request control should override the
server's normal behavior with regard to
checking the password history for any new
passwords included in the password update,
and if so, what the overridden behavior
should be. If this is Boolean.TRUE
,
then the server will skip password history
validation even if it would have normally
performed it. If this is
Boolean.FALSE
, then the server will
perform password history validation even if
it would have normally skipped it. If this
is null
, then the server will use
the password policy configuration to
determine whether to perform password
history validation.@Nullable public java.lang.Boolean getIgnoreMinimumPasswordAge()
Boolean.TRUE
if the server should accept the password
change even if it has been less than the configured minimum
password age since the password was last changed,
Boolean.FALSE
if the server should reject the password
change if it has been less than teh configured minimum password
age, or null
if the password policy configuration should
be used to determine the appropriate behavior.public void setIgnoreMinimumPasswordAge(@Nullable java.lang.Boolean ignoreMinimumPasswordAge)
Boolean.TRUE
, then the configured minimum password
age will be ignored even for self changes. With this value set to
Boolean.FALSE
, then the configured minimum password age will be
enforced even for administrative resets. In any case, this will only be
used if the target user's password policy is configured with a nonzero
minimum password age.ignoreMinimumPasswordAge
- Specifies whether the password update
behavior request control should override
the server's normal behavior with regard
to checking the minimum password age, and
if so, what the overridden behavior
should be. If this is
Boolean.TRUE
, then the minimum
password age will not be enforced, even
for self password changes. If this is
Boolean.FALSE
, then the minimum
password age will be enforced, even for
administrative resets. If this is
null
, then the server's default
behavior will be used so that the minimum
password age will be enforced for self
changes but not for administrative
resets.@Nullable public java.lang.String getPasswordStorageScheme()
null
if the target
user's password policy configuration should determine the
appropriate schemes for encoding new passwords.public void setPasswordStorageScheme(@Nullable java.lang.String passwordStorageScheme)
null
password storage scheme name is provided, then it
must be the prefix used in front of passwords encoded with that scheme,
optionally including or omitting the curly braces. The specified scheme
must be enabled for use in the server but does not otherwise need to be
associated with the target user's password policy.passwordStorageScheme
- The name of the password storage scheme that
should be used to encode any new password
values. It may optionally be enclosed in
curly braces. It may be null
if the
password policy configuration should be used
to determine which password storage schemes
should be used to encode new passwords.@Nullable public java.lang.Boolean getMustChangePassword()
Boolean.TRUE
if the user will be required to change their
password before being allowed to perform any other operation,
Boolean.FALSE
if the user will not be required to change
their password before being allowed to perform any other
operation, or null
if the password policy configuration
should be used to control this behavior.public void setMustChangePassword(@Nullable java.lang.Boolean mustChangePassword)
force-change-on-add
or force-change-on-reset
set to
true
. If both of those properties are set to false
, then
this method will have no effect.
force-change-on-reset
is true
, then the server
will put the user's account into a "must change password" state after an
administrative password reset, but not after a self change. If this
method is called with a value of Boolean.TRUE
, then the "must
change password" flag will be set, even if the password update is a self
change. It this method is called with a value of Boolean.FALSE
,
then the "must change password" flag will not be set even if the password
update is an administrative change. If this method is called with a value
of null
, then the server's normal logic will be used to determine
whether to set the "must change password" flag.mustChangePassword
- Specifies whether the password update behavior
request control should override the server's
normal behavior with regard to requiring a
password change, and if so, what that behavior
should be. If this is Boolean.TRUE
,
then the user entry will be required to change
their password after their next login even if
this is a self change. If this is
Boolean.FALSE
, then the user will not
be required to change their password after the
next login even if this is an administrative
reset. If this is null
, then the
server's normal logic will be used to make the
determination.@NotNull public java.lang.String toString()
toString
in class java.lang.Object