Package net.sf.basedb.core
Class SessionControl.UnverifiedDeviceInfo
- java.lang.Object
-
- net.sf.basedb.core.SessionControl.UnverifiedDeviceInfo
-
- Enclosing class:
- SessionControl
public static class SessionControl.UnverifiedDeviceInfo extends Object
Class for storing temporary device information for a user that has been authenticated but before a device has been verified.- Since:
- 3.12
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AuthenticatedUser
authenticatedUser
(package private) UserDeviceData
device
(package private) LoginRequest
loginRequest
(package private) String
userEmail
(package private) String
userName
(package private) String
verificationCode
-
Constructor Summary
Constructors Constructor Description UnverifiedDeviceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDefaultRememberDevice()
The preferred setting for the "rememberDevice" parameter when verifying the device.String
getDeviceToken()
Get the token for this device.String
getUserEmail()
Get the email to the user.String
getUserName()
Get the name of the user.
-
-
-
Field Detail
-
device
UserDeviceData device
-
loginRequest
LoginRequest loginRequest
-
authenticatedUser
AuthenticatedUser authenticatedUser
-
verificationCode
String verificationCode
-
userName
String userName
-
userEmail
String userEmail
-
-
Method Detail
-
getDeviceToken
public String getDeviceToken()
Get the token for this device. If the verification is successful (seeSessionControl.verifyDevice(String, boolean)
the client must store this token and submit it together with the login information the next time the user is logging in.
-
getUserName
public String getUserName()
Get the name of the user.
-
getUserEmail
public String getUserEmail()
Get the email to the user.
-
getDefaultRememberDevice
public boolean getDefaultRememberDevice()
The preferred setting for the "rememberDevice" parameter when verifying the device.
-
-