lucee.Componentmodels.jwt.storages.CacheTokenStorage
Copyright since 2016 by Ortus Solutions, Corp www.ortussolutions.com --- A CacheBox cache based token storage
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cache
The linked cache provider.
|
true
|
false
|
|
any
|
cachebox
|
true
|
false
|
|
any
|
jwtService
|
true
|
false
|
|
any
|
keyPrefix
The configured key prefix for the storage.
|
true
|
false
|
|
any
|
properties
Storage properties.
|
true
|
false
|
|
any
|
settings
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
private any
|
buildKey(any key)
Build out a prefixed key. |
boolean
|
clear(any key)
Invalidate/delete one or more keys from the storage. |
any
|
clearAll()
Clear all the keys in the storage. |
any
|
configure(any properties)
Configure the storage by passing in the properties. |
boolean
|
exists(any key)
Verify if the passed in token key exists. |
struct
|
get(any key, [struct defaultValue])
Retrieve the token via the cache key, if the key doesn't exist a TokenNotFoundException will be thrown. |
string
|
getCache()
|
string
|
getCachebox()
|
string
|
getJwtService()
|
string
|
getKeyPrefix()
|
string
|
getProperties()
|
string
|
getSettings()
|
string
|
getWirebox()
|
array
|
keys()
Retrieve all the jwt keys stored in the storage. |
any
|
set(any key, any token, any expiration, any payload)
Set a token in the storage. |
any
|
setCache(any cache)
|
any
|
setCachebox(any cachebox)
|
any
|
setJwtService(any jwtService)
|
any
|
setKeyPrefix(any keyPrefix)
|
any
|
setProperties(any properties)
|
any
|
setSettings(any settings)
|
any
|
setWirebox(any wirebox)
|
numeric
|
size()
The size of the storage. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
The linked cache provider
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- cacheboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- JwtService@cbSecurityserializable
- trueThe configured key prefix for the storage
access
- publicrequired
- falsereturntype
- anyserializable
- trueStorage properties
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:moduleSettings:cbSecurityserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Build out a prefixed key
key
Invalidate/delete one or more keys from the storage
key
- A cache key or an array of keys to clearClear all the keys in the storage
Configure the storage by passing in the properties
properties
- The storage propertiesVerify if the passed in token key exists
key
- The cache keyRetrieve the token via the cache key, if the key doesn't exist a TokenNotFoundException will be thrown
key
- The cache keydefaultValue
- If not found, return a default valueRetrieve all the jwt keys stored in the storage
Set a token in the storage
key
- The cache keytoken
- The token to storeexpiration
- The token expirationpayload
- The payloadcache
cachebox
jwtService
keyPrefix
properties
settings
wirebox
The size of the storage