Interface ScopesRequestCacheDelegate
- All Known Implementing Classes:
- ScopesRequestCacheDelegateImpl
public interface ScopesRequestCacheDelegate
see the package-info.java for rationale.
- Since:
- 9.0
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier 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
- 
isScopePermittedChecks 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
- 
getRequestCacheOptional<com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache> getRequestCache()
- 
setRequestCachevoid setRequestCache(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache) 
- 
clearRequestCachevoid clearRequestCache()
 
-