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
claimsIReadOnlyDictionary<string, string>
Properties
Claims
原始 claims(未注册字段照此透出——消费方忽略纪律由调用方自担)。
public IReadOnlyDictionary<string, string> Claims { get; }
Property Value
CnfJkt
DPoP 绑定拇印(WP11——cnf.jkt;非空 = sender-constrained 形态,资源侧须以 DPoP scheme + proof 消费)。
public string? CnfJkt { get; }
Property Value
Environment
环境。
public string Environment { get; }
Property Value
ExpiresAt
过期时刻(无 exp = DateTimeOffset.MaxValue——本地档不过期语义)。
public DateTimeOffset ExpiresAt { get; }
Property Value
Jti
jti(撤销锚点 / 审计关联)。
public string Jti { get; }
Property Value
Scopes
scope 集合。
public IReadOnlyList<string> Scopes { get; }
Property Value
Subject
主体 Id。
public string Subject { get; }
Property Value
Tenant
租户。
public string Tenant { get; }
Property Value
TokenType
token 类型。
public string TokenType { get; }
Property Value
Methods
HasScope(string)
scope 授权判定(Covers(IEnumerable<string>, string) 语义)。
public bool HasScope(string required)
Parameters
requiredstring