Class ActionConfirmationHelper


  • public class ActionConfirmationHelper
    extends Object
    Helper class for actions requiring a confirmation credential
    • Constructor Detail

      • ActionConfirmationHelper

        public ActionConfirmationHelper()
    • 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