InboundTriggerSecretResolver
AgentPrism.Core.dllResolves an InboundTrigger’s signing secret by reading its configured configuration key.
public sealed class InboundTriggerSecretResolverInheritance
Section titled “Inheritance”object ← InboundTriggerSecretResolver
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”InboundTriggerSecretResolver(IConfiguration?, IOptionsMonitor<AgentPrismInboundTriggerOptions>)
Section titled “ InboundTriggerSecretResolver(IConfiguration?, IOptionsMonitor<AgentPrismInboundTriggerOptions>)”Creates a new resolver.
public InboundTriggerSecretResolver(IConfiguration? configuration, IOptionsMonitor<AgentPrismInboundTriggerOptions> options)Parameters
Section titled “Parameters”configuration IConfiguration?
The application’s configuration root. When null, InboundTriggerSecretResolver.Resolve always returns null.
options IOptionsMonitor<AgentPrismInboundTriggerOptions>
The inbound trigger options.
Exceptions
Section titled “Exceptions”options is null.
Methods
Section titled “Methods”Resolve(InboundTrigger)
Section titled “ Resolve(InboundTrigger)”Resolves a trigger’s signing secret by reading its configuration key.
public string? Resolve(InboundTrigger trigger)Parameters
Section titled “Parameters”trigger InboundTrigger
The trigger to resolve.
Returns
Section titled “Returns”The secret value; null if the configuration key has no value.
Exceptions
Section titled “Exceptions”InboundTrigger.SigningSecretConfigurationName is outside the allowed prefix.
ValidatePrefix(string)
Section titled “ ValidatePrefix(string)”Validates that a configuration key name is under the allowed prefix.
public void ValidatePrefix(string configurationKeyName)Parameters
Section titled “Parameters”configurationKeyName string
The configuration key name to check.
Exceptions
Section titled “Exceptions”The name is empty, or does not start with AgentPrismInboundTriggerOptions.AllowedConfigurationPrefix.