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