Class 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 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 Details

  • Constructor Details

    • DeviceNotVerifiedException

      public DeviceNotVerifiedException()