public interface SystemScopeService
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_TOKEN_SCOPE |
static String |
OFFLINE_ACCESS |
static String |
REGISTRATION_TOKEN_SCOPE |
static String |
RESOURCE_TOKEN_SCOPE |
| Modifier and Type | Method and Description |
|---|---|
Set<SystemScope> |
fromStrings(Set<String> scope)
Translate the set of scope strings into a set of SystemScope objects.
|
Set<SystemScope> |
getAll() |
SystemScope |
getById(Long id) |
SystemScope |
getByValue(String value) |
Set<SystemScope> |
getDefaults()
Get all scopes that are defaulted to new clients on this system
|
Set<SystemScope> |
getDynReg()
Get all scopes that are allowed for dynamic registration on this system
|
void |
remove(SystemScope scope) |
Set<String> |
removeRestrictedScopes(Set<String> scopes)
Remove any system-restricted scopes from the set and return the result.
|
SystemScope |
save(SystemScope scope) |
boolean |
scopesMatch(Set<String> expected,
Set<String> actual)
Test whether the scopes in both sets are compatible, with special
processing for structured scopes.
|
Set<String> |
toStrings(Set<SystemScope> scope)
Pluck the scope values from the set of SystemScope objects and return a list of strings
|
static final String OFFLINE_ACCESS
static final String ID_TOKEN_SCOPE
static final String REGISTRATION_TOKEN_SCOPE
static final String RESOURCE_TOKEN_SCOPE
Set<SystemScope> getAll()
Set<SystemScope> getDefaults()
Set<SystemScope> getDynReg()
SystemScope getById(Long id)
SystemScope getByValue(String value)
void remove(SystemScope scope)
SystemScope save(SystemScope scope)
Set<SystemScope> fromStrings(Set<String> scope)
scope - Set<String> toStrings(Set<SystemScope> scope)
scope - boolean scopesMatch(Set<String> expected, Set<String> actual)
Set<String> removeRestrictedScopes(Set<String> scopes)
scopes - Copyright © 2015. All Rights Reserved.