Class SpincastFormsProtectionPluginDictionaryEntries
java.lang.Object
org.spincast.core.dictionary.DictionaryBase
org.spincast.plugins.formsprotection.dictionary.SpincastFormsProtectionPluginDictionaryEntries
- All Implemented Interfaces:
DictionaryEntries
public class SpincastFormsProtectionPluginDictionaryEntries
extends DictionaryBase
implements DictionaryEntries
The Dictionary entries required by the Forms Protection plugin.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Public exception message when the form was already submitted.static final String
Public exception message when a POST/PUT/etc.static final String
Public exception message when the form was submitted with an invalid CSRF token.static final String
Public exception message when the submitted form is from an invalid origin.static final String
Public exception message when the submitted csrf token is not of a valid format.static final String
Public exception message when the submitted form doesn't have a CSRF token.static final String
Public exception message when the submitted form is too old. -
Constructor Summary
-
Method Summary
Methods inherited from class org.spincast.core.dictionary.DictionaryBase
getAllKeys, getMessages, key, msg
-
Field Details
-
MESSAGE_KEY_FORM_INVALID_PROTECTION_ID
Public exception message when the submitted csrf token is not of a valid format. -
MESSAGE_KEY_FORM_TOO_OLD
Public exception message when the submitted form is too old. -
MESSAGE_KEY_FORM_ALREADY_SUBMITTED
Public exception message when the form was already submitted. -
MESSAGE_KEY_FORM_INVALID_ORGIN
Public exception message when the submitted form is from an invalid origin. -
MESSAGE_KEY_FORM_NO_CSRF_TOKEN_PROVIDED
Public exception message when the submitted form doesn't have a CSRF token. -
MESSAGE_KEY_FORM_INVALID_CSRF_TOKEN
Public exception message when the form was submitted with an invalid CSRF token. -
MESSAGE_KEY_FORM_CSRF_TOKEN_NOT_FOUND_IN_SESSION
Public exception message when a POST/PUT/etc. request is made but the CSRF token is not found in the current session...
-
-
Constructor Details
-
SpincastFormsProtectionPluginDictionaryEntries
public SpincastFormsProtectionPluginDictionaryEntries()
-
-
Method Details
-
init
@Inject public void init() -
getDictionaryEntries
- Specified by:
getDictionaryEntries
in interfaceDictionaryEntries
-