
com.alachisoft.ncache.client.Credentials Maven / Gradle / Ivy
package com.alachisoft.ncache.client;
/**
* Class that provides the security parameters for authorization.
*/
public class Credentials {
private String _uid;
private String _pwd;
public Credentials() {
}
/**
* Creates an instance of the Credentials.
* @param userId User id used to authenticate the user.
* @param password Password used to authenticate the user.
*/
public Credentials(String userId, String password) {
_uid = userId;
_pwd = password;
}
/**
* Gets the user id for the credentials.
* @return The user-id in form of a string.
*/
public String getUserID() {
return _uid;
}
/**
* Sets the user id for the credentials.
* @param value The user-id in form of a string.
*/
public void setUserID(String value) {
_uid = value;
}
/**
* Gets the password for the credentials.
* @return The password in form of a string.
*/
public String getPassword() {
return _pwd;
}
/**
* Sets the password for the credentials.
* @param value The password in form of a string.
*/
public void setPassword(String value) {
_pwd = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy