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

com.hivemq.spi.callback.security.authorization.AuthorizationResult Maven / Gradle / Ivy

There is a newer version: 3.4.4
Show newest version
package com.hivemq.spi.callback.security.authorization;

import com.hivemq.spi.annotations.NotNull;
import com.hivemq.spi.topic.MqttTopicPermission;

import java.util.List;

/**
 * The Result of one OnAuthorizationCallback call
 *
 * @author Christoph Schäbel
 */
public interface AuthorizationResult {

    /**
     * A list of all topic permissions which are granted
     *
     * @return a list of topic permission
     */
    List getMqttTopicPermissions();

    /**
     * The default {@link AuthorizationBehaviour} if the getMqttTopicPermissions() method returns
     * an empty list.
     *
     * @return the deafult authorization behaviour
     */
    @NotNull
    AuthorizationBehaviour getDefaultBehaviour();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy