Enum HMACSignatureImpl.Algorithm
- java.lang.Object
-
- java.lang.Enum<HMACSignatureImpl.Algorithm>
-
- com.adaptris.core.http.apache5.request.HMACSignatureImpl.Algorithm
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HMACSignatureImpl.Algorithm>
- Enclosing class:
- HMACSignatureImpl
public static enum HMACSignatureImpl.Algorithm extends java.lang.Enum<HMACSignatureImpl.Algorithm>
The algorithm to use when creating the message authentication code.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HMAC_MD5HMAC_SHA1HMAC_SHA256HMAC_SHA384HMAC_SHA512
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]digest(java.lang.String key, java.lang.String valueToDigest)static HMACSignatureImpl.AlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HMACSignatureImpl.Algorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HMAC_MD5
public static final HMACSignatureImpl.Algorithm HMAC_MD5
-
HMAC_SHA1
public static final HMACSignatureImpl.Algorithm HMAC_SHA1
-
HMAC_SHA256
public static final HMACSignatureImpl.Algorithm HMAC_SHA256
-
HMAC_SHA384
public static final HMACSignatureImpl.Algorithm HMAC_SHA384
-
HMAC_SHA512
public static final HMACSignatureImpl.Algorithm HMAC_SHA512
-
-
Method Detail
-
values
public static HMACSignatureImpl.Algorithm[] 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 (HMACSignatureImpl.Algorithm c : HMACSignatureImpl.Algorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HMACSignatureImpl.Algorithm valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
digest
public abstract byte[] digest(java.lang.String key, java.lang.String valueToDigest)
-
-