Package org.jivesoftware.openfire.auth
Enum JDBCAuthProvider.PasswordType
- java.lang.Object
-
- java.lang.Enum<JDBCAuthProvider.PasswordType>
-
- org.jivesoftware.openfire.auth.JDBCAuthProvider.PasswordType
-
- All Implemented Interfaces:
Serializable
,Comparable<JDBCAuthProvider.PasswordType>
- Enclosing class:
- JDBCAuthProvider
public static enum JDBCAuthProvider.PasswordType extends Enum<JDBCAuthProvider.PasswordType>
Indicates how the password is stored.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description bcrypt
The password is stored as a bcrypt hash.md5
The password is stored as a hex-encoded MD5 hash.nt
The password is stored as an nt hash.plain
The password is stored as plain text.sha1
The password is stored as a hex-encoded SHA-1 hash.sha256
The password is stored as a hex-encoded SHA-256 hash.sha512
The password is stored as a hex-encoded SHA-512 hash.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JDBCAuthProvider.PasswordType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JDBCAuthProvider.PasswordType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
plain
public static final JDBCAuthProvider.PasswordType plain
The password is stored as plain text.
-
md5
public static final JDBCAuthProvider.PasswordType md5
The password is stored as a hex-encoded MD5 hash.
-
sha1
public static final JDBCAuthProvider.PasswordType sha1
The password is stored as a hex-encoded SHA-1 hash.
-
sha256
public static final JDBCAuthProvider.PasswordType sha256
The password is stored as a hex-encoded SHA-256 hash.
-
sha512
public static final JDBCAuthProvider.PasswordType sha512
The password is stored as a hex-encoded SHA-512 hash.
-
bcrypt
public static final JDBCAuthProvider.PasswordType bcrypt
The password is stored as a bcrypt hash.
-
nt
public static final JDBCAuthProvider.PasswordType nt
The password is stored as an nt hash.
-
-
Method Detail
-
values
public static JDBCAuthProvider.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 (JDBCAuthProvider.PasswordType c : JDBCAuthProvider.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 JDBCAuthProvider.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
-
-