AgentAdminValidateCredentialRequest
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $audience : string|null
- When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected.
- $credential : string
- The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`.
- $type : AgentAdminValidateCredentialRequestType
- The kind of credential being validated — an agent API key or an agent access token.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$audience
When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected.
public
string|null
$audience
= null
$credential
The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`.
public
string
$credential
$type
The kind of credential being validated — an agent API key or an agent access token.
public
AgentAdminValidateCredentialRequestType
$type
Methods
__construct()
public
__construct(AgentAdminValidateCredentialRequestType $type, string $credential[, string|null $audience = null ]) : mixed
Parameters
- $type : AgentAdminValidateCredentialRequestType
- $credential : string
- $audience : string|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>