Class DeviceNotVerifiedException

All Implemented Interfaces:

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).

See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • DeviceNotVerifiedException

      public DeviceNotVerifiedException()