code: public JanbaneryToWorkspace connectUsing(String user, String password) throws ServerCommunicationException {
      DefaultConfiguration conf = new DefaultConfiguration(user, password);
      RestClient restClient = getRestClient(conf);
      Janbanery janbanery = new Janbanery(conf, restClient);
  
      // fetch and switch to apiKey mode
      String apiKey = getCurrentUserApiKey(janbanery);
      conf.forceKeyAuthMode(apiKey);
  
      return new JanbaneryToWorkspace(janbanery);
    }
docs: This method will connect to kanbanery via basic user/pass authentication
  <strong>but will then switch to API Key Mode</strong> to increase the security of communication over the wire.
  
  @param user     your kanbanery username (email)
  @param password your kanbanery password for this user
  @return an Janbanery instance setup using the API Key auth, which will be fetched during construction
  @throws ServerCommunicationException