public class LoginRequest extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
attributes |
private String |
comment |
private String |
login |
private String |
password |
private int |
userId |
Constructor and Description |
---|
LoginRequest() |
LoginRequest(int userId,
String password)
Create a login request with user id + password
|
LoginRequest(String login,
String password)
Create a login request with login + password
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String key)
Get the value of an extra attribute to use for the login request.
|
String |
getComment()
Get the comment to use.
|
String |
getLogin()
Get the login name to use.
|
String |
getPassword()
Get the password to use.
|
int |
getUserId()
Get the user id to use.
|
void |
setAttribute(String key,
String value)
Set an extra attribute to use for the login request.
|
void |
setComment(String comment)
Set the comment to use.
|
void |
setLogin(String login)
Set the login name to use.
|
void |
setPassword(String password)
Set the password to use.
|
void |
setUserId(int userId)
Set the user id to use.
|
private int userId
private String login
private String password
private String comment
public LoginRequest()
public LoginRequest(String login, String password)
public LoginRequest(int userId, String password)
public void setUserId(int userId)
public int getUserId()
public void setLogin(String login)
public String getLogin()
public void setPassword(String password)
public String getPassword()
public void setComment(String comment)
public String getComment()
public void setAttribute(String key, String value)