<?php declare(strict_types=1); namespace Kreait\Firebase\JWT; use Stringable; final class SecureToken implements Contract\Token, Stringable { /** * @param array<string, mixed> $headers * @param array<string, mixed> $payload */ private function __construct(private readonly string $encodedString, private readonly array $headers, private readonly array $payload) { } public function __toString(): string { return $this->toString(); } /** * @param array<string, mixed> $headers * @param array<string, mixed> $payload */ public static function withValues(string $encodedString, array $headers, array $payload): self { return new self($encodedString, $headers, $payload); } /** * @return array<string, mixed> */ public function headers(): array { return $this->headers; } /** * @return array<string, mixed> */ public function payload(): array { return $this->payload; } public function toString(): string { return $this->encodedString; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Action | Folder | 0755 |
|
|
Contract | Folder | 0755 |
|
|
Error | Folder | 0755 |
|
|
Keys | Folder | 0755 |
|
|
Signer | Folder | 0755 |
|
|
Token | Folder | 0755 |
|
|
Value | Folder | 0755 |
|
|
CustomTokenGenerator.php | File | 1.83 KB | 0644 |
|
GooglePublicKeys.php | File | 1.37 KB | 0644 |
|
IdTokenVerifier.php | File | 2.83 KB | 0644 |
|
InsecureToken.php | File | 1.1 KB | 0644 |
|
SecureToken.php | File | 1.1 KB | 0644 |
|
SessionCookieVerifier.php | File | 2.97 KB | 0644 |
|
Util.php | File | 694 B | 0644 |
|