public class BambooFieldValidate extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkFieldXssSafety(ErrorCollection errorCollection,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
String fieldName,
String fieldValue) |
static void |
checkFieldXssSafety(ErrorCollection errorCollection,
com.opensymphony.xwork2.TextProvider textProvider,
String fieldName,
String fieldValue)
Check if field content is XSS safe.
|
static void |
checkFieldXssSafety(Map<String,String> fieldErrors,
com.opensymphony.xwork2.TextProvider textProvider,
String fieldName,
String fieldValue)
Check if field content is XSS safe.
|
static ErrorCollection |
checkFieldXssSafety(com.opensymphony.xwork2.TextProvider textProvider,
String fieldName,
String fieldValue) |
static void |
checkFieldXssSafety(com.atlassian.struts.ValidationAware validationAware,
com.opensymphony.xwork2.TextProvider textProvider,
String fieldName,
String fieldValue) |
static boolean |
findFieldRelaxedXssViolation(ErrorCollection errorCollection,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
String fieldName,
String fieldValue) |
static boolean |
findFieldRelaxedXssViolation(ErrorCollection errorCollection,
com.opensymphony.xwork2.TextProvider textProvider,
String fieldName,
String fieldValue) |
static boolean |
findFieldShellInjectionViolation(ErrorCollection errorCollection,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
String fieldName,
String fieldValue) |
public static void checkFieldXssSafety(com.atlassian.struts.ValidationAware validationAware, com.opensymphony.xwork2.TextProvider textProvider, String fieldName, String fieldValue)
public static ErrorCollection checkFieldXssSafety(com.opensymphony.xwork2.TextProvider textProvider, String fieldName, String fieldValue)
public static void checkFieldXssSafety(@NotNull Map<String,String> fieldErrors, com.opensymphony.xwork2.TextProvider textProvider, String fieldName, String fieldValue)
fieldErrors
- if field contains XSS unsafe characters, appropriate error would be added to this maptextProvider
- TextProvider beanfieldName
- name of the field that is being checkedfieldValue
- value of the fieldpublic static void checkFieldXssSafety(@NotNull ErrorCollection errorCollection, com.opensymphony.xwork2.TextProvider textProvider, String fieldName, String fieldValue)
errorCollection
- if field contains XSS unsafe characters, appropriate error would be added to this ErrorCollectiontextProvider
- TextProvider beanfieldName
- name of the field that is being checkedfieldValue
- value of the fieldpublic static void checkFieldXssSafety(@NotNull ErrorCollection errorCollection, com.atlassian.sal.api.message.I18nResolver i18nResolver, String fieldName, String fieldValue)
public static boolean findFieldRelaxedXssViolation(ErrorCollection errorCollection, com.opensymphony.xwork2.TextProvider textProvider, String fieldName, String fieldValue)
public static boolean findFieldRelaxedXssViolation(ErrorCollection errorCollection, com.atlassian.sal.api.message.I18nResolver i18nResolver, String fieldName, String fieldValue)
public static boolean findFieldShellInjectionViolation(ErrorCollection errorCollection, com.atlassian.sal.api.message.I18nResolver i18nResolver, String fieldName, @Nullable String fieldValue)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.