Interface SubscriptionAuthorizerInput
- All Superinterfaces:
ClientBasedInput
@DoNotImplement public interface SubscriptionAuthorizerInput extends ClientBasedInput
This is the input parameter of any
SubscriptionAuthorizer providing unmodifiable information about the Subscription and ClientBasedInput.- Since:
- 4.0.0, CE 2019.1
-
Method Summary
Modifier and Type Method Description @Immutable @NotNull SubscriptiongetSubscription()Get the unmodifiable subscription that has to be authorized.@NotNull Optional<Integer>getSubscriptionIdentifier()If this property is present, it contains the subscription identifier for the SUBSCRIBE packet.@NotNull UserPropertiesgetUserProperties()The user properties from the SUBSCRIBE packet.Methods inherited from interface com.hivemq.extension.sdk.api.parameter.ClientBasedInput
getClientInformation, getConnectionInformation
-
Method Details
-
getUserProperties
The user properties from the SUBSCRIBE packet.For an MQTT 3 client this MQTT 5 property will always contain an empty list as the user properties.
- Returns:
- The
UserPropertiesof the SUBSCRIBE packet. - Since:
- 4.0.0, CE 2019.1
-
getSubscriptionIdentifier
If this property is present, it contains the subscription identifier for the SUBSCRIBE packet.For an MQTT 3 client this
Optionalfor the MQTT 5 property will always be empty.- Returns:
- An
Optionalcontaining the subscription identifier of the SUBSCRIBE packet if present. - Since:
- 4.0.0, CE 2019.1
-
getSubscription
Get the unmodifiable subscription that has to be authorized.- Returns:
- The
Subscriptionfor this authorization call. - Since:
- 4.0.0, CE 2019.1
-