All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ballerina.messaging.broker.auth.authorization.provider.NoOpMacHandler Maven / Gradle / Ivy

There is a newer version: 0.970.5
Show newest version
package io.ballerina.messaging.broker.auth.authorization.provider;

import io.ballerina.messaging.broker.auth.authorization.MandatoryAccessController;
import io.ballerina.messaging.broker.auth.authorization.UserStore;
import io.ballerina.messaging.broker.common.StartupContext;

import java.util.Map;
import java.util.Set;

/**
 * {@link NoOpMacHandler} allows every request.
 */
public class NoOpMacHandler implements MandatoryAccessController {
    @Override
    public void initialize(StartupContext startupContext, UserStore userStore, Map properties) {
        // Do nothing
    }

    @Override
    public boolean authorize(String scopeName, Set userGroups) {
        // We can not do much since we don't manage MAC in memory.
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy