code: public final void checkPermission( String resource , String action ) throws JMSException
      {
          if (securityContext == null)
              return; // Security is disabled
  
          securityContext.checkPermission(resource, action);        
      }
docs: Check if the connection has the required credentials to use the given resource