public class NoOpMacHandler extends Object implements MandatoryAccessController
NoOpMacHandler allows every request.| Constructor and Description |
|---|
NoOpMacHandler() |
| 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)
MandatoryAccessControllerinitialize in interface MandatoryAccessControllerstartupContext - the startup context provides registered services in brokeruserStore - contains the user ID to user group mappingproperties - propertiespublic boolean authorize(String scopeName, Set<String> userGroups)
MandatoryAccessControllerauthorize in interface MandatoryAccessControllerscopeName - a scope keyuserGroups - set of user groups to checkCopyright © 2018 WSO2. All rights reserved.