public class DefaultMacHandler extends Object implements MandatoryAccessController
| Constructor and Description |
|---|
DefaultMacHandler() |
| 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.
|
public void initialize(io.ballerina.messaging.broker.common.StartupContext startupContext,
UserStore userStore,
Map<String,String> properties)
throws Exception
MandatoryAccessControllerinitialize in interface MandatoryAccessControllerstartupContext - the startup context provides registered services in brokeruserStore - contains the user ID to user group mappingproperties - propertiesExceptionpublic boolean authorize(String scopeName, Set<String> userGroups) throws AuthNotFoundException
MandatoryAccessControllerauthorize in interface MandatoryAccessControllerscopeName - a scope keyuserGroups - set of user groups to checkAuthNotFoundException - throws if scope is not foundCopyright © 2018 WSO2. All rights reserved.