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
WouldBeIssuedboolWhether the simulated actor is entitled to the token.
TokenIdstringThe token identifier the receipt would record.
IssuerstringThe token issuer.
AudiencestringThe token audience.
SubjectIdstringThe actor the token is bound to.
OperationNamestringThe operation the token is bound to.
ScopesIReadOnlyList<string>The granted capability scopes.
ResourceBindingstringThe hash of the request payload the token is bound to.
IssuedUtcDateTimeOffset?When the token would be issued.
NotBeforeUtcDateTimeOffset?When the token would become valid.
ExpiresUtcDateTimeOffset?When the token would expire.
MaxUseCountint?How many times the token could be used.
PolicyVersionstringThe policy version the token is bound to.
PolicyHashstringThe policy hash the token is bound to.
KeyIdstringThe identifier of the key that would sign it. The key itself is never shown.
KeyVersionstringThe version of the key that would sign it.
SignatureAlgorithmstringThe signature algorithm descriptor the proof would carry.
Properties
Audience
The token audience.
public string? Audience { get; init; }
Property Value
ExpiresUtc
When the token would expire.
public DateTimeOffset? ExpiresUtc { get; init; }
Property Value
IssuedUtc
When the token would be issued.
public DateTimeOffset? IssuedUtc { get; init; }
Property Value
Issuer
The token issuer.
public string? Issuer { get; init; }
Property Value
KeyId
The identifier of the key that would sign it. The key itself is never shown.
public string? KeyId { get; init; }
Property Value
KeyVersion
The version of the key that would sign it.
public string? KeyVersion { get; init; }
Property Value
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
OperationName
The operation the token is bound to.
public string? OperationName { get; init; }
Property Value
PolicyHash
The policy hash the token is bound to.
public string? PolicyHash { get; init; }
Property Value
PolicyVersion
The policy version the token is bound to.
public string? PolicyVersion { get; init; }
Property Value
ResourceBinding
The hash of the request payload the token is bound to.
public string? ResourceBinding { get; init; }
Property Value
Scopes
The granted capability scopes.
public IReadOnlyList<string> Scopes { get; init; }
Property Value
SignatureAlgorithm
The signature algorithm descriptor the proof would carry.
public string? SignatureAlgorithm { get; init; }
Property Value
SubjectId
The actor the token is bound to.
public string? SubjectId { get; init; }
Property Value
TokenId
The token identifier the receipt would record.
public string? TokenId { get; init; }
Property Value
WouldBeIssued
Whether the simulated actor is entitled to the token.
public bool WouldBeIssued { get; init; }