Class TrustedPublisherRegistry
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
Properties
Count
Number of trusted publishers.
public int Count { get; }
Property Value
Methods
GetAll()
Returns all registered publishers (including revoked).
public IReadOnlyList<TrustedPublisher> GetAll()
Returns
IsTrusted(string)
Checks if a publisher (author name) is trusted.
public bool IsTrusted(string author)
Parameters
authorstring
Returns
Revoke(string)
Revokes trust for a publisher without removing the record (for audit trail).
public void Revoke(string name)
Parameters
namestring
Trust(string, string?)
Adds a publisher to the trusted registry.
public void Trust(string name, string? fingerprint = null)