Package de.xima.fc.form.identitytoken
Class IdentityTokenCheck
- java.lang.Object
- 
- de.xima.fc.form.identitytoken.IdentityTokenCheck
 
- 
 public class IdentityTokenCheck extends Object 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<EIdentityTokenFailure>getCheckFailed()StringgetNewToken()booleanisCheckSkipped()static IdentityTokenCheckperform(IEntityContext ec, IFormDataAdapter fda, Vorgang formRecord)static IdentityTokenCheckperform(IEntityContext ec, IFormRequestContext requestCtx)When enabled, an ID is generated based on the data of a submitted form.
 
- 
- 
- 
Method Detail- 
getCheckFailedpublic Optional<EIdentityTokenFailure> getCheckFailed() - Returns:
- Empty iff the identity token check succeeded. Otherwise, the type of error.
 
 - 
isCheckSkippedpublic boolean isCheckSkipped() - Returns:
- Whether the identity token check was skipped because of an empty identity token or identity token template.
 
 - 
getNewTokenpublic String getNewToken() - Returns:
- The newly generated token. If the error is EIdentityTokenFailure.GENERATE_MAX_LENGTH_EXCEEDED, contains the invalid token. Blank for any other errors.
 
 - 
performpublic 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.
 
 - 
performpublic static IdentityTokenCheck perform(IEntityContext ec, IFormDataAdapter fda, Vorgang formRecord) 
 
- 
 
-