public interface SecurityService
Modifier and Type | Method and Description |
---|---|
Set<String> |
checkScopes(Set<String> requestedScopes)
Returns the sub-set of requested scopes that the user is permitted to access.
|
Set<String> |
extractPermissions(Set<String> scopes)
Returns the set of permissions the user has for the given scopes.
|
Set<String> checkScopes(Set<String> requestedScopes)
SecurityServiceOAuth2RequestFactory
to check that the
requested scopes are accessible for the current user. If none of the requested scopes are
accessible, this will return an empty set.requestedScopes
- the set of requested scopesSet<String> extractPermissions(Set<String> scopes)
SecurityServiceAccessTokenConverter
to extract the set
of permissions the user has for the requested scopes.scopes
- the scopesCopyright © 2021. All rights reserved.