Enum HMACSignatureImpl.Encoding
- java.lang.Object
-
- java.lang.Enum<HMACSignatureImpl.Encoding>
-
- com.adaptris.core.http.apache5.request.HMACSignatureImpl.Encoding
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HMACSignatureImpl.Encoding>
- Enclosing class:
- HMACSignatureImpl
public static enum HMACSignatureImpl.Encoding extends java.lang.Enum<HMACSignatureImpl.Encoding>
The encoding to use on the resulting signature.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringencode(byte[] b)static HMACSignatureImpl.EncodingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HMACSignatureImpl.Encoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEX
public static final HMACSignatureImpl.Encoding HEX
Turn each byte into its hex representation.
-
BASE64
public static final HMACSignatureImpl.Encoding BASE64
Turn it into a Base64 string.
-
-
Method Detail
-
values
public static HMACSignatureImpl.Encoding[] 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.Encoding c : HMACSignatureImpl.Encoding.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.Encoding 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
-
encode
public abstract java.lang.String encode(byte[] b)
-
-