com.hivemq.spi.callback.security.authorization.AuthorizationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hivemq-spi Show documentation
Show all versions of hivemq-spi Show documentation
The Service Provider Interfaces for developing HiveMQ plugins.
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();
}