public class HmacFunctions extends BaseFunctions
| Constructor and Description |
|---|
HmacFunctions(boolean isExecute,
LogFunctions pFLOG) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
java.lang.String |
generateHmac(java.lang.Object pPayload,
java.lang.String pSecret,
java.lang.String pAlgorithm)
Generates an Hmac string
|
java.lang.String |
generateHmacSHA1(java.lang.Object pPayload,
java.lang.String pSecret)
Generates an Hmac string using the HmacSHA1 algorithm
|
java.lang.String |
generateHmacSHA256(java.lang.Object pPayload,
java.lang.String pSecret)
Generates an Hmac string using the HmacSHA256 algorithm
|
java.lang.String |
generateHmacSHA384(java.lang.Object pPayload,
java.lang.String pSecret)
Generates an Hmac string using the HmacSHA384 algorithm
|
java.lang.String |
generateHmacSHA512(java.lang.Object pPayload,
java.lang.String pSecret)
Generates an Hmac string using the HmacSHA512 algorithm
|
java.lang.String |
getGroovyKey() |
approveTask, approveTaskByEmails, completeManualStepBySnapshotId, completeManualStepByTaskId, decryptIntegrationInstance, doSimpleGet, findIntegrationInstance, getLogFunctions, getServerBaseUrl, rejectTask, rejectTaskByEmailspublic HmacFunctions(boolean isExecute,
LogFunctions pFLOG)
public java.lang.String generateHmacSHA512(java.lang.Object pPayload,
java.lang.String pSecret)
throws FlexCheckedException
pPayload - Payload to generate hmac from. This payload should be untouched from the provider to generate the correct HmacpSecret - Secret Key for generationFlexCheckedExceptionpublic java.lang.String generateHmacSHA384(java.lang.Object pPayload,
java.lang.String pSecret)
throws FlexCheckedException
pPayload - Payload to generate hmac from. This payload should be untouched from the provider to generate the correct HmacpSecret - Secret Key for generationFlexCheckedExceptionpublic java.lang.String generateHmacSHA256(java.lang.Object pPayload,
java.lang.String pSecret)
throws FlexCheckedException
pPayload - Payload to generate hmac from. This payload should be untouched from the provider to generate the correct HmacpSecret - Secret Key for generationFlexCheckedExceptionpublic java.lang.String generateHmacSHA1(java.lang.Object pPayload,
java.lang.String pSecret)
throws FlexCheckedException
pPayload - Payload to generate hmac from. This payload should be untouched from the provider to generate the correct HmacpSecret - Secret Key for generationFlexCheckedExceptionpublic java.lang.String generateHmac(java.lang.Object pPayload,
java.lang.String pSecret,
java.lang.String pAlgorithm)
throws FlexCheckedException
pPayload - Payload to generate hmac from. This payload should be untouched from the provider to generate the correct HmacpSecret - Secret Key for generationpAlgorithm - Algorithm to use. Java standard cryptographic algorithm names are usedFlexCheckedExceptionpublic java.lang.String getGroovyKey()
getGroovyKey in class BaseFunctionspublic void cleanup()
cleanup in class BaseFunctions