public interface AuthScopeStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(String authScopeName,
Set<String> userGroups)
Authorize user for given resource and action
|
AuthScope |
read(String authScopeName)
Read authScope for given scope key.
|
List<AuthScope> |
readAll()
Read all authScopes.
|
void |
update(String authScopeName,
List<String> userGroups)
Update auth
|
boolean authorize(String authScopeName, Set<String> userGroups) throws AuthServerException, AuthNotFoundException
authScopeName - an authScopeNameuserGroups - set of user groups of userAuthServerException - throws if error occurs while authorizationAuthNotFoundExceptionvoid update(String authScopeName, List<String> userGroups) throws AuthServerException
authScopeName - an authScopeNameuserGroups - set of user groups of userAuthServerException - throws if error occurs while granting scope.AuthScope read(String authScopeName) throws AuthServerException
authScopeName - an authScopeNameAuthServerException - throws if error occurs while reading scope.List<AuthScope> readAll() throws AuthServerException
AuthServerException - throws if error occurs while reading scope.Copyright © 2018 WSO2. All rights reserved.