TokenIntrospectionResult class

Result of token introspection

Constructors

TokenIntrospectionResult({required bool active, String? scope, String? clientId, String? username, String? tokenType, int? expiresAt, int? issuedAt, int? notBefore, String? subject, dynamic audience, String? issuer, String? jti, Map<String, dynamic> extensions = const {}})
Create an introspection result; active reports whether the token is currently valid, and the remaining fields carry the RFC 7662 response metadata (scope, client, subject, validity window, and extensions).
TokenIntrospectionResult.fromJson(Map<String, dynamic> json)
Create from JSON response
factory

Properties

active → bool
Whether the token is currently active
final
audience → dynamic
Intended audience
final
clientId → String?
Client identifier
final
expirationTime → DateTime?
Get expiration as DateTime
no setter
expiresAt → int?
Expiration timestamp (seconds since epoch)
final
extensions → Map<String, dynamic>
Additional extension fields
final
hashCode → int
The hash code for this object.
no setterinherited
isExpired → bool
Check if token is expired
no setter
isNotYetValid → bool
Check if token is not yet valid
no setter
issuedAt → int?
Issued at timestamp (seconds since epoch)
final
issuedAtTime → DateTime?
Get issued at as DateTime
no setter
issuer → String?
Issuer
final
jti → String?
JWT ID
final
notBefore → int?
Not before timestamp (seconds since epoch)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String?
Space-separated list of scopes
final
scopesList → List<String>
Parse scopes into list
no setter
subject → String?
Subject of the token
final
tokenType → String?
Type of token (e.g., 'Bearer')
final
username → String?
Human-readable identifier for the resource owner
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert to JSON
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited