| java.lang.Object |
| ↳ |
com.atlassian.confluence.web.filter.validateparam.ParamNameWhitelistStrategy |
Class Overview
A simple whitelist cleaning strategy that accepts a set of parameter names,
and permits any parameters whose name is in that set.
Public Constructors
public
ParamNameWhitelistStrategy
()
Public Methods
public
boolean
isWhiteListed
(String path, String paramName)
Checks whether a parameter is white-listed by its name.
Parameters
| path
| ignored |
| paramName
| the name of the parameter to check |
Returns
- true if the parameter name is in the white-list.
public
void
setParamNames
(Set<String> paramNames)