Class InternalTokenCache


  • public class InternalTokenCache
    extends Object
    Cache for storing internal tokens
    • Constructor Detail

      • InternalTokenCache

        public InternalTokenCache()
    • Method Detail

      • init

        public static void init()
        Initialize cache
      • reinit

        public static void reinit()
        Reinitialize cache after configuration change
      • getInstance

        public static org.ehcache.Cache<UUID,​Boolean> getInstance()
        Get cache instance
      • 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