Class TopicPermissionInfo

java.lang.Object
org.acemq.rabbitmq.admin.TopicPermissionInfo

public final class TopicPermissionInfo extends Object
Authorisation for routing keys on a topic exchange.

A second, separate permission surface. PermissionInfo controls which resources a user may touch; this controls which routing keys they may publish or subscribe to on a given topic exchange.

It is easy to miss, because a user with no topic permissions at all is unrestricted on topic exchanges. Granting one is what starts enforcing anything, so an estate that has never set these has no topic authorisation regardless of how careful its regular permissions are.

  • Constructor Details

  • Method Details

    • user

      public String user()
    • vhost

      public String vhost()
    • exchange

      public String exchange()
      Returns:
      the topic exchange this applies to
    • write

      public String write()
      Returns:
      the routing-key pattern this user may publish with
    • read

      public String read()
      Returns:
      the routing-key pattern this user may bind and consume with
    • toString

      public String toString()
      Overrides:
      toString in class Object