Skip to content

InboundTriggerSecretResolver

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Resolves an InboundTrigger’s signing secret by reading its configured configuration key.

public sealed class InboundTriggerSecretResolver

objectInboundTriggerSecretResolver

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The same shape as TenantProviderCredentialResolver: AgentPrismInboundTriggerOptions.AllowedConfigurationPrefix is checked here too, not only where a trigger is saved — a trigger written before the prefix was configured must not silently read an out-of-prefix configuration key.

InboundTriggerSecretResolver(IConfiguration?, IOptionsMonitor<AgentPrismInboundTriggerOptions>)

Section titled “ InboundTriggerSecretResolver(IConfiguration?, IOptionsMonitor<AgentPrismInboundTriggerOptions>)”

Creates a new resolver.

public InboundTriggerSecretResolver(IConfiguration? configuration, IOptionsMonitor<AgentPrismInboundTriggerOptions> options)

configuration IConfiguration?

The application’s configuration root. When null, InboundTriggerSecretResolver.Resolve always returns null.

options IOptionsMonitor<AgentPrismInboundTriggerOptions>

The inbound trigger options.

ArgumentNullException

options is null.

Resolves a trigger’s signing secret by reading its configuration key.

public string? Resolve(InboundTrigger trigger)

trigger InboundTrigger

The trigger to resolve.

string?

The secret value; null if the configuration key has no value.

AgentPrismException

InboundTrigger.SigningSecretConfigurationName is outside the allowed prefix.

Validates that a configuration key name is under the allowed prefix.

public void ValidatePrefix(string configurationKeyName)

configurationKeyName string

The configuration key name to check.

AgentPrismException

The name is empty, or does not start with AgentPrismInboundTriggerOptions.AllowedConfigurationPrefix.