Package net.sf.basedb.core
Class DeviceNotVerifiedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.basedb.core.BaseException
-
- net.sf.basedb.core.DeviceNotVerifiedException
-
- All Implemented Interfaces:
Serializable
public class DeviceNotVerifiedException extends BaseException
This exception can be thrown when a user is trying to login from a device that has not been verified. A verification code has also been sent to the user (by email). To get more information about the device useSessionControl.getUnverifiedDeviceInfo()
.The client application should present a form where the user can enter the verification code and then call
SessionControl.verifyDevice(String, boolean)
.When the device has been verified correctly the client application should store the token from
SessionControl.UnverifiedDeviceInfo.getDeviceToken()
. The next time the user is logging in, the stored token should be submitted together with other login information. SeeLoginRequest.setDeviceToken(String)
.- Since:
- 3.12
- Author:
- Nicklas
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DeviceNotVerifiedException()
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-