public interface OnAuthorizationCallback extends SynchronousCallback
MqttTopicPermissions.
When more OnAuthorizationCallbacks are added only one must return
a permission, which matches the required permission to successfully
authorize the client action.
It is highly recommended to use proper caching as this callback is
called every time HiveMQ asks for the client permissions.| Modifier and Type | Method and Description |
|---|---|
AuthorizationBehaviour |
getDefaultBehaviour()
Declares the default behaviour to use if none of the
MqttTopicPermissions returned by getPermissionForClient matches an activity. |
List<MqttTopicPermission> |
getPermissionsForClient(ClientData clientData)
Returns a list of
MqttTopicPermissions for this client. |
priorityList<MqttTopicPermission> getPermissionsForClient(ClientData clientData)
MqttTopicPermissions for this client.
Make sure you use proper caching of the returned values as this method will be called very oftenclientData - information about the clientMqttTopicPermissions for the given clientAuthorizationBehaviour getDefaultBehaviour()
MqttTopicPermissions returned by getPermissionForClient matches an activity.
The default behaviour should be AuthorizationBehaviour.NEXT in most cases.MqttTopicPermissions matches an activity.Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.