public class

ParamNameWhitelistStrategy

extends Object
implements RequestParamCleaningWhitelistStrategy
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.

Summary

Public Constructors
ParamNameWhitelistStrategy()
Public Methods
Set<String> getParamNames()
boolean isWhiteListed(String path, String paramName)
Checks whether a parameter is white-listed by its name.
void setParamNames(Set<String> paramNames)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.web.filter.validateparam.RequestParamCleaningWhitelistStrategy

Public Constructors

public ParamNameWhitelistStrategy ()

Public Methods

public Set<String> getParamNames ()

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)