Table of Contents

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

Applies bool

Whether the endpoint declares capability scopes.

Model string

The active grant model: claims or signed-token.

Evaluated bool

Whether validation ran; it is skipped for a decision that is already denied.

RequiredScopes IReadOnlyList<string>

The capability scopes the endpoint declares.

InputOutcome string

The decision before validation.

Outcome string

The decision after validation.

ReasonCodes IReadOnlyList<string>

The decision's reason codes after validation.

Token PolicySimulationTokenPreview

The 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

bool

Evaluated

Whether validation ran; it is skipped for a decision that is already denied.

public bool Evaluated { get; init; }

Property Value

bool

InputOutcome

The decision before validation.

public string? InputOutcome { get; init; }

Property Value

string

Model

The active grant model: claims or signed-token.

public string Model { get; init; }

Property Value

string

Outcome

The decision after validation.

public string? Outcome { get; init; }

Property Value

string

ReasonCodes

The decision's reason codes after validation.

public IReadOnlyList<string> ReasonCodes { get; init; }

Property Value

IReadOnlyList<string>

RequiredScopes

The capability scopes the endpoint declares.

public IReadOnlyList<string> RequiredScopes { get; init; }

Property Value

IReadOnlyList<string>

Token

The token that would be issued, when the signed-token model is active.

public PolicySimulationTokenPreview? Token { get; init; }

Property Value

PolicySimulationTokenPreview