Table of Contents

Class CapabilityTokenResponse

Namespace
ReferenceApplication.Web.Controllers.Api
Assembly
ReferenceApplication.Web.dll

An issued capability token and the values it is bound to.

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

Constructors

CapabilityTokenResponse(string, string, string, string, IReadOnlyList<string>, string, DateTimeOffset, DateTimeOffset)

An issued capability token and the values it is bound to.

public CapabilityTokenResponse(string TokenId, string Token, string HeaderName, string OperationName, IReadOnlyList<string> Scopes, string ResourceBinding, DateTimeOffset IssuedUtc, DateTimeOffset ExpiresUtc)

Parameters

TokenId string

The token identifier recorded in decision evidence when the token is used.

Token string

The encoded token.

HeaderName string

The request header that must carry the token.

OperationName string

The governed operation the token is bound to.

Scopes IReadOnlyList<string>

The granted capability scopes.

ResourceBinding string

The request payload binding.

IssuedUtc DateTimeOffset

When the token was issued, and when it becomes valid.

ExpiresUtc DateTimeOffset

When the token expires.

Properties

ExpiresUtc

When the token expires.

public DateTimeOffset ExpiresUtc { get; init; }

Property Value

DateTimeOffset

HeaderName

The request header that must carry the token.

public string HeaderName { get; init; }

Property Value

string

IssuedUtc

When the token was issued, and when it becomes valid.

public DateTimeOffset IssuedUtc { get; init; }

Property Value

DateTimeOffset

OperationName

The governed operation the token is bound to.

public string OperationName { get; init; }

Property Value

string

ResourceBinding

The request payload binding.

public string ResourceBinding { get; init; }

Property Value

string

Scopes

The granted capability scopes.

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

Property Value

IReadOnlyList<string>

Token

The encoded token.

public string Token { get; init; }

Property Value

string

TokenId

The token identifier recorded in decision evidence when the token is used.

public string TokenId { get; init; }

Property Value

string