Class XSSRequestParameterProcessingResponse
- java.lang.Object
-
- com.broadleafcommerce.resource.security.xss.service.dto.XSSRequestParameterProcessingResponse
-
public class XSSRequestParameterProcessingResponse extends Object
A response object returned from theXSSRequestProcessingServiceafter processing a request parameter and its value(s).- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description XSSRequestParameterProcessingResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetPerformedOperationType()Reports the type of operation that was performed on the input.StringgetSanitizedParameterName()The request parameter name after sanitization.String[]getSanitizedParameterValues()The request parameter value(s) after sanitization.inthashCode()booleanisError()Ifvalidation was performed, this reports if an XSS violation was detected.voidsetError(boolean error)Ifvalidation was performed, this reports if an XSS violation was detected.voidsetPerformedOperationType(String performedOperationType)Reports the type of operation that was performed on the input.voidsetSanitizedParameterName(String sanitizedParameterName)The request parameter name after sanitization.voidsetSanitizedParameterValues(String[] sanitizedParameterValues)The request parameter value(s) after sanitization.StringtoString()
-
-
-
Method Detail
-
getPerformedOperationType
public String getPerformedOperationType()
Reports the type of operation that was performed on the input.
-
isError
public boolean isError()
Ifvalidation was performed, this reports if an XSS violation was detected.
-
getSanitizedParameterName
@Nullable public String getSanitizedParameterName()
The request parameter name after sanitization. This should be set either in the case wheresanitization was performed, or in the case whereerroris true (so the error message can use the sanitized name).
-
getSanitizedParameterValues
@Nullable public String[] getSanitizedParameterValues()
The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed.
-
setPerformedOperationType
public void setPerformedOperationType(String performedOperationType)
Reports the type of operation that was performed on the input.
-
setError
public void setError(boolean error)
Ifvalidation was performed, this reports if an XSS violation was detected.
-
setSanitizedParameterName
public void setSanitizedParameterName(@Nullable String sanitizedParameterName)The request parameter name after sanitization. This should be set either in the case wheresanitization was performed, or in the case whereerroris true (so the error message can use the sanitized name).
-
setSanitizedParameterValues
public void setSanitizedParameterValues(@Nullable String[] sanitizedParameterValues)The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed.
-
canEqual
protected boolean canEqual(Object other)
-
-