Exemplo n.º 1
0
 /** Clear all cached security entries. */
 public static synchronized void clean() {
   cache.remove(FQN);
 }
Exemplo n.º 2
0
 /**
  * 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));
 }