Class PasswordPolicyStateJSON
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.PasswordPolicyStateJSON
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class PasswordPolicyStateJSON
extends Object
implements Serializable
This class provides support for reading and decoding the value of the
ds-pwp-state-json virtual attribute, which holds information about a
user's password policy state.
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the operational attribute that holds a JSON representation of a user's password policy state. -
Constructor Summary
ConstructorsConstructorDescriptionPasswordPolicyStateJSON(JSONObject passwordPolicyStateObject) Creates a new instance of this object from the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicyStateJSONAttempts to retrieve and decode the password policy state information from the provided user entry.static PasswordPolicyStateJSONget(LDAPInterface connection, String userDN) Attempts to retrieve and decode the password policy state information for the specified user.Retrieves the time that the user's account became (or will become) active.Retrieves the time that the user's account will (or did) expire.Retrieves the value of a flag that indicates whether the user's account has been administratively disabled.Retrieves the value of a flag that indicates whether the user's account is expired.Retrieves the value of a flag that indicates whether the user account is currently locked as a result of too many failed authentication attempts.Retrieves the value of a flag that indicates whether the user's account is currently locked because it has been too long since they last authenticated to the server.Retrieves the value of a flag that indicates whether the user's account is not yet active because it has an activation time that is in the future.Retrieves the value of a flag that indicates whether the user's account is locked because they failed to choose a new password in a timely manner after an administrative reset.Retrieves the value of a flag that indicates whether the user's account is in a state that the server considers usable.Retrieves the value of a flag that indicates whether the user account is currently locked because it contains a password that does not satisfy all of the configured password validators.Retrieves a list of information about any error conditions that may affect usability of the user's account.Retrieves a list of information about any notices related to the usability of the user's account.Retrieves a list of information about any warning conditions that may soon affect usability of the user's account.Retrieves the list of quality requirements that must be satisfied for passwords included in new entries that are added using the same password policy as the associated entry.Retrieves the list of quality requirements that must be satisfied when an administrator attempts to change the user's password.Retrieves a list of the outstanding authentication failure times for the user account.Retrieves a list of the names of the OTP delivery mechanisms that the user can use to receive one-time passwords, password reset tokens, and single-use tokens.Retrieves a list of the names of the SASL mechanisms that the user can use to authenticate.Retrieves the list of quality requirements that must be satisfied when the associated user authenticates in a manner that makes the clear-text password available to the server.Retrieves the name of the action that the server should take if the password provided during a bind operation fails to satisfy one or more password validators.Retrieves the current number of failed authentication attempts for the user account.Retrieves the number of passwords currently held in the user's password history.Retrieves the value of a flag that indicates whether the server will allow a user's password to expire even if they have not yet received any warnings about an upcoming expiration.Retrieves the number of consecutive failed authentication attempts that are required to lock the user's account.Retrieves the length of time in seconds that a user's account will be locked after too many failed authentication attempts.Retrieves the time that the user's failure-locked account will be automatically unlocked.Retrieves the time that the user's account was locked as a result of too many failed authentication attempts.Retrieves the value of a flag that indicates whether the password policy that governs the user is configured to require users to choose a new password the first time they authenticate after their account is created.Retrieves the value of a flag that indicates whether the password policy that governs the user is configured to require users to choose a new password the first time they authenticate after their password has been reset by an administrator.Retrieves a list of the times that the user has used a grace login to authenticate.Retrieves the value of a flag that indicates whether the user account has at least one registered YubiKey OTP device that can be used to authenticate via the UNBOUNDID-YUBIKEY-OTP SASL mechanism.Retrieves the value of a flag that indicates whether the user account has a retired former password that may still be used to authenticate.Retrieves the value of a flag that indicates whether the user's account contains at least one static password.Retrieves the value of a flag that indicates whether the user account has at least one TOTP shared secret that can be used to authenticate with time-based one-time passwords via the UNBOUNDID-TOTP SASL mechanism.Retrieves the maximum length of time in seconds that can elapse between successful authentications before the user's account is locked.Retrieves the time that the user's account will be (or was) locked for allowing too much time to elapse between successful authentications.Indicates whether the user is currently prohibited from changing their password because not enough time has elapsed since they last changed their password.Retrieves the time that the server last invoked password validators during a bind operation for the user.Retrieves the IP address of the client from which the user last successfully authenticated.Retrieves the time that the user last successfully authenticated to the server.Retrieves the maximum number of grace login attempts that the user will have to allow them to change an expired password.Retrieves the maximum length of time in seconds after a password change that the user is allowed to keep using that password.Retrieves the maximum number of passwords that the server will maintain in the user's password history.Retrieves the maximum length of time in seconds that the server will maintain passwords in the user's password history.Retrieves the maximum length of time in seconds that a user has to change their password after an administrative reset before their account will be locked.Retrieves the maximum number of recent failed login attempts the server should maintain for a user.Retrieves the maximum age in seconds of recent failed login attempts the server should maintain for a user.Retrieves the maximum number of recent successful login attempts the server should maintain for a user.Retrieves the maximum age in seconds of recent successful login attempts the server should maintain for a user.Retrieves the minimum length of time in seconds that should pass between invocations of password validators during a bind operation for the user.Retrieves the earliest time that the user will be permitted to change their password as a result of the minimum password age.Retrieves the minimum length of time in seconds that must elapse after a user changes their password before they will be permitted to change it again.Retrieves the value of a flag that indicates whether the user must change their password before they will be allowed to perform any other operations in the server.Retrieves a map with information about the reasons that a password may not be encoded with the current settings for the associated password storage scheme.Retrieves the time that the user's password was last changed.Retrieves the time that the user's password will (or did) expire.Retrieves the length of time in seconds before an upcoming password expiration that the user will be eligible to start receving warnings about that expiration.Retrieves the value of a flag that indicates whether the user has received at least one warning about an upcoming password expiration.Retrieves the time that the user will be eligible to receive (or the time that the user first received) a warning about an upcoming password expiration.Retrieves the value of a flag that indicates whether the user's password is expired.Retrieves the DN of the entry that defines the password policy that governs the associated user.Retrieves the JSON object that contains the encoded password policy state information.Retrieves the recent login history for the user.Retrieves the remaining number of failed authentication attempts required to lock the user account.Retrieves the remaining number of grace logins for the user.Retrieves the value of a flag that indicates whether the user will be required to authenticate in a secure manner that does not reveal their credentials to an observer.Retrieves the value of a flag that indicates whether the user will be required to change their password in a secure manner that does not reveal their credentials to an observer.Retrieves the time that the user's account will be (or was) locked after failing to choose a new password in a timely manner after an administrative reset.Retrieves the time that the user's retired password will expire and can no longer be used to authenticate.Retrieves the length of time in seconds remaining until the user's failure-locked account will be automatically unlocked.Retrieves the length of time in seconds remaining until the user will be permitted to change their password as a result of the minimum password age.Retrieves the length of time in seconds since the user's account became active.Retrieves the length of time in seconds since the user's account expired.Retrieves the length of time in seconds since the user's account was locked for allowing too much time to elapse between successful authentications.Retrieves the length of time in seconds that has passed since the server last invoked password validators during a bind operation for the user.Retrieves the length of time in seconds since the user last successfully authenticated to the server.Retrieves the length of time in seconds that has passed since the user's password was last changed.Retrieves the length of time in seconds since the user's password expired.Retrieves the length of time in seconds since the user received the first warning about an upcoming password expiration.Retrieves the length of time in seconds until the user's account will become active.Retrieves the length of time in seconds until the user's account will expire.Retrieves the length of time in seconds until the user's account will be locked for allowing too much time to elapse between successful authentications.Retrieves the length of time in seconds until the user's password will expire.Retrieves the length of time in seconds until the user will be eligible to receive a warning about an upcoming password expiration.Retrieves the length of time in seconds until the user's account will be locked for failing to choose a new password after an administrative reset.Retrieves the length of time in seconds remaining until the user's retired password expires and can no longer be used to authenticate.Retrieves the list of quality requirements that must be satisfied when the associated user attempts to change their own password.Retrieves the number of grace logins that the user has currently used.Indicates whether the user has a static password that is encoded with settings that don't match the current configuration for the associated password storage scheme.toString()Retrieves a string representation of the password policy state information.
-
Field Details
-
PASSWORD_POLICY_STATE_JSON_ATTRIBUTE
The name of the operational attribute that holds a JSON representation of a user's password policy state.- See Also:
-
-
Constructor Details
-
PasswordPolicyStateJSON
Creates a new instance of this object from the provided JSON object.- Parameters:
passwordPolicyStateObject- The JSON object containing the encoded password policy state.
-
-
Method Details
-
get
@Nullable public static PasswordPolicyStateJSON get(@NotNull LDAPInterface connection, @NotNull String userDN) throws LDAPException Attempts to retrieve and decode the password policy state information for the specified user.- Parameters:
connection- The connection to use to communicate with the server. It must not benull, and it must be established and authenticated as an account with permission to access the target user's password policy state information.userDN- The DN of the user for whom to retrieve the password policy state. It must not benull.- Returns:
- The password policy state information for the specified user, or
nullbecause no password policy state information is available for the user. - Throws:
LDAPException- If a problem is encountered while trying to retrieve the user's entry or decode the password policy state JSON object.
-
get
Attempts to retrieve and decode the password policy state information from the provided user entry.- Parameters:
userEntry- The entry for the user for whom to obtain the password policy state information. It must not benull.- Returns:
- The password policy state information from the provided user
entry, or
nullif no password policy state information is available for the user. - Throws:
LDAPException- If a problem is encountered while trying to decode the password policy state JSON object.
-
getPasswordPolicyStateJSONObject
Retrieves the JSON object that contains the encoded password policy state information.- Returns:
- The JSON object that contains the encoded password policy state information.
-
getPasswordPolicyDN
Retrieves the DN of the entry that defines the password policy that governs the associated user.- Returns:
- The DN of the entry that defines hte password policy that governs
the associated user, or
nullif this was not included in the password policy state JSON object.
-
getAccountIsUsable
Retrieves the value of a flag that indicates whether the user's account is in a state that the server considers usable.- Returns:
Boolean.TRUEif the account is in a usable state,Boolean.FALSEif the account is not in a usable state, ornullif this flag was not included in the password policy state JSON object.
-
getAccountUsabilityErrors
Retrieves a list of information about any error conditions that may affect usability of the user's account.- Returns:
- A list of information about any error conditions that may affect the usability of the user's account. The returned list may be empty if there are no account usability errors or if this was not included in the password policy state JSON object.
-
getAccountUsabilityWarnings
Retrieves a list of information about any warning conditions that may soon affect usability of the user's account.- Returns:
- A list of information about any warning conditions that may soon affect the usability of the user's account. The returned list may be empty if there are no account usability warnings or if this was not included in the password policy state JSON object.
-
getAccountUsabilityNotices
Retrieves a list of information about any notices related to the usability of the user's account.- Returns:
- A list of information about any notices related to the usability of the user's account. The returned list may be empty if there are no account usability notices or if this was not included in the password policy state JSON object.
-
getHasStaticPassword
Retrieves the value of a flag that indicates whether the user's account contains at least one static password.- Returns:
Boolean.TRUEif the account has at least one static password,Boolean.FALSEif the account does not have any static password, ornullif this flag was not included in the password policy state JSON object.
-
getPasswordChangedTime
Retrieves the time that the user's password was last changed.- Returns:
- The time that the user's password was last changed, or
nullif this was not included in the password policy state JSON object.
-
getSecondsSincePasswordChange
Retrieves the length of time in seconds that has passed since the user's password was last changed.- Returns:
- The length of time in seconds that has passed since the user's
password was last changed, or
nullif this was not included in the password policy state JSON object.
-
getAccountIsDisabled
Retrieves the value of a flag that indicates whether the user's account has been administratively disabled.- Returns:
Boolean.TRUEif the account has been administratively disabled,Boolean.FALSEif the account has not been administratively disabled, ornullif this flag was not included in the password policy state JSON object.
-
getAccountIsNotYetActive
Retrieves the value of a flag that indicates whether the user's account is not yet active because it has an activation time that is in the future.- Returns:
Boolean.TRUEif the account is not yet active,Boolean.FALSEif the account either does not have an activation time or if that time has already passed, ornullif this flag was not included in the password policy state JSON object.
-
getAccountActivationTime
Retrieves the time that the user's account became (or will become) active.- Returns:
- The time that the user's account became (or will become) active,
or
nullif this was not included in the password policy state JSON object.
-
getSecondsUntilAccountActivation
Retrieves the length of time in seconds until the user's account will become active.- Returns:
- The length of time in seconds until the user's account will become
active, or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have an activation time in the future).
-
getSecondsSinceAccountActivation
Retrieves the length of time in seconds since the user's account became active.- Returns:
- The length of time in seconds since the user's account became
active, or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have an activation time in the past).
-
getAccountIsExpired
Retrieves the value of a flag that indicates whether the user's account is expired.- Returns:
Boolean.TRUEif the account is expired,Boolean.FALSEif the account is not expired, ornullif this flag was not included in the password policy state JSON object.
-
getAccountExpirationTime
Retrieves the time that the user's account will (or did) expire.- Returns:
- The time that the user's account will (or did) expire, or
nullif this was not included in the password policy state JSON object.
-
getSecondsUntilAccountExpiration
Retrieves the length of time in seconds until the user's account will expire.- Returns:
- The length of time in seconds until the user's account will
expire, or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have an expiration time in the future).
-
getSecondsSinceAccountExpiration
Retrieves the length of time in seconds since the user's account expired.- Returns:
- The length of time in seconds since the user's account expired,
or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have an expiration time in the past).
-
getPasswordIsExpired
Retrieves the value of a flag that indicates whether the user's password is expired.- Returns:
Boolean.TRUEif the password is expired,Boolean.FALSEif the password is not expired, ornullif this flag was not included in the password policy state JSON object.
-
getMaximumPasswordAgeSeconds
Retrieves the maximum length of time in seconds after a password change that the user is allowed to keep using that password.- Returns:
- The maximum length of time in seconds after a password change that
the user is allowed to keep using that password, or
nullif this flag was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getPasswordExpirationTime
Retrieves the time that the user's password will (or did) expire.- Returns:
- The time that the user's password will (or did) expire, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getSecondsUntilPasswordExpiration
Retrieves the length of time in seconds until the user's password will expire.- Returns:
- The length of time in seconds until the user's password will
expire, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user, or because the user's password is already expired).
-
getSecondsSincePasswordExpiration
Retrieves the length of time in seconds since the user's password expired.- Returns:
- The length of time in seconds since the user's password expired,
or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user, or because the user's password is not expired).
-
getPasswordExpirationWarningIntervalSeconds
Retrieves the length of time in seconds before an upcoming password expiration that the user will be eligible to start receving warnings about that expiration.- Returns:
- The length of time in seconds before an upcoming password
expiration that the user will be eligible to start receiving
messages about that expiration, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getExpirePasswordsWithoutWarning
Retrieves the value of a flag that indicates whether the server will allow a user's password to expire even if they have not yet received any warnings about an upcoming expiration.- Returns:
Boolean.TRUEif the server will allow a user's password to expire even if they have not been warned about an upcoming expiration,Boolean.FALSEif the server will ensure that the user receives at least one warning before expiring the password, ornullif this flag was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getPasswordExpirationWarningIssued
Retrieves the value of a flag that indicates whether the user has received at least one warning about an upcoming password expiration.- Returns:
Boolean.TRUEif the user has received at least one warning about an upcoming password expiration,Boolean.FALSEif the user has not been warned about an upcoming password expiration, ornullif this flag was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getPasswordExpirationWarningTime
Retrieves the time that the user will be eligible to receive (or the time that the user first received) a warning about an upcoming password expiration.- Returns:
- The time that the user will be eligible to receive (or the time
that the user first received) a warning about an upcoming password
expiration, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user).
-
getSecondsUntilPasswordExpirationWarning
Retrieves the length of time in seconds until the user will be eligible to receive a warning about an upcoming password expiration.- Returns:
- The length of time in seconds until the user will be eligible to
receive a warning about an upcoming password expiration, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user, or because the user has already been warned about an upcoming expiration).
-
getSecondsSincePasswordExpirationWarning
Retrieves the length of time in seconds since the user received the first warning about an upcoming password expiration.- Returns:
- The length of time in seconds since the user received the first
warning about an upcoming password expiration, or
nullif this was not included in the password policy state JSON object (e.g., because password expiration is not configured in the password policy that governs the user, or because the user has not yet been warned about an upcoming expiration).
-
getAccountIsFailureLocked
Retrieves the value of a flag that indicates whether the user account is currently locked as a result of too many failed authentication attempts.- Returns:
Boolean.TRUEif the user account is locked as a result of too many failed authentication attempts,Boolean.FALSEif the user account is not locked because of too many failed authentication attempts, ornullif this flag was not included in the password policy state JSON object.
-
getFailureLockoutCount
Retrieves the number of consecutive failed authentication attempts that are required to lock the user's account.- Returns:
- The number of consecutive failed authentication attempts that are
required to lock the user's account, or
nullif this was not included in the password policy state JSON object (e.g., because account lockout is not configured in the password policy that governs the user).
-
getCurrentAuthenticationFailureCount
Retrieves the current number of failed authentication attempts for the user account.- Returns:
- The current number of failed authentication attempts for the user
account, or
nullif this was not included in the password policy state JSON object (e.g., because account lockout is not configured in the password policy that governs the user).
-
getRemainingAuthenticationFailureCount
Retrieves the remaining number of failed authentication attempts required to lock the user account.- Returns:
- The remaining number of failed authentication attempts required to
lock the user account, or
nullif this was not included in the password policy state JSON object (e.g., because account lockout is not configured in the password policy that governs the user).
-
getAuthenticationFailureTimes
Retrieves a list of the outstanding authentication failure times for the user account.- Returns:
- A list of the outstanding authentication failure times for the user account, or an empty list if there are no outstanding authentication failures or if this was not included in the password policy state JSON object (e.g., because account lockout is not configured in the password policy that governs the user).
-
getFailureLockoutTime
Retrieves the time that the user's account was locked as a result of too many failed authentication attempts.- Returns:
- The time that the user's account was locked as a result of too
many failed authentication attempts, or
nullif this was not included in the password policy state JSON object (e.g., because the user's account is not failure locked).
-
getFailureLockoutDurationSeconds
Retrieves the length of time in seconds that a user's account will be locked after too many failed authentication attempts.- Returns:
- The length of time in seconds that a user's account will be
locked after too many failed authentication attempts, or
nullif this was not included in the password policy state JSON object (e.g., because account lockout is not configured in the password policy that governs the user, or because account lockout is not temporary).
-
getFailureLockoutExpirationTime
Retrieves the time that the user's failure-locked account will be automatically unlocked.- Returns:
- The time that the user's failure-locked account will be
automatically unlocked, or
nullif this was not included in the password policy state JSON object (e.g., because the user's account is not failure locked, or because the lockout is not temporary).
-
getSecondsRemainingInFailureLockout
Retrieves the length of time in seconds remaining until the user's failure-locked account will be automatically unlocked.- Returns:
- The length of time in seconds remaining until the user's
failure-locked account will be automatically unlocked, or
nullif this was not included in the password policy state JSON object (e.g., because the user's account is not failure locked, or because the lockout is not temporary).
-
getLastLoginTime
Retrieves the time that the user last successfully authenticated to the server.- Returns:
- The time that the user last successfully authenticated to the
server, or
nullif this was not included in the password policy state JSON object (e.g., because last login time tracking is not configured in the password policy that governs the user).
-
getSecondsSinceLastLogin
Retrieves the length of time in seconds since the user last successfully authenticated to the server.- Returns:
- The length of time in seconds since the user last successfully
authenticated to the server, or
nullif this was not included in the password policy state JSON object (e.g., because last login time tracking is not configured in the password policy that governs the user).
-
getLastLoginIPAddress
Retrieves the IP address of the client from which the user last successfully authenticated.- Returns:
- The IP address of the client from which the user last successfully
authenticated, or
nullif this was not included in the password policy state JSON object (e.g., because last login IP address tracking is not configured in the password policy that governs the user).
-
getAccountIsIdleLocked
Retrieves the value of a flag that indicates whether the user's account is currently locked because it has been too long since they last authenticated to the server.- Returns:
Boolean.TRUEif the user's account is currently idle-locked,Boolean.FALSEif the user's account is not currently idle-locked, ornullif this flag was not included in the password policy state JSON object.
-
getIdleLockoutIntervalSeconds
Retrieves the maximum length of time in seconds that can elapse between successful authentications before the user's account is locked.- Returns:
- The maximum length of time in seconds that can elapse between
successful authentications before the user's account is locked, or
nullif this was not included in the password policy state JSON object (e.g., because idle lockout is not configured in the password policy that governs the user).
-
getIdleLockoutTime
Retrieves the time that the user's account will be (or was) locked for allowing too much time to elapse between successful authentications.- Returns:
- The time that the user's account will be (or was) locked for
allowing too much time to elapse between successful
authentications, or
nullif this was not included in the password policy state JSON object (e.g., because idle lockout is not configured in the password policy that governs the user).
-
getSecondsUntilIdleLockout
Retrieves the length of time in seconds until the user's account will be locked for allowing too much time to elapse between successful authentications.- Returns:
- The length of time in seconds until the user's account will be
locked for allowing too much time to elapse between successful
authentication, or
nullif this was not included in the password policy state JSON object (e.g., because idle lockout is not configured in the password policy that governs the user, or because the user's account is already idle-locked).
-
getSecondsSinceIdleLockout
Retrieves the length of time in seconds since the user's account was locked for allowing too much time to elapse between successful authentications.- Returns:
- The length of time in seconds since the user's account was locked
for allowing too much time to elapse between successful
authentication, or
nullif this was not included in the password policy state JSON object (e.g., because idle lockout is not configured in the password policy that governs the user, or because the user's account is not idle-locked).
-
getMustChangePassword
Retrieves the value of a flag that indicates whether the user must change their password before they will be allowed to perform any other operations in the server.- Returns:
Boolean.TRUEif the user must change their password before they will be allowed to perform any other operations in the server,Boolean.FALSEif the user is not required to change their password, ornullif this flag was not included in the password policy state JSON object.
-
getAccountIsResetLocked
Retrieves the value of a flag that indicates whether the user's account is locked because they failed to choose a new password in a timely manner after an administrative reset.- Returns:
Boolean.TRUEif the user's account is currently reset-locked,Boolean.FALSEif the user's account is not reset-locked, ornullif this flag was not included in the password policy state JSON object.
-
getForceChangeOnAdd
Retrieves the value of a flag that indicates whether the password policy that governs the user is configured to require users to choose a new password the first time they authenticate after their account is created.- Returns:
Boolean.TRUEif users are required to choose a new password the first time they authenticate after their account is created,Boolean.FALSEif users are not required to choose a new password after their account is created, ornullif this flag was not included in the password policy state JSON object.
-
getForceChangeOnReset
Retrieves the value of a flag that indicates whether the password policy that governs the user is configured to require users to choose a new password the first time they authenticate after their password has been reset by an administrator.- Returns:
Boolean.TRUEif users are required to choose a new password the first time they authenticate after their password is reset,Boolean.FALSEif users are not required to choose a new password after their password is reset, ornullif this flag was not included in the password policy state JSON object.
-
getMaximumPasswordResetAgeSeconds
Retrieves the maximum length of time in seconds that a user has to change their password after an administrative reset before their account will be locked.- Returns:
- The maximum length of time in seconds that a user has to change
their password after an administrative reset before their account
will be locked, or
nullif this was not included in the password policy state JSON object (e.g., because reset lockout is not configured in the password policy that governs the user).
-
getResetLockoutTime
Retrieves the time that the user's account will be (or was) locked after failing to choose a new password in a timely manner after an administrative reset.- Returns:
- The time that the user's account will be (or wa) locked after
failing to choose a new password in a timely manner after an
administrative reset, or
nullif this was not included in the password policy state JSON object (e.g., because reset lockout is not configured in the password policy that governs the user, or because the user's password has not been reset).
-
getSecondsUntilResetLockout
Retrieves the length of time in seconds until the user's account will be locked for failing to choose a new password after an administrative reset.- Returns:
- The length of time in seconds until the user's account will be
locked for failing to choose a new password after an
administrative reset, or
nullif this was not included in the password policy state JSON object (e.g., because reset lockout is not configured in the password policy that governs the user, because the user's password has not been reset, or because the user's account is already reset-locked).
-
getMaximumPasswordHistoryCount
Retrieves the maximum number of passwords that the server will maintain in the user's password history.- Returns:
- The maximum number of passwords that the server will maintain in
the user's password history, or
nullif this was not included in the password policy state JSON object (e.g., because the password policy that governs the user is not configured to maintain a password history, or because it maintains a password history based on a duration rather than a count).
-
getMaximumPasswordHistoryDurationSeconds
Retrieves the maximum length of time in seconds that the server will maintain passwords in the user's password history.- Returns:
- The maximum length of time in seconds that the server will
maintain passwords in the user's password history, or
nullif this was not included in the password policy state JSON object (e.g., because the password policy that governs the user is not configured to maintain a password history, or because it maintains a password history based on a count rather than a duration).
-
getCurrentPasswordHistoryCount
Retrieves the number of passwords currently held in the user's password history.- Returns:
- The number of passwords currently held in the user's password
history, or
nullif this was not incldued in the password policy state JSON object (e.g., because the password policy that governs the user is not configured to maintain a password history).
-
getIsWithinMinimumPasswordAge
Indicates whether the user is currently prohibited from changing their password because not enough time has elapsed since they last changed their password.- Returns:
Boolean.TRUEif the user is currently prohibited from changing their password because not enough time has elapsed since they last changed their password,Boolean.FALSEif the user is not prohibited from changing their password because of the minimum password age, ornullif this flag was not included in the password policy state JSON object.
-
getMinimumPasswordAgeSeconds
Retrieves the minimum length of time in seconds that must elapse after a user changes their password before they will be permitted to change it again.- Returns:
- The minimum length of time in seconds that must elapse after a
user changes their password before they will be permitted to
change it again, or
nullif this was not included in the password policy state JSON object (e.g., because no minimum password age is configured in the password policy that governs the user).
-
getMinimumPasswordAgeExpirationTime
Retrieves the earliest time that the user will be permitted to change their password as a result of the minimum password age.- Returns:
- The earliest time that the user will be permitted to change their
password as a result of the minimum password age, or
nullif this was not included in the password policy state JSON object (e.g., because no minimum password age is configured in the password policy that governs the user, or because it has been longer than the minimum age since they last changed their password).
-
getSecondsRemainingInMinimumPasswordAge
Retrieves the length of time in seconds remaining until the user will be permitted to change their password as a result of the minimum password age.- Returns:
- The length of time in seconds remaining until the user will be
permitted to change their password as a result of the minimum
password age, or
nullif this was not included in the password policy state JSON object (e.g., because no minimum password age is configured in the password policy that governs the user, or because it has been longer than the minimum age since they last changed their password).
-
getMaximumGraceLoginCount
Retrieves the maximum number of grace login attempts that the user will have to allow them to change an expired password.- Returns:
- The maximum number of grace login attempts that the user will have
to allow them to change an expired password, or
nullif this was not included in the password policy state JSON object (e.g., if grace logins are not configured in the password policy that governs the user).
-
getUsedGraceLoginCount
Retrieves the number of grace logins that the user has currently used.- Returns:
- The number of grace login attempts that the user has currently
used, or
nullif this was not included in the password policy state JSON object (e.g., if grace logins are not configured in the password policy that governs the user).
-
getRemainingGraceLoginCount
Retrieves the remaining number of grace logins for the user.- Returns:
- The remaining number of grace logins for the user, or
nullif this was not included in the password policy state JSON object (e.g., if grace logins are not configured in the password policy that governs the user).
-
getGraceLoginUseTimes
Retrieves a list of the times that the user has used a grace login to authenticate.- Returns:
- A list of the times that the user has used a grace login to authenticate, or an empty list if the user has not used any grace logins, or if this was not included in the password policy state JSON object (e.g., if grace logins are not configured in the password policy that governs the user).
-
getHasRetiredPassword
Retrieves the value of a flag that indicates whether the user account has a retired former password that may still be used to authenticate.- Returns:
Boolean.TRUEif the user account currently has a valid retired password,Boolean.FALSEif the user account does not have a valid retired password, ornullif this flag was not included in the password policy state JSON object.
-
getRetiredPasswordExpirationTime
Retrieves the time that the user's retired password will expire and can no longer be used to authenticate.- Returns:
- The time that the user's retired password will expire, or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have a retired password).
-
getSecondsUntilRetiredPasswordExpiration
Retrieves the length of time in seconds remaining until the user's retired password expires and can no longer be used to authenticate.- Returns:
- The length of time in seconds remaining until the user's retired
password expires, or
nullif this was not included in the password policy state JSON object (e.g., because the user does not have a retired password).
-
getRequireSecureAuthentication
Retrieves the value of a flag that indicates whether the user will be required to authenticate in a secure manner that does not reveal their credentials to an observer.- Returns:
Boolean.TRUEif the user will be required to authenticate in a secure manner,Boolean.FALSEif the user will not be required to authenticate in a secure manner, ornullif this flag was not included in the password policy state JSON object.
-
getRequireSecurePasswordChanges
Retrieves the value of a flag that indicates whether the user will be required to change their password in a secure manner that does not reveal their credentials to an observer.- Returns:
Boolean.TRUEif the user will be required to change their password in a secure manner,Boolean.FALSEif the user will not be required to change their password in a secure manner, ornullif this flag was not included in the password policy state JSON object.
-
getAvailableSASLMechanisms
Retrieves a list of the names of the SASL mechanisms that the user can use to authenticate.- Returns:
- A list of the names of the SASL mechanisms that the user can use to authenticate, or an empty list if no SASL mechanisms are available to the user or if this was not included in the password policy state JSON object.
-
getAvailableOTPDeliveryMechanisms
Retrieves a list of the names of the OTP delivery mechanisms that the user can use to receive one-time passwords, password reset tokens, and single-use tokens.- Returns:
- A list of the names of the OTP delivery mechanisms that the user can use, or an empty list if no OTP delivery mechanisms are available to the user or if this was not included in the password policy state JSON object.
-
getHasRegisteredYubiKeyOTPDevice
Retrieves the value of a flag that indicates whether the user account has at least one registered YubiKey OTP device that can be used to authenticate via the UNBOUNDID-YUBIKEY-OTP SASL mechanism.- Returns:
Boolean.TRUEif the user account has at least one registered YubiKey OTP device,Boolean.FALSEif the user account does not have any registered YubiKey OTP devices, ornullif this flag was not included in the password policy state JSON object.
-
getAccountIsValidationLocked
Retrieves the value of a flag that indicates whether the user account is currently locked because it contains a password that does not satisfy all of the configured password validators.- Returns:
Boolean.TRUEif the user account is locked because it contains a password that does not satisfy all of the configured password validators,Boolean.FALSEif the account is not validation-locked, ornullif this flag was not included in the password policy state JSON object.
-
getLastBindPasswordValidationTime
Retrieves the time that the server last invoked password validators during a bind operation for the user.- Returns:
- The time that the server last invoked password validators during a
bind operation for the user, or
nullif this was not included in the password policy state JSON object.
-
getSecondsSinceLastBindPasswordValidation
Retrieves the length of time in seconds that has passed since the server last invoked password validators during a bind operation for the user.- Returns:
- The length of time in seconds that has passed since the server
last invoked password validators during a bind operation for the
user, or
nullif this was not included in the password policy state JSON object.
-
getMinimumBindPasswordValidationFrequencySeconds
Retrieves the minimum length of time in seconds that should pass between invocations of password validators during a bind operation for the user.- Returns:
- The minimum length of time in seconds that should pass between
invocations of password validators during a bind operation for
each user, or
nullif this was not included in the password policy state JSON object.
-
getBindPasswordValidationFailureAction
Retrieves the name of the action that the server should take if the password provided during a bind operation fails to satisfy one or more password validators.- Returns:
- The name of the action that the server should take if the password
provided during a bind operation fails to satisfy one or more
password validators, or
nullif this was not included in the password policy state JSON object.
-
getRecentLoginHistory
Retrieves the recent login history for the user.- Returns:
- The recent login history for the user, or
nullif this was not included in the password policy state JSON object. - Throws:
LDAPException- If a problem occurs while trying to parse the recent login history for the user.
-
getMaximumRecentLoginHistorySuccessfulAuthenticationCount
Retrieves the maximum number of recent successful login attempts the server should maintain for a user.- Returns:
- The maximum number of recent successful login attempts the server
should maintain for a user, or
nullif this was not included in the password policy state JSON object.
-
getMaximumRecentLoginHistorySuccessfulAuthenticationDurationSeconds
Retrieves the maximum age in seconds of recent successful login attempts the server should maintain for a user.- Returns:
- The maximum age in seconds of recent successful login attempts the
server should maintain for a user, or
nullif this was not included in the password policy state JSON object.
-
getMaximumRecentLoginHistoryFailedAuthenticationCount
Retrieves the maximum number of recent failed login attempts the server should maintain for a user.- Returns:
- The maximum number of recent failed login attempts the server
should maintain for a user, or
nullif this was not included in the password policy state JSON object.
-
getMaximumRecentLoginHistoryFailedAuthenticationDurationSeconds
Retrieves the maximum age in seconds of recent failed login attempts the server should maintain for a user.- Returns:
- The maximum age in seconds of recent failed login attempts the
server should maintain for a user, or
nullif this was not included in the password policy state JSON object.
-
getAddPasswordQualityRequirements
Retrieves the list of quality requirements that must be satisfied for passwords included in new entries that are added using the same password policy as the associated entry.- Returns:
- The list of password quality requirements that will be enforced for adds using the same password policy as the associated entry, or an empty list if no requirements will be imposed.
-
getSelfChangePasswordQualityRequirements
Retrieves the list of quality requirements that must be satisfied when the associated user attempts to change their own password.- Returns:
- The list of password quality requirements that will be enforced for self password changes, or an empty list if no requirements will be imposed.
-
getAdministrativeResetPasswordQualityRequirements
@NotNull public List<PasswordQualityRequirement> getAdministrativeResetPasswordQualityRequirements()Retrieves the list of quality requirements that must be satisfied when an administrator attempts to change the user's password.- Returns:
- The list of password quality requirements that will be enforced for administrative password resets, or an empty list if no requirements will be imposed.
-
getBindPasswordQualityRequirements
Retrieves the list of quality requirements that must be satisfied when the associated user authenticates in a manner that makes the clear-text password available to the server.- Returns:
- The list of password quality requirements that will be enforced for binds, or an empty list if no requirements will be imposed.
-
hasPasswordEncodedWithNonCurrentSettings
Indicates whether the user has a static password that is encoded with settings that don't match the current configuration for the associated password storage scheme.- Returns:
Boolean.TRUEif the account has a static password that is encoded with non-current settings,Boolean.FALSEif the account does not have a static password that is encoded with non-current settings, ornullif this flag was not included in the password policy state JSON object.
-
getNonCurrentPasswordStorageSchemeSettingsExplanations
Retrieves a map with information about the reasons that a password may not be encoded with the current settings for the associated password storage scheme. The keys of the map will the name of the storage scheme, and the values will be a possibly-empty list of explanations that describe why a password encoded with that scheme is encoded with non-current settings.- Returns:
- A map with information about the reasons that a password may not be encoded with the current settings for the associated password storage scheme, or an empty map if this was not included in the password policy state JSON object.
-
toString
Retrieves a string representation of the password policy state information.
-