Package Avalara.SDK.model.EInvoicing.V1
Class HmacSignature
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.HmacSignature
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class HmacSignature extends Object
Basic signature utilizing a shared key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmacSignature.AlgorithmEnumHMAC algorithm for authenticationstatic classHmacSignature.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALGORITHMstatic StringSERIALIZED_NAME_KEY
-
Constructor Summary
Constructors Constructor Description HmacSignature()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HmacSignaturealgorithm(HmacSignature.AlgorithmEnum algorithm)booleanequals(Object o)static HmacSignaturefromJson(String jsonString)Create an instance of HmacSignature given an JSON stringHmacSignature.AlgorithmEnumgetAlgorithm()HMAC algorithm for authenticationStringgetKey()HMAC key for authenticationinthashCode()HmacSignaturekey(String key)voidsetAlgorithm(HmacSignature.AlgorithmEnum algorithm)voidsetKey(String key)StringtoJson()Convert an instance of HmacSignature to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_KEY
public static final String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALGORITHM
public static final String SERIALIZED_NAME_ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
key
public HmacSignature key(String key)
-
setKey
public void setKey(String key)
-
algorithm
public HmacSignature algorithm(HmacSignature.AlgorithmEnum algorithm)
-
getAlgorithm
@Nonnull public HmacSignature.AlgorithmEnum getAlgorithm()
HMAC algorithm for authentication- Returns:
- algorithm
-
setAlgorithm
public void setAlgorithm(HmacSignature.AlgorithmEnum algorithm)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to HmacSignature
-
fromJson
public static HmacSignature fromJson(String jsonString) throws IOException
Create an instance of HmacSignature given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HmacSignature
- Throws:
IOException- if the JSON string is invalid with respect to HmacSignature
-
toJson
public String toJson()
Convert an instance of HmacSignature to an JSON string- Returns:
- JSON string
-
-