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
Exception
public String encodeToString(String password, String characterEncoding, PasswordDigestCodec codec) throws Exception
Exception
public String encodeToHexString(String password) throws Exception
Exception
public abstract MessageDigest getDigest() throws NoSuchAlgorithmException
null
if none is usedNoSuchAlgorithmException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.