Package org.cyclos.model.utils
Class ActionConfirmationHelper
- java.lang.Object
-
- org.cyclos.model.utils.ActionConfirmationHelper
-
public class ActionConfirmationHelper extends Object
Helper class for actions requiring a confirmation credential
-
-
Constructor Summary
Constructors Constructor Description ActionConfirmationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisCanConfirm(CredentialInputDTO input, CredentialType type)Returns true if an action can be confirmed using the given credential type (if not null) or confirmed at all (if null).static booleanisCanConfirmWithAny(CredentialInputDTO input, CredentialType... types)Returns whether the user can confirm with any of the given credential types
-
-
-
Method Detail
-
isCanConfirm
public static boolean isCanConfirm(CredentialInputDTO input, CredentialType type)
Returns true if an action can be confirmed using the given credential type (if not null) or confirmed at all (if null). When the input itself is null, assumes no confirmation is needed, and hence, returns true.
-
isCanConfirmWithAny
public static boolean isCanConfirmWithAny(CredentialInputDTO input, CredentialType... types)
Returns whether the user can confirm with any of the given credential types
-
-