Blacklist
class Blacklist implements BlacklistContract
Methods
No description
Add the token (jti claim) to the blacklist.
Add the token (jti claim) to the blacklist indefinitely.
Add the token to the blacklist indefinitely after its grace period.
Determine whether the token has been blacklisted.
Remove the token (jti claim) from the blacklist.
Remove all tokens from the blacklist.
Get the timestamp when the blacklist comes into effect This defaults to immediate (0 seconds).
Set the grace period.
Get the grace period.
Get the unique key held within the blacklist.
Set the refresh time limit.
Get the refresh time limit.
No description
Details
at line 15
__construct(StorageContract $storage, int $gracePeriod = 0, int|null $refreshTTL = 20160, int $leeway = 0, string $key = 'jti')
No description
at line 27
bool
add(array $payload)
Add the token (jti claim) to the blacklist.
at line 75
bool
addForever(array $payload)
Add the token (jti claim) to the blacklist indefinitely.
at line 83
protected bool
addForeverWithGracePeriod(array $payload)
Add the token to the blacklist indefinitely after its grace period.
at line 103
bool
has(array $payload)
Determine whether the token has been blacklisted.
at line 122
bool
remove(array $payload)
Remove the token (jti claim) from the blacklist.
at line 130
bool
clear()
Remove all tokens from the blacklist.
at line 139
protected int
getGraceTimestamp()
Get the timestamp when the blacklist comes into effect This defaults to immediate (0 seconds).
at line 152
Blacklist
setGracePeriod(int $gracePeriod)
Set the grace period.
Boot-only. Blacklist is a worker-lifetime singleton; runtime mutation affects every subsequent request and races across coroutines.
at line 162
int
getGracePeriod()
Get the grace period.
at line 170
string
getKey(array $payload)
Get the unique key held within the blacklist.
at line 193
Blacklist
setKey(string $key)
Set the unique key held within the blacklist.
Boot-only. Blacklist is a worker-lifetime singleton; runtime mutation affects every subsequent request and races across coroutines.
at line 208
Blacklist
setRefreshTTL(int|null $ttl)
Set the refresh time limit.
Boot-only. Blacklist is a worker-lifetime singleton; runtime mutation affects every subsequent request and races across coroutines.
at line 218
int|null
getRefreshTTL()
Get the refresh time limit.
at line 223
protected CarbonInterface
timestamp(int $timestamp)
No description