Enum PasswordPolicyErrorType
java.lang.Object
java.lang.Enum<PasswordPolicyErrorType>
com.unboundid.ldap.sdk.unboundidds.controls.PasswordPolicyErrorType
- All Implemented Interfaces:
Serializable,Comparable<PasswordPolicyErrorType>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum PasswordPolicyErrorType
extends Enum<PasswordPolicyErrorType>
This enum defines a set of error types that may be included in the password
policy response control as defined in draft-behera-ldap-password-policy.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe error type that indicates the user's account is locked or disabled.The error type that indicates the user's password must be changed before any other operation will be allowed.The error type that indicates the proposed password is too weak to be acceptable.The error type that indicates the user must provide the current password when attempting to set a new one.The error type that indicates the user's password is expired.The error type that indicates the proposed password is already in the password history.The error type that indicates that user password changes aren't allowed.The error type that indicates the proposed password is too short.The error type that indicates the user's password cannot be changed because it has not been long enough since it was last changed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicyErrorTypeRetrieves the password policy error type with the specified name.getName()Retrieves the human-readable name for this password policy error type.intintValue()Retrieves the integer value for this password policy error type.toString()Retrieves a string representation for this password policy error type.static PasswordPolicyErrorTypevalueOf(int intValue) Retrieves the password policy error type with the specified int value.static PasswordPolicyErrorTypeReturns the enum constant of this type with the specified name.static PasswordPolicyErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PASSWORD_EXPIRED
The error type that indicates the user's password is expired. -
ACCOUNT_LOCKED
The error type that indicates the user's account is locked or disabled. -
CHANGE_AFTER_RESET
The error type that indicates the user's password must be changed before any other operation will be allowed. -
PASSWORD_MOD_NOT_ALLOWED
The error type that indicates that user password changes aren't allowed. -
MUST_SUPPLY_OLD_PASSWORD
The error type that indicates the user must provide the current password when attempting to set a new one. -
INSUFFICIENT_PASSWORD_QUALITY
The error type that indicates the proposed password is too weak to be acceptable. -
PASSWORD_TOO_SHORT
The error type that indicates the proposed password is too short. -
PASSWORD_TOO_YOUNG
The error type that indicates the user's password cannot be changed because it has not been long enough since it was last changed. -
PASSWORD_IN_HISTORY
The error type that indicates the proposed password is already in the password history.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Retrieves the human-readable name for this password policy error type.- Returns:
- The human-readable name for this password policy error type.
-
intValue
Retrieves the integer value for this password policy error type.- Returns:
- The integer value for this password policy error type.
-
valueOf
Retrieves the password policy error type with the specified int value.- Parameters:
intValue- The numeric value associated with the error type.- Returns:
- The associated error type, or
nullif there is no password policy error type with the specified set of values.
-
forName
Retrieves the password policy error type with the specified name.- Parameters:
name- The name of the password policy error type to retrieve. It must not benull.- Returns:
- The requested password policy error type, or
nullif no such type is defined.
-
toString
Retrieves a string representation for this password policy error type.- Overrides:
toStringin classEnum<PasswordPolicyErrorType>- Returns:
- A string representation for this password policy error type.
-