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.
|
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 void setPermitted(String userName, String applicationName, boolean permitted)
UserAuthorisationCache
setPermitted
in interface UserAuthorisationCache
userName
- 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)
UserAuthorisationCache
isPermitted
in interface UserAuthorisationCache
userName
- usernameapplicationName
- name of the application the user is authenticating againstpublic void clear()
UserAuthorisationCache
clear
in interface UserAuthorisationCache
public void clear(String userName, String applicationName)
UserAuthorisationCache
clear
in interface UserAuthorisationCache
userName
- usernameapplicationName
- name of the application to authenticateCopyright © 2016 Atlassian. All rights reserved.