code: public boolean checkTopicAccess(Subject authenticatedSubject,
                                      String topicSpace, String topicName, String operationType) throws MessagingAuthorizationException {
  
          SibTr.entry(tc, CLASS_NAME + "checkTopicAccess", new Object[] { authenticatedSubject, topicSpace, topicName, operationType });
  
          boolean result = false;
          if (!runtimeSecurityService.isMessagingSecure()) {
              result = true;
          } else {
              if (messagingAuthorizationService != null) {
                  result = messagingAuthorizationService.checkTopicAccess(authenticatedSubject, topicSpace, topicName, operationType);
              }
          }
  
          SibTr.exit(tc, CLASS_NAME + "checkDestinationAccess", result);
          return result;
      }
docs: Checks if the User passed has access to the Topic to perform an action
  <ul>
  <li> When Messaging Security is disabled, it always returns true </li>
  <li> When Messaging Security is enabled, it calls
  MessagingAuthorizationService to check for access </li>
  </ul>
  
  @param authenticatedSubject
  Subject got after authenticating the user
  @param topicSpace
  TopicSpace in which the Topic is defined
  @param topicName
  TopicName for which the permission should be checked
  @param operationType
  Type of operation (SEND, RECEIVE, BROWSE, CREATE)
  @return true : If the User is authorized
  false: If the User is not authorized