Class InternalTokenCache
java.lang.Object
de.xima.fc.security.cache.InternalTokenCache
Cache for storing internal tokens
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsRefreshTokenId(UUID refreshTokenId) Check if the cache contains the given refresh token idGet cache instancestatic voidinit()Initialize cachestatic voidputRefreshTokenId(UUID refreshTokenId) Put the given refresh token id in the cachestatic voidreinit()Reinitialize cache after configuration changestatic voidremoveRefreshTokenId(UUID refreshTokenId) Removes the given refresh token id from the cachestatic voidshutdown()Removes the cache instance
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
InternalTokenCache
public InternalTokenCache()
-
-
Method Details
-
init
public static void init()Initialize cache -
reinit
public static void reinit()Reinitialize cache after configuration change -
getInstance
-
containsRefreshTokenId
Check if the cache contains the given refresh token id- Parameters:
refreshTokenId- the refresh token id- Returns:
- true if the cache contains the refresh token id, false otherwise
-
putRefreshTokenId
Put the given refresh token id in the cache- Parameters:
refreshTokenId- the refresh token id
-
removeRefreshTokenId
Removes the given refresh token id from the cache- Parameters:
refreshTokenId- the refresh token id
-
shutdown
public static void shutdown()Removes the cache instance
-