public interface MandatoryAccessController
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(String scopeName,
Set<String> userGroups)
Authorize user with given scope key.
|
void |
initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,String> properties)
Initialize authorization controller based on given auth configuration, user store.
|
void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,String> properties)
throws Exception
startupContext - the startup context provides registered services in brokeruserStore - contains the user ID to user group mappingproperties - propertiesExceptionboolean authorize(String scopeName, Set<String> userGroups) throws AuthNotFoundException
scopeName - a scope keyuserGroups - set of user groups to checkAuthNotFoundException - throws if scope is not foundCopyright © 2018 WSO2. All rights reserved.