Blacklist
class Blacklist implements BlacklistContract
Methods
No description
Add the token (jti claim) to the blacklist.
Get the number of minutes until the token expiry.
Add the token (jti claim) to the blacklist indefinitely.
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 $refreshTTL = 20160, string $key = 'jti')
No description
at line 26
bool
add(array $payload)
Add the token (jti claim) to the blacklist.
at line 51
protected int
getMinutesUntilExpired(array $payload)
Get the number of minutes until the token expiry.
at line 69
bool
addForever(array $payload)
Add the token (jti claim) to the blacklist indefinitely.
at line 79
bool
has(array $payload)
Determine whether the token has been blacklisted.
at line 98
bool
remove(array $payload)
Remove the token (jti claim) from the blacklist.
at line 106
bool
clear()
Remove all tokens from the blacklist.
at line 117
protected int
getGraceTimestamp()
Get the timestamp when the blacklist comes into effect This defaults to immediate (0 seconds).
at line 130
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 140
int
getGracePeriod()
Get the grace period.
at line 148
mixed
getKey(array $payload)
Get the unique key held within the blacklist.
at line 165
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 180
Blacklist
setRefreshTTL(int $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 190
int
getRefreshTTL()
Get the refresh time limit.
at line 195
protected CarbonInterface
timestamp(int $timestamp)
No description