code:     private List<AuthInfo> createAuthInfo(SolrZkClient zkClient) {
        List<AuthInfo> ret = new LinkedList<AuthInfo>();
  
        // In theory the credentials to add could change here if zookeeper hasn't been initialized
        ZkCredentialsProvider credentialsProvider =
          zkClient.getZkClientConnectionStrategy().getZkCredentialsToAddAutomatically();
        for (ZkCredentialsProvider.ZkCredentials zkCredentials : credentialsProvider.getCredentials()) {
          ret.add(new AuthInfo(zkCredentials.getScheme(), zkCredentials.getAuth()));
        }
        return ret;
      }
    }
  }
  