org.wso2.carbon.apacheds
Enum PasswordAlgorithm
java.lang.Object
java.lang.Enum<PasswordAlgorithm>
org.wso2.carbon.apacheds.PasswordAlgorithm
- All Implemented Interfaces:
- Serializable, Comparable<PasswordAlgorithm>
public enum PasswordAlgorithm
- extends Enum<PasswordAlgorithm>
An enum to represent supported password hashing mechanisms. Currently on MD 5 and SHA digests
are supported.
PLAIN_TEXT
public static final PasswordAlgorithm PLAIN_TEXT
MD5
public static final PasswordAlgorithm MD5
SHA
public static final PasswordAlgorithm SHA
values
public static PasswordAlgorithm[] 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 (PasswordAlgorithm c : PasswordAlgorithm.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PasswordAlgorithm 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 name
NullPointerException - if the argument is null
getAlgorithmName
public String getAlgorithmName()
Copyright © 2015 WSO2. All rights reserved.