Interface ScopesRequestCacheDelegate
- All Known Implementing Classes:
ScopesRequestCacheDelegateImpl
public interface ScopesRequestCacheDelegate
see the package-info.java for rationale.
- Since:
- 9.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Optional<com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache>
boolean
hasPermission
(Permission permission, Object target) boolean
hasPermission
(String permission, Object target) boolean
isScopePermitted
(String scope) Checks if the current request has credentials or an access token that permittes the given scope.void
setRequestCache
(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache)
-
Method Details
-
hasPermission
-
hasPermission
-
isScopePermitted
Checks if the current request has credentials or an access token that permittes the given scope.- Parameters:
scope
- the scope to check- Returns:
- true, if the scope is permitted for the current request
- Since:
- 9.4
-
getApplicationNameForRequest
-
getRequestCache
Optional<com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache> getRequestCache() -
setRequestCache
void setRequestCache(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache) -
clearRequestCache
void clearRequestCache()
-