VerifyContentMAC

Description:

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

Tags:

Authentication, Signing, MAC, HMAC

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) 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 Algorithmmac-algorithm
  • HmacSHA256
  • HmacSHA512
Hashed Message Authentication Code Function
Message Authentication Code Encodingmessage-authentication-code-encodingHEXADECIMAL
  • HEXADECIMAL
  • BASE64
Encoding of the Message Authentication Code
Message Authentication Codemessage-authentication-codeThe MAC to compare with the calculated value
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Secret Key Encodingsecret-key-encodingHEXADECIMAL
  • UTF8
  • HEXADECIMAL
  • BASE64
Encoding of the Secret Key
Secret Keysecret-keySecret key to calculate the hash
Sensitive Property: true

Relationships:

NameDescription
successSignature Verification Succeeded
failureSignature Verification Failed

Reads Attributes:

None specified.

Writes Attributes:

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

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:

None specified.