Package com.atlassian.crowd.cache
Class UserAuthorisationCacheImpl
java.lang.Object
com.atlassian.crowd.cache.UserAuthorisationCacheImpl
- All Implemented Interfaces:
UserAuthorisationCache
Default implementation of UserAuthorisationCache in Crowd.
- Since:
- v2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the user authorisation cache.isPermitted(User user, String applicationName) Returns whether the user is permitted to authenticate with the application.voidsetPermitted(User user, String applicationName, boolean permitted) Sets whether the user is permitted to authenticate with the application.
-
Constructor Details
-
UserAuthorisationCacheImpl
-
-
Method Details
-
setPermitted
Description copied from interface:UserAuthorisationCacheSets whether the user is permitted to authenticate with the application.- Specified by:
setPermittedin interfaceUserAuthorisationCache- Parameters:
user- the user to cache foreapplicationName- name of the application to authenticatepermitted- set totrueif the user is allowed to authenticate with the application, otherwise false.
-
isPermitted
Description copied from interface:UserAuthorisationCacheReturns whether the user is permitted to authenticate with the application.- Specified by:
isPermittedin interfaceUserAuthorisationCache- Parameters:
user- the user to check forapplicationName- name of the application the user is authenticating against- Returns:
true</tt> if the user is permitted to authenticate with the application, <tt>falseif the user is not permitted to authenticate, andnullif the result is not in the cache.
-
clear
public void clear()Description copied from interface:UserAuthorisationCacheClears the user authorisation cache.- Specified by:
clearin interfaceUserAuthorisationCache
-