public.javadoc.org.spincast.plugins.formsprotection.doublesubmit.SpincastFormsDoubleSubmitProtectionRepository.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastFormsDoubleSubmitProtectionRepository (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.formsprotection.doublesubmit
Interface SpincastFormsDoubleSubmitProtectionRepository
-
public interface SpincastFormsDoubleSubmitProtectionRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
deleteOldFormsProtectionIds(int maxAgeMinutes)
Deletes the saved protection ids that are older than the specified
number of minuets.
boolean
isFormAlreadySubmitted(String protectedId)
Is the specified protectedId one of an already submitted
form?
void
saveSubmittedFormProtectionId(Instant date,
String protectedId)
Saves the protectedId associated with a submitted form.
-
-
Method Detail
-
saveSubmittedFormProtectionId
void saveSubmittedFormProtectionId(Instant date,
String protectedId)
Saves the protectedId associated with a submitted form.
-
isFormAlreadySubmitted
boolean isFormAlreadySubmitted(String protectedId)
Is the specified protectedId one of an already submitted
form?
-
deleteOldFormsProtectionIds
void deleteOldFormsProtectionIds(int maxAgeMinutes)
Deletes the saved protection ids that are older than the specified
number of minuets.
Copyright © 2019. All rights reserved.