Enum DraftBeheraLDAPPasswordPolicy10WarningType
- java.lang.Object
-
- java.lang.Enum<DraftBeheraLDAPPasswordPolicy10WarningType>
-
- com.unboundid.ldap.sdk.experimental.DraftBeheraLDAPPasswordPolicy10WarningType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DraftBeheraLDAPPasswordPolicy10WarningType>
@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum DraftBeheraLDAPPasswordPolicy10WarningType extends java.lang.Enum<DraftBeheraLDAPPasswordPolicy10WarningType>
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-10.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DraftBeheraLDAPPasswordPolicy10WarningType
forName(java.lang.String name)
Retrieves the password policy warning type with the specified name.java.lang.String
getName()
Retrieves the human-readable name for this password policy warning type.java.lang.String
toString()
Retrieves a string representation for this password policy warning type.static DraftBeheraLDAPPasswordPolicy10WarningType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DraftBeheraLDAPPasswordPolicy10WarningType[]
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 DraftBeheraLDAPPasswordPolicy10WarningType 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
public static final DraftBeheraLDAPPasswordPolicy10WarningType 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 Detail
-
values
public static DraftBeheraLDAPPasswordPolicy10WarningType[] 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 (DraftBeheraLDAPPasswordPolicy10WarningType c : DraftBeheraLDAPPasswordPolicy10WarningType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DraftBeheraLDAPPasswordPolicy10WarningType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Retrieves the human-readable name for this password policy warning type.- Returns:
- The human-readable name for this password policy warning type.
-
forName
public static DraftBeheraLDAPPasswordPolicy10WarningType forName(java.lang.String name)
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
null
if no such type is defined.
-
toString
public java.lang.String toString()
Retrieves a string representation for this password policy warning type.- Overrides:
toString
in classjava.lang.Enum<DraftBeheraLDAPPasswordPolicy10WarningType>
- Returns:
- A string representation for this password policy warning type.
-
-