Class CrowdXsrfTokenInterceptor
java.lang.Object
com.atlassian.crowd.xwork.interceptors.XsrfTokenInterceptor
com.atlassian.crowd.xwork.interceptors.CrowdXsrfTokenInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
Crowd specific implementation of XsrfTokenInterceptor.
- Since:
- v2.3.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.xwork.interceptors.XsrfTokenInterceptor
XsrfTokenInterceptor.SecurityLevel
-
Field Summary
Fields inherited from class com.atlassian.crowd.xwork.interceptors.XsrfTokenInterceptor
CONFIG_PARAM_NAME, OVERRIDE_HEADER_NAME, OVERRIDE_HEADER_VALUE, REQUEST_PARAM_NAME, SECURITY_TOKEN_REQUIRED_ERROR_KEY, VALIDATION_FAILED_ERROR_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
internationaliseErrorMessage
(com.opensymphony.xwork2.Action action, String messageKey) Convert an error message key into the correct message for the current user's locale.Methods inherited from class com.atlassian.crowd.xwork.interceptors.XsrfTokenInterceptor
addInvalidTokenError, destroy, getSecurityLevel, init, intercept
-
Constructor Details
-
CrowdXsrfTokenInterceptor
public CrowdXsrfTokenInterceptor()
-
-
Method Details
-
internationaliseErrorMessage
protected String internationaliseErrorMessage(com.opensymphony.xwork2.Action action, String messageKey) Description copied from class:XsrfTokenInterceptor
Convert an error message key into the correct message for the current user's locale. The default implementation is only useful for testing. Implementations should override this method to provide the appropriate internationalised implementation.- Overrides:
internationaliseErrorMessage
in classXsrfTokenInterceptor
- Parameters:
action
- the current action being executedmessageKey
- the message key that needs internationalising- Returns:
- the appropriate internationalised message for the current user
-