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() |
void |
setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation) |
String cleanString(String string) throws ServiceException
<script> tags, and the like.string - The possibly dirty stringServiceExceptionString 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, - CleanStringExceptionServiceExceptionString getAntiSamyPolicyFileLocation()
void setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation)
void compareToken(String passedToken) throws ServiceException
passedToken - The csrf token that was passed in the requestServiceExceptionString getCSRFToken() throws ServiceException
ServiceExceptionString getCsrfTokenParameter()
Copyright © 2019. All rights reserved.