extends |
ArrayWrapper |
|---|
A class representing a JWT response, which can be signed and/or encrypted.
The exact format of the response is determined by the configuration of the specified client.
This class is a subclass of ArrayWrapper . Token claims are stored in
ArrayWrapper->$container
and are accessed using array syntax. Token headers are set using the setHeaders() and setHeader() methods.
| Methods | ||
|---|---|---|
public
|
__construct(
string $issuer,
OAuthClient $client,
string $path_prefix,
array<string, mixed> $data = [],
string $default_signed_response_alg = null,
)
|
# |
public
|
setHeaders(array<string, string> $headers): void
|
# |
public
|
setHeader(string $header, string $value): void
|
# |
public
|
setShortHashClaim(string $claim, string $value): void
|
# |
public
|
render(KeySet $set = null): void
|
# |
public
|
buildJOSE(KeySet $set = null): string|null
|
# |
protected
|
getType(): string
|
# |
| Methods inherited from SimpleID\Util\ArrayWrapper |
|---|
loadData(), toArray(), offsetSet(), offsetExists(), offsetUnset(), offsetGet(), __set(), count(), getIterator(), get(), exists(), set(), append(), unset(), ref(), refLimit(), splitPath() |
| Properties | |||
|---|---|---|---|
protected
|
string
|
$issuer
|
# |
protected
|
OAuthClient
|
$client
|
# |
protected
|
string
|
$signed_response_alg = null
|
# |
protected
|
string
|
$encrypted_response_alg = null
|
# |
protected
|
string
|
$encrypted_response_enc = null
|
# |
protected
|
array<string, string>
|
$headers = []
|
# |
| Properties inherited from SimpleID\Util\ArrayWrapper |
|---|
$container |