com.podio.oauth.OAuthUsernameCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.oauth;
import javax.ws.rs.core.MultivaluedMap;
public class OAuthUsernameCredentials implements OAuthUserCredentials {
private final String username;
private final String password;
public OAuthUsernameCredentials(String username, String password) {
super();
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public String getType() {
return "password";
}
public void addParameters(MultivaluedMap map) {
map.add("username", username);
map.add("password", password);
}
}