code: def get_credentials(self, scan_id, target):
          
          if target:
              for item in self.scans_table[scan_id]['targets']:
                  if target == item[0]:
                      return item[2]
docs: Get a scan's credential list. It return dictionary with
          the corresponding credential for a given target.