All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.burgstaller.okhttp.digest.Credentials Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
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