public static enum UserAccount.PasswordHash extends Enum<UserAccount.PasswordHash>
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPasswd(String encrypted,
String passwd) |
String |
encrypt(String passwd) |
static UserAccount.PasswordHash |
getPasswordHash(String passwdHash) |
protected abstract String |
hash(String in) |
static UserAccount.PasswordHash |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserAccount.PasswordHash[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserAccount.PasswordHash PLAIN
public static final UserAccount.PasswordHash MD5
public static final UserAccount.PasswordHash SHA1
public static UserAccount.PasswordHash[] values()
for (UserAccount.PasswordHash c : UserAccount.PasswordHash.values()) System.out.println(c);
public static UserAccount.PasswordHash 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 static UserAccount.PasswordHash getPasswordHash(String passwdHash)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.