com.atlassian.crowd.cache
public class UserAuthorisationCacheImpl extends Object implements UserAuthorisationCache
| Constructor and Description |
|---|
UserAuthorisationCacheImpl(CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the user authorisation cache.
|
void |
clear(String userName,
String applicationName)
Clears a user from the user authorisation cache.
|
Boolean |
isPermitted(String userName,
String applicationName)
Returns whether the user is permitted to authenticate with the application.
|
void |
setPermitted(String userName,
String applicationName,
boolean permitted)
Sets whether the user is permitted to authenticate with the application.
|
public UserAuthorisationCacheImpl(CacheManager cacheManager)
public void setPermitted(String userName, String applicationName, boolean permitted)
UserAuthorisationCachesetPermitted in interface UserAuthorisationCacheuserName - usernameapplicationName - name of the application to authenticatepermitted - set to true if the user is allowed to authenticate with the application, otherwise false.public Boolean isPermitted(String userName, String applicationName)
UserAuthorisationCacheisPermitted in interface UserAuthorisationCacheuserName - usernameapplicationName - name of the application the user is authenticating againstpublic void clear()
UserAuthorisationCacheclear in interface UserAuthorisationCachepublic void clear(String userName, String applicationName)
UserAuthorisationCacheclear in interface UserAuthorisationCacheuserName - usernameapplicationName - name of the application to authenticateCopyright © 2015 Atlassian. All Rights Reserved.