Package com.atlassian.crowd.cache
Class DelegatingUserAuthorisationCache
java.lang.Object
com.atlassian.crowd.cache.DelegatingUserAuthorisationCache
- All Implemented Interfaces:
UserAuthorisationCache
- Direct Known Subclasses:
ClusterAwareUserAuthorisationCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the user authorisation cache.isPermitted
(User user, String applicationName) Returns whether the user is permitted to authenticate with the application.void
setPermitted
(User user, String applicationName, boolean permitted) Sets whether the user is permitted to authenticate with the application.
-
Constructor Details
-
DelegatingUserAuthorisationCache
-
-
Method Details
-
setPermitted
Description copied from interface:UserAuthorisationCache
Sets whether the user is permitted to authenticate with the application.- Specified by:
setPermitted
in interfaceUserAuthorisationCache
- Parameters:
user
- the user to cache foreapplicationName
- name of the application to authenticatepermitted
- set totrue
if the user is allowed to authenticate with the application, otherwise false.
-
isPermitted
Description copied from interface:UserAuthorisationCache
Returns whether the user is permitted to authenticate with the application.- Specified by:
isPermitted
in 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>false
if the user is not permitted to authenticate, andnull
if the result is not in the cache.
-
clear
public void clear()Description copied from interface:UserAuthorisationCache
Clears the user authorisation cache.- Specified by:
clear
in interfaceUserAuthorisationCache
-