Package de.xima.fc.security.cache
Class InternalTokenCache
- java.lang.Object
-
- de.xima.fc.security.cache.InternalTokenCache
-
public class InternalTokenCache extends Object
Cache for storing internal tokens
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAME
-
Constructor Summary
Constructors Constructor Description InternalTokenCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsRefreshTokenId(UUID refreshTokenId)Check if the cache contains the given refresh token idstatic org.ehcache.Cache<UUID,Boolean>getInstance()Get 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 Detail
-
CACHE_NAME
public static final String CACHE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init()
Initialize cache
-
reinit
public static void reinit()
Reinitialize cache after configuration change
-
containsRefreshTokenId
public static boolean containsRefreshTokenId(UUID refreshTokenId)
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
public static void putRefreshTokenId(UUID refreshTokenId)
Put the given refresh token id in the cache- Parameters:
refreshTokenId- the refresh token id
-
removeRefreshTokenId
public static void removeRefreshTokenId(UUID refreshTokenId)
Removes the given refresh token id from the cache- Parameters:
refreshTokenId- the refresh token id
-
shutdown
public static void shutdown()
Removes the cache instance
-
-