public class ActionConfirmationHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ActionConfirmationHelper.ActionPasswordConfirmationStatus
This enum contains all possible status for an action confirmation according to the confirmation password.
|
| Constructor and Description |
|---|
ActionConfirmationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static MessageKey |
getMessageKey(MessageKey baseKey,
ActionConfirmationHelper.ActionPasswordConfirmationStatus status)
This method use the basekey parameter in conjunction with the status to form the message key to be returned.
|
static MessageKey |
getMessageKey(MessageKey baseKey,
PasswordInputDTO input)
This method calculates the current
ActionConfirmationHelper.ActionPasswordConfirmationStatus and use the basekey parameter in conjunction with the status to
form the message key to be returned. |
static boolean |
isCanConfirm(PasswordInputDTO input)
Returns true only if the action can be confirmed (the user has an active password or can request for a new OTP) according to the
PasswordInputDTO specified. |
public static MessageKey getMessageKey(MessageKey baseKey, ActionConfirmationHelper.ActionPasswordConfirmationStatus status)
public static MessageKey getMessageKey(MessageKey baseKey, PasswordInputDTO input)
ActionConfirmationHelper.ActionPasswordConfirmationStatus and use the basekey parameter in conjunction with the status to
form the message key to be returned.public static boolean isCanConfirm(PasswordInputDTO input)
PasswordInputDTO specified.