Class DefaultXssBlackList
java.lang.Object
com.aquima.interactions.project.impl.xss.impl.DefaultXssBlackList
- All Implemented Interfaces:
IXssBlacklist
Default XSS blacklist implementation based on regular expressions.
NOTE: This implementation assumes the input is already canonicalized.
- Since:
- 9.9.7
- Author:
- MihaiBob
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultXssBlackList
public DefaultXssBlackList()
-
-
Method Details
-
sanitize
Description copied from interface:IXssBlacklist
Checks the provided input against this blacklist and returns the sanitized input.- Specified by:
sanitize
in interfaceIXssBlacklist
- Parameters:
data
- the input to be checked- Returns:
- the sanitized input
-
isValid
Description copied from interface:IXssBlacklist
Checks the provided input against this blacklist.- Specified by:
isValid
in interfaceIXssBlacklist
- Parameters:
data
- the input to be checked- Returns:
- true if the input is valid, false otherwise.
-