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() |
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public 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 generationFlexCheckedException
public 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 generationFlexCheckedException
public 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 generationFlexCheckedException
public 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 generationFlexCheckedException
public 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 usedFlexCheckedException
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions