Interface ScopesRequestCacheDelegate

All Known Implementing Classes:
ScopesRequestCacheDelegateImpl

public interface ScopesRequestCacheDelegate
see the package-info.java for rationale.
Since:
9.0
  • Method Details

    • hasPermission

      boolean hasPermission(Permission permission, Object target)
    • hasPermission

      boolean hasPermission(String permission, Object target)
    • isScopePermitted

      boolean isScopePermitted(String scope)
      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

      Optional<String> 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()