Table of Contents

Class PolicySimulationTokenPreview

Namespace
ReferenceApplication.Web.Governance.Simulation
Assembly
ReferenceApplication.Web.dll

The capability token issuance would sign for the simulated request. It is never signed and consumes no use.

public sealed record PolicySimulationTokenPreview : IEquatable<PolicySimulationTokenPreview>
Inheritance
PolicySimulationTokenPreview
Implements
Inherited Members

Constructors

PolicySimulationTokenPreview(bool, string?, string?, string?, string?, string?, IReadOnlyList<string>, string?, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, int?, string?, string?, string?, string?, string?)

The capability token issuance would sign for the simulated request. It is never signed and consumes no use.

public PolicySimulationTokenPreview(bool WouldBeIssued, string? TokenId, string? Issuer, string? Audience, string? SubjectId, string? OperationName, IReadOnlyList<string> Scopes, string? ResourceBinding, DateTimeOffset? IssuedUtc, DateTimeOffset? NotBeforeUtc, DateTimeOffset? ExpiresUtc, int? MaxUseCount, string? PolicyVersion, string? PolicyHash, string? KeyId, string? KeyVersion, string? SignatureAlgorithm)

Parameters

WouldBeIssued bool

Whether the simulated actor is entitled to the token.

TokenId string

The token identifier the receipt would record.

Issuer string

The token issuer.

Audience string

The token audience.

SubjectId string

The actor the token is bound to.

OperationName string

The operation the token is bound to.

Scopes IReadOnlyList<string>

The granted capability scopes.

ResourceBinding string

The hash of the request payload the token is bound to.

IssuedUtc DateTimeOffset?

When the token would be issued.

NotBeforeUtc DateTimeOffset?

When the token would become valid.

ExpiresUtc DateTimeOffset?

When the token would expire.

MaxUseCount int?

How many times the token could be used.

PolicyVersion string

The policy version the token is bound to.

PolicyHash string

The policy hash the token is bound to.

KeyId string

The identifier of the key that would sign it. The key itself is never shown.

KeyVersion string

The version of the key that would sign it.

SignatureAlgorithm string

The signature algorithm descriptor the proof would carry.

Properties

Audience

The token audience.

public string? Audience { get; init; }

Property Value

string

ExpiresUtc

When the token would expire.

public DateTimeOffset? ExpiresUtc { get; init; }

Property Value

DateTimeOffset?

IssuedUtc

When the token would be issued.

public DateTimeOffset? IssuedUtc { get; init; }

Property Value

DateTimeOffset?

Issuer

The token issuer.

public string? Issuer { get; init; }

Property Value

string

KeyId

The identifier of the key that would sign it. The key itself is never shown.

public string? KeyId { get; init; }

Property Value

string

KeyVersion

The version of the key that would sign it.

public string? KeyVersion { get; init; }

Property Value

string

MaxUseCount

How many times the token could be used.

public int? MaxUseCount { get; init; }

Property Value

int?

NotBeforeUtc

When the token would become valid.

public DateTimeOffset? NotBeforeUtc { get; init; }

Property Value

DateTimeOffset?

OperationName

The operation the token is bound to.

public string? OperationName { get; init; }

Property Value

string

PolicyHash

The policy hash the token is bound to.

public string? PolicyHash { get; init; }

Property Value

string

PolicyVersion

The policy version the token is bound to.

public string? PolicyVersion { get; init; }

Property Value

string

ResourceBinding

The hash of the request payload the token is bound to.

public string? ResourceBinding { get; init; }

Property Value

string

Scopes

The granted capability scopes.

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

Property Value

IReadOnlyList<string>

SignatureAlgorithm

The signature algorithm descriptor the proof would carry.

public string? SignatureAlgorithm { get; init; }

Property Value

string

SubjectId

The actor the token is bound to.

public string? SubjectId { get; init; }

Property Value

string

TokenId

The token identifier the receipt would record.

public string? TokenId { get; init; }

Property Value

string

WouldBeIssued

Whether the simulated actor is entitled to the token.

public bool WouldBeIssued { get; init; }

Property Value

bool