|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExploitProtectionService
| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
String cleanString(String string)
throws ServiceException
<script> tags, and the like.
string - The possibly dirty string
ServiceException
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 string
ServiceException, - CleanStringException
ServiceExceptionString getAntiSamyPolicyFileLocation()
void setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation)
void compareToken(String passedToken)
throws ServiceException
passedToken - The csrf token that was passed in the request
ServiceException
String getCSRFToken()
throws ServiceException
ServiceExceptionString getCsrfTokenParameter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||