Class PolicySimulationCapabilityStage
- Namespace
- ReferenceApplication.Web.Governance.Simulation
- Assembly
- ReferenceApplication.Web.dll
The capability-grant validation step.
public sealed record PolicySimulationCapabilityStage : IEquatable<PolicySimulationCapabilityStage>
- Inheritance
-
PolicySimulationCapabilityStage
- Implements
- Inherited Members
Constructors
PolicySimulationCapabilityStage(bool, string, bool, IReadOnlyList<string>, string?, string?, IReadOnlyList<string>, PolicySimulationTokenPreview?)
The capability-grant validation step.
public PolicySimulationCapabilityStage(bool Applies, string Model, bool Evaluated, IReadOnlyList<string> RequiredScopes, string? InputOutcome, string? Outcome, IReadOnlyList<string> ReasonCodes, PolicySimulationTokenPreview? Token)
Parameters
AppliesboolWhether the endpoint declares capability scopes.
ModelstringThe active grant model:
claimsorsigned-token.EvaluatedboolWhether validation ran; it is skipped for a decision that is already denied.
RequiredScopesIReadOnlyList<string>The capability scopes the endpoint declares.
InputOutcomestringThe decision before validation.
OutcomestringThe decision after validation.
ReasonCodesIReadOnlyList<string>The decision's reason codes after validation.
TokenPolicySimulationTokenPreviewThe token that would be issued, when the signed-token model is active.
Properties
Applies
Whether the endpoint declares capability scopes.
public bool Applies { get; init; }
Property Value
Evaluated
Whether validation ran; it is skipped for a decision that is already denied.
public bool Evaluated { get; init; }
Property Value
InputOutcome
The decision before validation.
public string? InputOutcome { get; init; }
Property Value
Model
The active grant model: claims or signed-token.
public string Model { get; init; }
Property Value
Outcome
The decision after validation.
public string? Outcome { get; init; }
Property Value
ReasonCodes
The decision's reason codes after validation.
public IReadOnlyList<string> ReasonCodes { get; init; }
Property Value
RequiredScopes
The capability scopes the endpoint declares.
public IReadOnlyList<string> RequiredScopes { get; init; }
Property Value
Token
The token that would be issued, when the signed-token model is active.
public PolicySimulationTokenPreview? Token { get; init; }