Class CurrentUser

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

public final class CurrentUser extends Object
Who the broker thinks you are.

Worth calling once at startup. Every permission failure later is a 401 or a 403 on some unrelated-looking call, and "this user has no administrator tag" is a far better thing to report at startup than "could not create vhost" an hour into a provisioning run.

  • Constructor Details

  • Method Details

    • name

      public String name()
    • tags

      public List<String> tags()
      Returns:
      the tags this user holds: administrator, monitoring, and so on
    • isInternal

      public boolean isInternal()
      Returns:
      whether the user is in the broker's internal database rather than LDAP or OAuth
    • canAdminister

      public boolean canAdminister()
      Returns:
      whether this user may change anything through the management API
    • canMonitor

      public boolean canMonitor()
      Returns:
      whether this user may read the whole broker through the management API
    • toString

      public String toString()
      Overrides:
      toString in class Object