docs: protected String sha1( File file ) {
          try {
              if (contentBasedSha1()) {
                  byte[] hash = SecureHash.getHash(SecureHash.Algorithm.SHA_1, file);
                  return StringUtil.getHexString(hash);
              }
              return SecureHash.sha1(createUrlForFile(file).toString());
          } catch (Exception e) {
              throw new ConnectorException(e);
          }
      }