public interface ScopeResolver
Scope objects by name.| Modifier and Type | Method and Description |
|---|---|
Set<Scope> |
getAvailableScopes()
Gets the set of scopes for this product
|
Scope |
getScope(String scopeName)
Will try to get the scope from the name.
|
boolean |
hasScopePermission(Scope tokenScope,
Scope configScope)
Will check if the tokenScope has permission against the configScope
If the tokenScope is higher than the configScope then this will return false
|
Scope getScope(String scopeName) throws InvalidScopeException
scopeName - the scope name to matchInvalidScopeException - if fails to find the scopefor a list of available scopes and their namesboolean hasScopePermission(Scope tokenScope, Scope configScope)
tokenScope - the scope to checkconfigScope - the scope to check againstCopyright © 2020–2023 Atlassian. All rights reserved.