Enum PasswordPolicyWarningType
java.lang.Object
java.lang.Enum<PasswordPolicyWarningType>
com.unboundid.ldap.sdk.unboundidds.controls.PasswordPolicyWarningType
- All Implemented Interfaces:
Serializable,Comparable<PasswordPolicyWarningType>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum PasswordPolicyWarningType
extends Enum<PasswordPolicyWarningType>
This enum defines a set of warning 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 warning type used to indicate that the user's password is expired but that the user may have grace logins remaining, or that a grace login was used in the associated bind.The warning type used to indicate that the user's password will expire in the near future and provide the length of time until it does expire. -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicyWarningTypeRetrieves the password policy warning type with the specified name.getName()Retrieves the human-readable name for this password policy warning type.toString()Retrieves a string representation for this password policy warning type.static PasswordPolicyWarningTypeReturns the enum constant of this type with the specified name.static PasswordPolicyWarningType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TIME_BEFORE_EXPIRATION
The warning type used to indicate that the user's password will expire in the near future and provide the length of time until it does expire. -
GRACE_LOGINS_REMAINING
The warning type used to indicate that the user's password is expired but that the user may have grace logins remaining, or that a grace login was used in the associated bind.
-
-
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 warning type.- Returns:
- The human-readable name for this password policy warning type.
-
forName
Retrieves the password policy warning type with the specified name.- Parameters:
name- The name of the password policy warning type to retrieve. It must not benull.- Returns:
- The requested password policy warning type, or
nullif no such type is defined.
-
toString
Retrieves a string representation for this password policy warning type.- Overrides:
toStringin classEnum<PasswordPolicyWarningType>- Returns:
- A string representation for this password policy warning type.
-