Class HmacFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.HmacFunctions
Utility functions for generating HMAC strings
- Since:
- 5.3
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()generateHmac(Object pPayload, String pSecret, String pAlgorithm) Generates an HMAC stringgenerateHmacSHA1(Object pPayload, String pSecret) Generates an HMAC string using the HmacSHA1 algorithmgenerateHmacSHA256(Object pPayload, String pSecret) Generates an Hmac string using the HmacSHA256 algorithmgenerateHmacSHA384(Object pPayload, String pSecret) Generates an HMAC string using the HmacSHA384 algorithmgenerateHmacSHA512(Object pPayload, String pSecret) Generates an HMAC string using the HmacSHA512 algorithmMethods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Constructor Details
-
HmacFunctions
-
-
Method Details
-
generateHmacSHA512
Generates an HMAC string using the HmacSHA512 algorithm- Parameters:
pPayload- Payload to generate HMAC from. This payload should be untouched from the provider to generate the correct HmacpSecret- Secret Key for generation- Returns:
- Hmac string
- Throws:
FlexCheckedException
-
generateHmacSHA384
Generates an HMAC string using the HmacSHA384 algorithm- Parameters:
pPayload- Payload to generate HMAC from. This payload should be untouched from the provider to generate the correct HMACpSecret- Secret Key for generation- Returns:
- Hmac string
- Throws:
FlexCheckedException
-
generateHmacSHA256
Generates an Hmac string using the HmacSHA256 algorithm- Parameters:
pPayload- Payload to generate HMAC from. This payload should be untouched from the provider to generate the correct HMACpSecret- Secret Key for generation- Returns:
- Hmac string
- Throws:
FlexCheckedException
-
generateHmacSHA1
Generates an HMAC string using the HmacSHA1 algorithm- Parameters:
pPayload- Payload to generate HMAC from. This payload should be untouched from the provider to generate the correct HMACpSecret- Secret Key for generation- Returns:
- HMAC string
- Throws:
FlexCheckedException
-
generateHmac
public String generateHmac(Object pPayload, String pSecret, String pAlgorithm) throws FlexCheckedException Generates an HMAC string- Parameters:
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 used- Returns:
- HMAC string
- Throws:
FlexCheckedException- See Also:
-
getGroovyKey
- Specified by:
getGroovyKeyin classBaseFunctions
-
cleanup
public void cleanup()- Specified by:
cleanupin classBaseFunctions
-