public interface SystemScopeService
Modifier and Type | Field and Description |
---|---|
static String |
OFFLINE_ACCESS |
static String |
OPENID_SCOPE |
static String |
REGISTRATION_TOKEN_SCOPE |
static Set<SystemScope> |
reservedScopes |
static String |
RESOURCE_TOKEN_SCOPE |
static String |
UMA_AUTHORIZATION_SCOPE |
static String |
UMA_PROTECTION_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> |
getReserved()
Get all the reserved system scopes.
|
Set<SystemScope> |
getRestricted()
Get all the registered scopes that are restricted.
|
Set<SystemScope> |
getUnrestricted()
Get all the registered scopes that aren't restricted.
|
void |
remove(SystemScope scope) |
Set<SystemScope> |
removeReservedScopes(Set<SystemScope> scopes)
Remove any system-reserved scopes from the set and return the result.
|
Set<SystemScope> |
removeRestrictedAndReservedScopes(Set<SystemScope> scopes)
Remove any system-reserved or registered 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.
|
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 OPENID_SCOPE
static final String REGISTRATION_TOKEN_SCOPE
static final String RESOURCE_TOKEN_SCOPE
static final String UMA_PROTECTION_SCOPE
static final String UMA_AUTHORIZATION_SCOPE
static final Set<SystemScope> reservedScopes
Set<SystemScope> getAll()
Set<SystemScope> getDefaults()
Set<SystemScope> getReserved()
Set<SystemScope> getRestricted()
Set<SystemScope> getUnrestricted()
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<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes)
scopes
- Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes)
scopes
- Copyright © 2018. All rights reserved.