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
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 use
SessionControl.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. See LoginRequest.setDeviceToken(String)
.
- Since:
- 3.12
- Author:
- Nicklas
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DeviceNotVerifiedException
public DeviceNotVerifiedException()
-