Package org.opends.server.util
Enum SchemaUtils.PasswordType
- java.lang.Object
-
- java.lang.Enum<SchemaUtils.PasswordType>
-
- org.opends.server.util.SchemaUtils.PasswordType
-
- All Implemented Interfaces:
Serializable
,Comparable<SchemaUtils.PasswordType>
- Enclosing class:
- SchemaUtils
public static enum SchemaUtils.PasswordType extends Enum<SchemaUtils.PasswordType>
Represents a password type, including a "not a password" value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTH_PASSWORD
Auth Password.NOT_A_PASSWORD
Not a password.USER_PASSWORD
User Password.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaUtils.PasswordType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SchemaUtils.PasswordType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTH_PASSWORD
public static final SchemaUtils.PasswordType AUTH_PASSWORD
Auth Password.
-
USER_PASSWORD
public static final SchemaUtils.PasswordType USER_PASSWORD
User Password.
-
NOT_A_PASSWORD
public static final SchemaUtils.PasswordType NOT_A_PASSWORD
Not a password.
-
-
Method Detail
-
values
public static SchemaUtils.PasswordType[] 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 (SchemaUtils.PasswordType c : SchemaUtils.PasswordType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaUtils.PasswordType 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
-
-