package com.milleapplis.ovh.api.credential;

/**
 * Class used to store application credentials.
 * This object must be passed to all services during construction.
 *  
 * @author sginer
 *
 */
public class Credential {

	private String applicationKey;
	private String applictionSecret;
	private String consumerKey;
	
	public Credential(String applicationKey, String applicationSecret, String consumerKey) {
		this.applicationKey = applicationKey;
		this.applictionSecret = applicationSecret;
		this.consumerKey = consumerKey;
	}
	
	public String getApplicationKey() {
		return applicationKey;
	}
	public void setApplicationKey(String applicationKey) {
		this.applicationKey = applicationKey;
	}
	public String getApplicationSecret() {
		return applictionSecret;
	}
	public void setApplictionSecret(String applictionSecret) {
		this.applictionSecret = applictionSecret;
	}
	public String getConsumerKey() {
		return consumerKey;
	}
	public void setConsumerKey(String consumerKey) {
		this.consumerKey = consumerKey;
	}
	
	
}

@@ -1014,12 +1014,184 @@
 y;%0A%09%7D%0A%09%0A
+%09public String toString() %7B%0A%09%09return String.format(%22%5BApplication key : %25s%5D%5BApplication secret : %25s%5D%5BConsumer key : %25s%5D%22, applicationKey, applictionSecret, consumerKey);%0A%09%7D%0A
 %09%0A%7D%0A

Add toString function