/** Clear all cached security entries. */ public static synchronized void clean() { cache.remove(FQN); }
/** * Remove the cached roles from a specific user. * * @param userId The id of the user to remove from the cache */ public static synchronized void remove(int userId) { cache.remove(FQN, Integer.toString(userId)); }