code: public Permission getConsumerPermission(@Nullable MasterAccessControlEntry master,
                                              @Nullable MasterAccessControlEntry mediator,
                                              @Nullable OwnerAccessControlEntry owner,
                                              TrustLevel trustLevel) {
  
          return getPermission(PermissionType.CONSUMER, master, mediator, owner, trustLevel);
      }
docs: Get the consumer permission for given combination of control entries and with the given trust level.
  
  @param master     The master access control entry
  @param mediator   The mediator access control entry
  @param owner      The owner access control entry
  @param trustLevel The trust level of the user sending the message
  @return consumer permission