code: public void setCredentials(String tenant, String username, String userpassword) {
          Credentials credentials = new Credentials(tenant, username, userpassword);
          restClient.setCredentials(credentials);
      }
docs: Set credentials such as tenant, username, password for use with a Doradus application.
  @param tenant tenant name
  @param username user name use when accessing applications within the specified tenant.
  @param userpassword user password