public class DelegatingUserAuthorisationCache extends Object implements UserAuthorisationCache
Constructor and Description |
---|
DelegatingUserAuthorisationCache(UserAuthorisationCache delegate) |
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 DelegatingUserAuthorisationCache(UserAuthorisationCache delegate)
public void setPermitted(User user, String applicationName, boolean permitted)
UserAuthorisationCache
setPermitted
in interface UserAuthorisationCache
user
- 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.@Nullable public Boolean isPermitted(User user, String applicationName)
UserAuthorisationCache
isPermitted
in interface UserAuthorisationCache
user
- the user to check forapplicationName
- name of the application the user is authenticating againstpublic void clear()
UserAuthorisationCache
clear
in interface UserAuthorisationCache
Copyright © 2021 Atlassian. All rights reserved.