IntrospectionResult
in package
FinalYes
The RFC 7662 introspection result (wire schema `IntrospectionResponse`, CONTRACT.md ยง12.1). Only `$active` is guaranteed; the server omits the metadata fields for an inactive token.
Table of Contents
Properties
- $active : bool
- $clientId : string|null
- $exp : int|null
- $iat : int|null
- $scope : string|null
- $sub : string|null
- $tokenType : string|null
Methods
- __construct() : mixed
Properties
$active read-only
public
bool
$active
$clientId read-only
public
string|null
$clientId
= null
$exp read-only
public
int|null
$exp
= null
$iat read-only
public
int|null
$iat
= null
$scope read-only
public
string|null
$scope
= null
$sub read-only
public
string|null
$sub
= null
$tokenType read-only
public
string|null
$tokenType
= null
Methods
__construct()
public
__construct(bool $active[, string|null $sub = null ][, string|null $clientId = null ][, string|null $scope = null ][, string|null $tokenType = null ][, int|null $exp = null ][, int|null $iat = null ]) : mixed
Parameters
- $active : bool
-
Whether the token is currently active.
- $sub : string|null = null
-
Subject the token was issued to.
- $clientId : string|null = null
-
Client the token was issued to.
- $scope : string|null = null
-
Scope granted to the token.
- $tokenType : string|null = null
-
Token type (
Bearer). - $exp : int|null = null
-
Expiry time, epoch seconds.
- $iat : int|null = null
-
Issued-at time, epoch seconds.