| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEVICE_CONFIRMATION_VALUE_PREFIX
Prefix used when confirming an action with a device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
approve(long id,
long deviceId,
@NotNull java.lang.String hmac)
Approves a confirmation through a trusted device.
|
SerializableInputStream |
barcode(@NotNull DeviceConfirmationBarcodeParams params)
Generates a two-dimensional barcode (QR code), only if the confirmation was not already approved nor rejected,
containing a URL of the form:
cyclos://confirm? |
DeviceConfirmationVO |
create(@NotNull CreateDeviceConfirmationParams params)
Creates a new pending for approval device confirmation for the logged user.
|
DeviceConfirmationApprovalData |
getApprovalData()
Return data for approve / reject device confirmations
|
DeviceConfirmationVO |
load(java.lang.Long id)
Load a device confirmation by id for the logged user.
|
void |
reject(long id,
long deviceId,
@NotNull java.lang.String hmac)
Same as
#approve(Long, Long, String) but for confirmation rejection. |
void |
remove(java.lang.Long id)
Removes a confirmation for the logged user.
|
static final java.lang.String DEVICE_CONFIRMATION_VALUE_PREFIX
void approve(long id,
long deviceId,
@NotNull
@NotNull java.lang.String hmac)
throws FrameworkException,
InvalidDeviceConfirmationException
id - the identification of the confirmation being approved.deviceId - the identification of the trusted device used to approve.hmac - the Hash-based Message Authentication Code used to verify the authentication of the confirmation and
device.InvalidDeviceConfirmationException - if the confirmation was not found or is invalid. The possible values
contained in the exception are: InvalidDeviceConfirmationResult.INVALID_CONFIRMATION and
InvalidDeviceConfirmationResult.INVALID_DEVICE.FrameworkExceptionSerializableInputStream barcode(@NotNull @NotNull DeviceConfirmationBarcodeParams params) throws FrameworkException
cyclos://confirm?id=confirmation_id&op=i18n_confirmation_type&fields=Label1:Value1|Label2:Value2...cyclos://confirm?id=-6959640208566238428&op=Payment confirmation&fields=from:b1|to:b2|amount:50 units)FrameworkExceptionDeviceConfirmationVO create(@NotNull @NotNull CreateDeviceConfirmationParams params) throws FrameworkException
FrameworkExceptionDeviceConfirmationApprovalData getApprovalData()
DeviceConfirmationVO load(java.lang.Long id) throws FrameworkException
FrameworkExceptionvoid reject(long id,
long deviceId,
@NotNull
@NotNull java.lang.String hmac)
throws FrameworkException,
InvalidDeviceConfirmationException
#approve(Long, Long, String) but for confirmation rejection.FrameworkExceptionInvalidDeviceConfirmationException#approve(Long, Long, String)void remove(java.lang.Long id)
throws FrameworkException
FrameworkException