public enum PasswordEncoding extends Enum<PasswordEncoding>
| Modifier and Type | Method and Description |
|---|---|
String |
encodeToHexString(String password) |
String |
encodeToString(String password,
String characterEncoding,
PasswordDigestCodec codec) |
abstract MessageDigest |
getDigest() |
abstract PasswordEncoder |
getEncoder(String characterEncoding,
PasswordDigestCodec codec) |
static PasswordEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordEncoding PLAIN
public static final PasswordEncoding MD5
public static final PasswordEncoding SHA1
public static PasswordEncoding[] values()
for (PasswordEncoding c : PasswordEncoding.values()) System.out.println(c);
public static PasswordEncoding 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 abstract PasswordEncoder getEncoder(String characterEncoding, PasswordDigestCodec codec) throws Exception
Exceptionpublic String encodeToString(String password, String characterEncoding, PasswordDigestCodec codec) throws Exception
Exceptionpublic String encodeToHexString(String password) throws Exception
Exceptionpublic abstract MessageDigest getDigest() throws NoSuchAlgorithmException
null if none is usedNoSuchAlgorithmExceptionCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.