public interface ExploitProtectionService
Modifier and Type | Method and Description |
---|---|
String |
cleanString(String string)
Detect and remove possible XSS threats from the passed in string.
|
String |
cleanStringWithResults(String string)
Detect and remove possible XSS threats from the passed in string.
|
void |
compareToken(String passedToken)
Detect possible XSRF attacks by comparing the csrf token included
in the request against the true token for this user from the session.
|
String |
getAntiSamyPolicyFileLocation() |
String |
getCSRFToken() |
String |
getCsrfTokenParameter() |
String |
htmlDecode(String value) |
void |
setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation) |
String cleanString(String string) throws ServiceException
<script>
tags, and the like.string
- The possibly dirty stringServiceException
String cleanStringWithResults(String string) throws ServiceException
<script>
tags, and the like. If an html, validation, or
security problem is detected, an exception is thrown. This method also emits
well formed xml, which is important if using Thymeleaf to display the results.string
- The possibly dirty stringServiceException,
- CleanStringExceptionServiceException
String getAntiSamyPolicyFileLocation()
void setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation)
void compareToken(String passedToken) throws ServiceException
passedToken
- The csrf token that was passed in the requestServiceException
String getCSRFToken() throws ServiceException
ServiceException
String getCsrfTokenParameter()
Copyright © 2022. All rights reserved.