Package com.authlete.jaxrs
Class DeviceVerificationPageModel
- java.lang.Object
-
- com.authlete.jaxrs.DeviceVerificationPageModel
-
- All Implemented Interfaces:
Serializable
public class DeviceVerificationPageModel extends Object implements Serializable
Model class to hold data which are referred to in an verification page in device flow.Feel free to extend this class as necessary.
- Since:
- 2.18
- Author:
- Hideki Ikeda
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceVerificationPageModel()The default constructor with default values.DeviceVerificationPageModel(String loginId, String userCode, com.authlete.common.types.User user, String notification)Create anDeviceVerificationPageModelinstance using given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLoginId()Get the login ID which should be set to the login ID field in the verification page as the initial value.StringgetNotification()Get the notification that should be shown in the verification page.com.authlete.common.types.UsergetUser()Get the currently logged in user, could be null if no user is logged in.StringgetUserCode()Get the user code should be set to the user code field in the verification page as the initial value.DeviceVerificationPageModelsetLoginId(String loginId)Set the login ID which should be set to the login ID field in the verification page as the initial value.DeviceVerificationPageModelsetNotification(String notification)Set the notification that should be shown in the verification page.DeviceVerificationPageModelsetUser(com.authlete.common.types.User user)Set the currently logged in user.DeviceVerificationPageModelsetUserCode(String userCode)Set the user code should be set to the user code field in the verification page as the initial value.
-
-
-
Constructor Detail
-
DeviceVerificationPageModel
public DeviceVerificationPageModel()
The default constructor with default values.
-
DeviceVerificationPageModel
public DeviceVerificationPageModel(String loginId, String userCode, com.authlete.common.types.User user, String notification)
Create anDeviceVerificationPageModelinstance using given parameters.- Parameters:
loginId- The login ID that should be used as the initial value for the login ID field in the verification page.userCode- The user code that should be used as the initial value for the user code field in the verification page.user- The currently logged in user.notification- The notification that should be shown in the verification page.
-
-
Method Detail
-
getLoginId
public String getLoginId()
Get the login ID which should be set to the login ID field in the verification page as the initial value.- Returns:
- The initial value of the login ID.
-
setLoginId
public DeviceVerificationPageModel setLoginId(String loginId)
Set the login ID which should be set to the login ID field in the verification page as the initial value.- Parameters:
loginId- The initial value of the login ID.- Returns:
thisobject.
-
getUserCode
public String getUserCode()
Get the user code should be set to the user code field in the verification page as the initial value.- Returns:
- The initial value of the user code.
-
setUserCode
public DeviceVerificationPageModel setUserCode(String userCode)
Set the user code should be set to the user code field in the verification page as the initial value.- Parameters:
userCode- The initial value of the user code.- Returns:
thisobject.
-
getUser
public com.authlete.common.types.User getUser()
Get the currently logged in user, could be null if no user is logged in.- Returns:
- The currently logged in user.
-
setUser
public DeviceVerificationPageModel setUser(com.authlete.common.types.User user)
Set the currently logged in user.- Parameters:
user- The currently logged in user.- Returns:
thisobject.
-
getNotification
public String getNotification()
Get the notification that should be shown in the verification page.- Returns:
- The notification that should be shown in the verification page.
-
setNotification
public DeviceVerificationPageModel setNotification(String notification)
Set the notification that should be shown in the verification page.- Parameters:
notification- The notification that should be shown in the verification page.- Returns:
thisobject.
-
-