Enum HMACAlgorithm
- java.lang.Object
-
- java.lang.Enum<HMACAlgorithm>
-
- org.wso2.carbon.esb.connector.hmac.utils.constants.HMACAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<HMACAlgorithm>
public enum HMACAlgorithm extends Enum<HMACAlgorithm>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HMACMD5HMACSHA1HMACSHA256HMACSHA384HMACSHA512
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HMACAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static HMACAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HMACSHA1
public static final HMACAlgorithm HMACSHA1
-
HMACSHA256
public static final HMACAlgorithm HMACSHA256
-
HMACSHA384
public static final HMACAlgorithm HMACSHA384
-
HMACSHA512
public static final HMACAlgorithm HMACSHA512
-
HMACMD5
public static final HMACAlgorithm HMACMD5
-
-
Method Detail
-
values
public static HMACAlgorithm[] 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 (HMACAlgorithm c : HMACAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HMACAlgorithm 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
-
-