Table of Contents

Class TrustedPublisherRegistry

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

Manages a registry of trusted workflow publishers. Only workflows from trusted publishers can be installed and executed when trust enforcement is enabled.

public sealed class TrustedPublisherRegistry
Inheritance
TrustedPublisherRegistry
Inherited Members

Constructors

TrustedPublisherRegistry(string, ILogger?)

public TrustedPublisherRegistry(string registryPath, ILogger? logger = null)

Parameters

registryPath string

Path to the trust registry JSON file.

logger ILogger

Optional logger.

Properties

Count

Number of trusted publishers.

public int Count { get; }

Property Value

int

Methods

GetAll()

Returns all registered publishers (including revoked).

public IReadOnlyList<TrustedPublisher> GetAll()

Returns

IReadOnlyList<TrustedPublisher>

IsTrusted(string)

Checks if a publisher (author name) is trusted.

public bool IsTrusted(string author)

Parameters

author string

Returns

bool

Revoke(string)

Revokes trust for a publisher without removing the record (for audit trail).

public void Revoke(string name)

Parameters

name string

Trust(string, string?)

Adds a publisher to the trusted registry.

public void Trust(string name, string? fingerprint = null)

Parameters

name string
fingerprint string