code: public void login(String username, String password) throws IOException {
          String requestUrl = RESOURCE + "/login";
          Credentials creds = new Credentials();
  
          creds.setPassword(password);
          creds.setUsername(username);
  
          ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.POST, requestUrl, creds);
  
          try {
  		assertValidResponse(response, requestUrl);
  	} catch (TokenExpiredException e) {
  		//This should never happen
  		throw new RuntimeException("This should never happen. login() method should never throw a TokenExpiredException", e);
  	}
          
          Map<String, String> tokens = fromJson(response.getResult(), new TypeReference<Map<String, String>>() {});
          getClient().accessToken = tokens.get("accessToken");
          getClient().refreshToken = tokens.get("refreshToken");
      }
docs: Logs into Argus.
  
  @param   username  The username.
  @param   password  The password.
  
  @throws  IOException  If the server is unavailable.