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 TypeMethodDescriptionvoidOptional<com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache> booleanhasPermission(Permission permission, Object target) booleanhasPermission(String permission, Object target) booleanisScopePermitted(String scope) Checks if the current request has credentials or an access token that permittes the given scope.voidsetRequestCache(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()
-