public enum PasswordPolicyWarningType extends Enum<PasswordPolicyWarningType>
Enum Constant and Description |
---|
GRACE_LOGINS_REMAINING
The warning type that will be used to indicate that the user is
authenticating using a grace login and to provide the number of grace
logins that the user has left.
|
TIME_BEFORE_EXPIRATION
The warning type that will be used to indicate that the password will
expire in the near future and to provide the length of time in seconds
until expiration.
|
Modifier and Type | Method and Description |
---|---|
byte |
getType()
Retrieves the BER type to use for the associated element in the password
policy control.
|
String |
toString()
Retrieves a string representation of this password policy warning type.
|
static PasswordPolicyWarningType |
valueOf(byte type)
Retrieves the password policy warning type for the provided BER type.
|
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.
|
public static final PasswordPolicyWarningType TIME_BEFORE_EXPIRATION
public static final PasswordPolicyWarningType GRACE_LOGINS_REMAINING
public static PasswordPolicyWarningType[] values()
for (PasswordPolicyWarningType c : PasswordPolicyWarningType.values()) System.out.println(c);
public static PasswordPolicyWarningType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getType()
public static PasswordPolicyWarningType valueOf(byte type)
type
- The BER type for which to retrieve the corresponding password
policy warning type.null
if none of the defined warning types have the provided BER type.public String toString()
toString
in class Enum<PasswordPolicyWarningType>
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.