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 String
CACHE_NAME
-
Constructor Summary
Constructors Constructor Description InternalTokenCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
containsRefreshTokenId(UUID refreshTokenId)
Check if the cache contains the given refresh token idstatic org.ehcache.Cache<UUID,Boolean>
getInstance()
Get cache instancestatic void
init()
Initialize cachestatic void
putRefreshTokenId(UUID refreshTokenId)
Put the given refresh token id in the cachestatic void
reinit()
Reinitialize cache after configuration changestatic void
removeRefreshTokenId(UUID refreshTokenId)
Removes the given refresh token id from the cachestatic void
shutdown()
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
-
-