Class LoginRequest
- java.lang.Object
-
- net.sf.basedb.core.authentication.LoginRequest
-
public class LoginRequest extends Object
Hold information about a login request such as login, password, etc.- Since:
- 3.3
- Author:
- Nicklas
- Last modified
- $Date $
-
-
Constructor Summary
Constructors Constructor Description LoginRequest()
LoginRequest(int userId, String password)
Create a login request with user id + passwordLoginRequest(int userId, String password, String deviceToken)
Create a login request with user id + password + deviceTokenLoginRequest(String login, String password)
Create a login request with login + passwordLoginRequest(String login, String password, String deviceToken)
Create a login request with login + password + deviceToken
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
getDeviceToken()
Get the deviceToken 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
setDeviceToken(String deviceToken)
Set the deviceToken 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.
-
-
-
Constructor Detail
-
LoginRequest
public LoginRequest()
-
LoginRequest
public LoginRequest(String login, String password)
Create a login request with login + password
-
LoginRequest
public LoginRequest(String login, String password, String deviceToken)
Create a login request with login + password + deviceToken- Since:
- 3.12
-
LoginRequest
public LoginRequest(int userId, String password)
Create a login request with user id + password
-
-
Method Detail
-
setUserId
public void setUserId(int userId)
Set the user id to use.
-
getUserId
public int getUserId()
Get the user id to use.
-
setLogin
public void setLogin(String login)
Set the login name to use.
-
getLogin
public String getLogin()
Get the login name to use.
-
setPassword
public void setPassword(String password)
Set the password to use.
-
getPassword
public String getPassword()
Get the password to use.
-
setDeviceToken
public void setDeviceToken(String deviceToken)
Set the deviceToken to use.- Since:
- 3.12
-
getDeviceToken
public String getDeviceToken()
Get the deviceToken to use.- Since:
- 3.12
-
setComment
public void setComment(String comment)
Set the comment to use.
-
getComment
public String getComment()
Get the comment to use.
-
setAttribute
public void setAttribute(String key, String value)
Set an extra attribute to use for the login request.
-
-