Package com.atlassian.crowd.cache
Interface UserAuthorisationCache
- All Known Implementing Classes:
ClusterAwareUserAuthorisationCache,DelegatingUserAuthorisationCache,UserAuthorisationCacheImpl
public interface UserAuthorisationCache
Cache to determine whether a user is authorised to authenticate with an application.
Was public api until 3.0.
- Since:
- v2.2
-
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.
-
Method Details
-
setPermitted
Sets whether the user is permitted to authenticate with the application.- 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
Returns whether the user is permitted to authenticate with the application.- 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
void clear()Clears the user authorisation cache.
-