public class UserAuthorisationCacheImpl extends Object implements UserAuthorisationCache
| Constructor and Description |
|---|
UserAuthorisationCacheImpl(com.atlassian.cache.Cache<String,Boolean> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the user authorisation cache.
|
Boolean |
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.
|
public void setPermitted(User user, String applicationName, boolean permitted)
UserAuthorisationCachesetPermitted in interface UserAuthorisationCacheuser - the user to cache foreapplicationName - name of the application to authenticatepermitted - set to true if the user is allowed to authenticate with the application, otherwise false.public Boolean isPermitted(User user, String applicationName)
UserAuthorisationCacheisPermitted in interface UserAuthorisationCacheuser - the user to check forapplicationName - name of the application the user is authenticating againstpublic void clear()
UserAuthorisationCacheclear in interface UserAuthorisationCacheCopyright © 2018 Atlassian. All rights reserved.