Interface PublishAuthorizer
-
- All Superinterfaces:
Authorizer
public interface PublishAuthorizer extends Authorizer
Interface for the PUBLISH authorization.An Authorizer is always called by the same Thread for all messages from the same client.
If the same instance is shared between multiple clients it can be called in different Threads and must therefore be thread-safe.
- Since:
- 4.0.0, CE 2019.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
authorizePublish(@NotNull PublishAuthorizerInput publishAuthorizerInput, @NotNull PublishAuthorizerOutput publishAuthorizerOutput)
This method is called for every PUBLISH packet and Will Publish, that thePublishAuthorizer
is delegated to authorize.
-
-
-
Method Detail
-
authorizePublish
void authorizePublish(@NotNull PublishAuthorizerInput publishAuthorizerInput, @NotNull PublishAuthorizerOutput publishAuthorizerOutput)
This method is called for every PUBLISH packet and Will Publish, that thePublishAuthorizer
is delegated to authorize.When the extension is enabled after HiveMQ is already running, this method will also be called for future PUBLISHes of clients that are already connected.
- Parameters:
publishAuthorizerInput
- ThePublishAuthorizerInput
.publishAuthorizerOutput
- ThePublishAuthorizerOutput
.- Since:
- 4.0.0, CE 2019.1
-
-