public.javadoc.org.spincast.plugins.formsprotection.dictionary.SpincastFormsProtectionPluginDictionaryEntries.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.
SpincastFormsProtectionPluginDictionaryEntries (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.formsprotection.dictionary
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
Fields
Modifier and Type
Field and Description
static String
MESSAGE_KEY_FORM_ALREADY_SUBMITTED
Public exception message when the form was already submitted.
static String
MESSAGE_KEY_FORM_CSRF_TOKEN_NOT_FOUND_IN_SESSION
Public exception message when a POST/PUT/etc.
static String
MESSAGE_KEY_FORM_INVALID_CSRF_TOKEN
Public exception message when the form was submitted with
an invalid CSRF token.
static String
MESSAGE_KEY_FORM_INVALID_ORGIN
Public exception message when the submitted form is from an invalid
origin.
static String
MESSAGE_KEY_FORM_INVALID_PROTECTION_ID
Public exception message when the submitted csrf token is not
of a valid format.
static String
MESSAGE_KEY_FORM_NO_CSRF_TOKEN_PROVIDED
Public exception message when the submitted form doesn't have
a CSRF token.
static String
MESSAGE_KEY_FORM_TOO_OLD
Public exception message when the submitted form is too old.
-
Constructor Summary
Constructors
Constructor and Description
SpincastFormsProtectionPluginDictionaryEntries()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Map<String,Map<String,String>>
getDictionaryEntries()
void
init()
-
Methods inherited from class org.spincast.core.dictionary.DictionaryBase
getMessages, key, msg
-
-
Field Detail
-
MESSAGE_KEY_FORM_INVALID_PROTECTION_ID
public static final String 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 static final String MESSAGE_KEY_FORM_TOO_OLD
Public exception message when the submitted form is too old.
-
MESSAGE_KEY_FORM_ALREADY_SUBMITTED
public static final String MESSAGE_KEY_FORM_ALREADY_SUBMITTED
Public exception message when the form was already submitted.
-
MESSAGE_KEY_FORM_INVALID_ORGIN
public static final String 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 static final String 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 static final String 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 static final String 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 Detail
-
SpincastFormsProtectionPluginDictionaryEntries
public SpincastFormsProtectionPluginDictionaryEntries()
-
Method Detail
-
init
@Inject
public void init()
-
getDictionaryEntries
public Map<String,Map<String,String>> getDictionaryEntries()
- Specified by:
getDictionaryEntries
in interface DictionaryEntries
Copyright © 2019. All rights reserved.