public class ActionConfirmationHelper
extends java.lang.Object
| Constructor and Description |
|---|
ActionConfirmationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static MessageKey |
getMessageKey(EnumMessageKeyResolver<ActionPasswordConfirmationStatus> baseKey,
PasswordInputDTO input)
This method calculates the current
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(EnumMessageKeyResolver<ActionPasswordConfirmationStatus> baseKey, PasswordInputDTO input)
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.