com.mizhousoft.commons.okhttp.digest.Credentials Maven / Gradle / Ivy
The newest version!
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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy