Documentation

CachedKeySet
in package
implements ArrayAccess

Tags
implements

Table of Contents

Interfaces

ArrayAccess

Properties

$cache  : CacheItemPoolInterface
$cacheItem  : CacheItemInterface|null
$cacheKey  : string
$cacheKeyPrefix  : string
$defaultAlg  : string|null
$expiresAfter  : int|null
$httpClient  : ClientInterface
$httpFactory  : RequestFactoryInterface
$jwksUri  : string
$keySet  : array<string, array<string|int, mixed>>
$maxCallsPerMinute  : int
$maxKeyLength  : int
$rateLimit  : bool
$rateLimitCacheKey  : string

Methods

__construct()  : mixed
offsetExists()  : bool
offsetGet()  : Key
offsetSet()  : void
offsetUnset()  : void
formatJwksForCache()  : array<string|int, mixed>
getCacheItem()  : CacheItemInterface
keyIdExists()  : bool
rateLimitExceeded()  : bool
setCacheKeys()  : void

Properties

$httpFactory

private RequestFactoryInterface $httpFactory

$keySet

private array<string, array<string|int, mixed>> $keySet

Methods

__construct()

public __construct(string $jwksUri, ClientInterface $httpClient, RequestFactoryInterface $httpFactory, CacheItemPoolInterface $cache[, int|null $expiresAfter = null ][, bool $rateLimit = false ][, string|null $defaultAlg = null ]) : mixed
Parameters
$jwksUri : string
$httpClient : ClientInterface
$httpFactory : RequestFactoryInterface
$cache : CacheItemPoolInterface
$expiresAfter : int|null = null
$rateLimit : bool = false
$defaultAlg : string|null = null

offsetExists()

public offsetExists(string $keyId) : bool
Parameters
$keyId : string
Return values
bool

offsetGet()

public offsetGet(string $keyId) : Key
Parameters
$keyId : string
Return values
Key

offsetSet()

public offsetSet(string $offset, Key $value) : void
Parameters
$offset : string
$value : Key

offsetUnset()

public offsetUnset(string $offset) : void
Parameters
$offset : string

formatJwksForCache()

private formatJwksForCache(string $jwks) : array<string|int, mixed>
Parameters
$jwks : string
Return values
array<string|int, mixed>

keyIdExists()

private keyIdExists(string $keyId) : bool
Parameters
$keyId : string
Return values
bool

rateLimitExceeded()

private rateLimitExceeded() : bool
Return values
bool

        
On this page

Search results