Class TokenRedisClient
java.lang.Object
org.odpi.openmetadata.userinterface.uichassis.springboot.auth.redis.TokenRedisClient
- All Implemented Interfaces:
TokenClient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
retrieve expiration from persistencesetKeepTTL
(String key, String value) Used to postpone expiration but keep existing absolute timeoutvoid
shut down client connectionretrieve the absolute timeout of token in seconds
-
Constructor Details
-
TokenRedisClient
-
-
Method Details
-
shutdownClient
public void shutdownClient()Description copied from interface:TokenClient
shut down client connection- Specified by:
shutdownClient
in interfaceTokenClient
-
set
- Specified by:
set
in interfaceTokenClient
- Parameters:
key
- the tokenseconds
- for absolute timeoutvalue
- representation of expiration- Returns:
- the persistence response
-
set
- Specified by:
set
in interfaceTokenClient
- Parameters:
key
- the tokenvalue
- representation of expiration- Returns:
- the persistence response
-
setKeepTTL
Description copied from interface:TokenClient
Used to postpone expiration but keep existing absolute timeout- Specified by:
setKeepTTL
in interfaceTokenClient
- Parameters:
key
- the tokenvalue
- representation of expiration- Returns:
- the persistence response
-
get
Description copied from interface:TokenClient
retrieve expiration from persistence- Specified by:
get
in interfaceTokenClient
- Parameters:
key
- the token- Returns:
- expiration or null if token doesn't exist
-
ttl
Description copied from interface:TokenClient
retrieve the absolute timeout of token in seconds- Specified by:
ttl
in interfaceTokenClient
- Parameters:
key
- the token to determine ttl for- Returns:
- the ttl for the token
-
exists
-
del
- Specified by:
del
in interfaceTokenClient
- Parameters:
keys
- the tokens to be removed from persistence
-