Table of Contents

Class VerifiedToken

Namespace
KernLab.Claim.Client
Assembly
KernLab.Claim.Client.dll

验证通过后的 token 视图——claims 消费面(契约 §6)。

public sealed class VerifiedToken
Inheritance
VerifiedToken
Inherited Members

Constructors

VerifiedToken(IReadOnlyDictionary<string, string>)

构造。

public VerifiedToken(IReadOnlyDictionary<string, string> claims)

Parameters

claims IReadOnlyDictionary<string, string>

Properties

Claims

原始 claims(未注册字段照此透出——消费方忽略纪律由调用方自担)。

public IReadOnlyDictionary<string, string> Claims { get; }

Property Value

IReadOnlyDictionary<string, string>

CnfJkt

DPoP 绑定拇印(WP11——cnf.jkt;非空 = sender-constrained 形态,资源侧须以 DPoP scheme + proof 消费)。

public string? CnfJkt { get; }

Property Value

string

Environment

环境。

public string Environment { get; }

Property Value

string

ExpiresAt

过期时刻(无 exp = DateTimeOffset.MaxValue——本地档不过期语义)。

public DateTimeOffset ExpiresAt { get; }

Property Value

DateTimeOffset

Jti

jti(撤销锚点 / 审计关联)。

public string Jti { get; }

Property Value

string

Scopes

scope 集合。

public IReadOnlyList<string> Scopes { get; }

Property Value

IReadOnlyList<string>

Subject

主体 Id。

public string Subject { get; }

Property Value

string

Tenant

租户。

public string Tenant { get; }

Property Value

string

TokenType

token 类型。

public string TokenType { get; }

Property Value

string

Methods

HasScope(string)

scope 授权判定(Covers(IEnumerable<string>, string) 语义)。

public bool HasScope(string required)

Parameters

required string

Returns

bool