Interface TopicPermission


  • @DoNotImplement
    public interface TopicPermission
    A topic permission represents an authorization action.

    The topic permission can be used to allow/deny a PUBLISH or Subscription, if it matches all criteria defined in the topic permission.

    Since:
    4.0.0, CE 2019.1
    • Method Detail

      • getTopicFilter

        @NotNull String getTopicFilter()
        The topic filter is used to define for what topic filter the topic permission is applied.
        Returns:
        The topic filter for this permission.
        Since:
        4.0.0, CE 2019.1
      • getQos

        @NotNull TopicPermission.Qos getQos()
        The quality of service (Qos) levels are used to define for which QoS levels the topic permission is applied.
        Returns:
        The TopicPermission.Qos for this permission.
        Since:
        4.0.0, CE 2019.1
      • getPublishRetain

        @NotNull TopicPermission.Retain getPublishRetain()
        Retain is used to check for what type of PUBLISH message (normal/retained message) the topic permission is applied.
        Returns:
        The TopicPermission.Retain for this permission. Only used for PUBLISH.
        Since:
        4.0.0, CE 2019.1
      • getSharedGroup

        @NotNull String getSharedGroup()
        The shared group is used to check for what shared group the topic permission is applied.
        Returns:
        The shared group that this permission matches. Only used for shared subscriptions.
        Since:
        4.0.0, CE 2019.1