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 Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Message Authentication Code Algorithm * | mac-algorithm |
| Hashed Message Authentication Code Function | |
Message Authentication Code Encoding * | message-authentication-code-encoding | HEXADECIMAL |
| Encoding of the Message Authentication Code |
Message Authentication Code * | message-authentication-code | The MAC to compare with the calculated value Supports Expression Language, using FlowFile attributes and Environment variables. | ||
Secret Key Encoding * | secret-key-encoding | HEXADECIMAL |
| Encoding of the Secret Key |
Secret Key * | secret-key | Secret key to calculate the hash |
Dynamic Properties
This component does not support dynamic properties.
Relationships
Name | Description |
---|---|
failure | Signature Verification Failed |
success | Signature Verification Succeeded |
Reads Attributes
This processor does not read attributes.
Writes Attributes
Name | Description |
---|---|
mac.algorithm | Hashed Message Authentication Code Algorithm |
mac.calculated | Calculated Message Authentication Code encoded by the selected encoding |
mac.encoding | The 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.