com.burgstaller.okhttp.digest.Credentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okhttp-digest Show documentation
Show all versions of okhttp-digest Show documentation
A digest authenticator for okhttp.
package com.burgstaller.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