com.mizhousoft.commons.okhttp.digest.Credentials Maven / Gradle / Ivy
package com.mizhousoft.commons.okhttp.digest;
/**
* Simple credentials class holding Username / Password.
*/
public class Credentials {
private String userName;
private String password;
public Credentials(String userName, String password) {
if (userName == null || password == null) {
throw new IllegalArgumentException("username and password cannot be null");
}
this.userName = userName;
this.password = password;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}