Commit 6c9eb5ac authored by Daniel Seybold's avatar Daniel Seybold

added credential setting

parent 2d033478
......@@ -12,7 +12,12 @@ public class App {
public static void main( String[] args ){
Client client = ColosseumClientHelper.getColosseumClient();
final String user = "TODO";
final String password = "TODO";
Client client = ColosseumClientHelper.getColosseumClient(user, password);
/**
* retrieving a list of Image objects from the remote service Colosseum
......
......@@ -8,13 +8,13 @@ import de.uniulm.omi.cloudiator.colosseum.client.ClientBuilder;
*/
public class ColosseumClientHelper {
public static Client getColosseumClient(){
public static Client getColosseumClient(String user, String password){
String colosseumUri = "http://134.60.152.90:9000/api";
ClientBuilder clientBuilder = ClientBuilder.getNew().url(colosseumUri)
.credentials("john.doe@example.com", "admin", "admin");
.credentials(user, password, "admin");
Client colosseumClient = clientBuilder.build();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment