Enum PasswordPolicyWarningType
- java.lang.Object
-
- java.lang.Enum<PasswordPolicyWarningType>
-
- org.forgerock.opendj.ldap.controls.PasswordPolicyWarningType
-
- All Implemented Interfaces:
Serializable
,Comparable<PasswordPolicyWarningType>
public enum PasswordPolicyWarningType extends Enum<PasswordPolicyWarningType>
A password policy warning type as defined in draft-behera-ldap-password-policy is used to indicate the current state of a user's password. More specifically, the number of seconds before a password will expire, or the remaining number of times a user will be allowed to authenticate with an expired password.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRACE_LOGINS_REMAINING
Indicates the remaining number of times a user will be allowed to authenticate with an expired password.TIME_BEFORE_EXPIRATION
Indicates the number of seconds before a password will expire.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static PasswordPolicyWarningType
valueOf(String name)
Returns 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 Detail
-
TIME_BEFORE_EXPIRATION
public static final PasswordPolicyWarningType TIME_BEFORE_EXPIRATION
Indicates the number of seconds before a password will expire.
-
GRACE_LOGINS_REMAINING
public static final PasswordPolicyWarningType GRACE_LOGINS_REMAINING
Indicates the remaining number of times a user will be allowed to authenticate with an expired password.
-
-
Method Detail
-
values
public static PasswordPolicyWarningType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PasswordPolicyWarningType c : PasswordPolicyWarningType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordPolicyWarningType valueOf(String name)
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
-
toString
public String toString()
- Overrides:
toString
in classEnum<PasswordPolicyWarningType>
-
-