Class IdentityTokenCheck


  • public class IdentityTokenCheck
    extends Object
    • Method Detail

      • getCheckFailed

        public Optional<EIdentityTokenFailure> getCheckFailed()
        Returns:
        Empty iff the identity token check succeeded. Otherwise, the type of error.
      • isCheckSkipped

        public boolean isCheckSkipped()
        Returns:
        Whether the identity token check was skipped because of an empty identity token or identity token template.
      • perform

        public static IdentityTokenCheck perform​(IEntityContext ec,
                                                 IFormRequestContext requestCtx)
        When enabled, an ID is generated based on the data of a submitted form. The form submission is rejected when a form record with the same identity token exists already. This creates the identity token for the current form and checks whether a form records exists already.
        Parameters:
        ec - Entity context for accessing the database.
        requestCtx - Form request context for the new form data that was submitted.
        Returns:
        The result of the identity token check.