public interface TrustedDeviceServiceLocal extends TrustedDeviceService
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVATION_CODE_LENGTH
Length in chars of the generated device activation code.
|
static int |
SECRET_KEY_LENGTH
Length in chars of the generated device key.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(long id)
Returns true if exist an active trusted device with the given id.
|
boolean |
hasActiveDevices(BasicUser user)
Returns true if the given user has at least one active trusted device.
|
TrustedDevice |
loadForOperate(long id)
Loads an active trusted device for the logged user;
|
long |
purgePendingActivations(java.util.Date before)
Delete all trusted devices created before the date passed as parameter and which activation code is not null
(they were not activated).
|
activate, getActivationData, getData, list, remove, requestActivationCode, savestatic final int SECRET_KEY_LENGTH
static final int ACTIVATION_CODE_LENGTH
boolean exists(long id)
boolean hasActiveDevices(BasicUser user)
TrustedDevice loadForOperate(long id) throws EntityNotFoundException
EntityNotFoundException - if the id doesn't exists, the device is pending by activation or doesn't belong
to the logged user.long purgePendingActivations(java.util.Date before)