Table of Contents

Class WorkflowSignature

Namespace
JD.AI.Workflows.Security
Assembly
JD.AI.Workflows.dll

Signs and verifies workflow definitions using HMAC-SHA256. Signatures cover the canonical JSON representation of the workflow, ensuring that any modification (steps, metadata, version) is detected.

public static class WorkflowSignature
Inheritance
WorkflowSignature
Inherited Members

Methods

Sign(AgentWorkflowDefinition, byte[])

Computes an HMAC-SHA256 signature of the workflow definition.

public static string Sign(AgentWorkflowDefinition definition, byte[] key)

Parameters

definition AgentWorkflowDefinition
key byte[]

Returns

string

Lowercase hex signature string.

Verify(AgentWorkflowDefinition, byte[], string)

Verifies that a signature matches the workflow definition.

public static bool Verify(AgentWorkflowDefinition definition, byte[] key, string signature)

Parameters

definition AgentWorkflowDefinition
key byte[]
signature string

Returns

bool