Skip to main content

VerifyContentMAC

Description​

Calculates a Message Authentication Code using the provided Secret Key and compares it with the provided MAC property

Tags​

Authentication, HMAC, MAC, Signing

Properties​

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Message Authentication Code Algorithm *mac-algorithm
  • HmacSHA256
  • HmacSHA512
Hashed Message Authentication Code Function
Message Authentication Code Encoding *message-authentication-code-encodingHEXADECIMAL
  • HEXADECIMAL
  • BASE64
Encoding of the Message Authentication Code
Message Authentication Code *message-authentication-codeThe MAC to compare with the calculated value

Supports Expression Language, using FlowFile attributes and Environment variables.
Secret Key Encoding *secret-key-encodingHEXADECIMAL
  • UTF8
  • HEXADECIMAL
  • BASE64
Encoding of the Secret Key
Secret Key *secret-keySecret key to calculate the hash

Dynamic Properties​

This component does not support dynamic properties.

Relationships​

NameDescription
failureSignature Verification Failed
successSignature Verification Succeeded

Reads Attributes​

This processor does not read attributes.

Writes Attributes​

NameDescription
mac.algorithmHashed Message Authentication Code Algorithm
mac.calculatedCalculated Message Authentication Code encoded by the selected encoding
mac.encodingThe Encoding of the Hashed Message Authentication Code

State Management​

This component does not store state.

Restricted​

This component is not restricted.

Input Requirement​

This component requires an incoming relationship.

System Resource Considerations​

This component does not specify system resource considerations.

See Also​