Class DefaultScopesRequestCacheDelegate
java.lang.Object
com.atlassian.jira.security.plugin.DefaultScopesRequestCacheDelegate
- All Implemented Interfaces:
ScopesRequestCacheDelegate
Delegate class for ScopesRequestCache which is provided by the oauth2-scopes-plugin.
As the plugin could be disabled or uninstalled at any time this class ensures that the Application will continue to run as expected in that unlikely scenario
See below for the implementation of ScopesRequestCache and the corresponding filter that adds the scopes to the RequestCache
https://stash.atlassian.com/projects/CWD/repos/atlassian-oauth2/browse/scopes/scopes-plugin/src/main/java/com/atlassian/oauth2/scopes/request/DefaultScopesRequestCache.java
https://stash.atlassian.com/projects/CWD/repos/atlassian-oauth2/browse/provider/provider-core/src/main/java/com/atlassian/oauth2/provider/core/web/AccessTokenFilter.java
- Since:
- 8.22.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultScopesRequestCacheDelegate
(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache
boolean
hasPermission
(GlobalPermissionKey permission) boolean
hasPermission
(GlobalPermissionEntry permission) boolean
hasPermission
(ProjectPermissionKey permission) void
setRequestCache
(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache)
-
Constructor Details
-
DefaultScopesRequestCacheDelegate
public DefaultScopesRequestCacheDelegate(com.atlassian.plugin.osgi.container.OsgiContainerManager osgiContainerManager)
-
-
Method Details
-
hasPermission
- Specified by:
hasPermission
in interfaceScopesRequestCacheDelegate
-
hasPermission
- Specified by:
hasPermission
in interfaceScopesRequestCacheDelegate
-
hasPermission
- Specified by:
hasPermission
in interfaceScopesRequestCacheDelegate
-
getApplicationNameForRequest
- Specified by:
getApplicationNameForRequest
in interfaceScopesRequestCacheDelegate
-
getRequestCache
public com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache getRequestCache()- Specified by:
getRequestCache
in interfaceScopesRequestCacheDelegate
-
setRequestCache
public void setRequestCache(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache) - Specified by:
setRequestCache
in interfaceScopesRequestCacheDelegate
-
clearRequestCache
public void clearRequestCache()- Specified by:
clearRequestCache
in interfaceScopesRequestCacheDelegate
-