public interface ExploitProtectionService
| Modifier and Type | Method and Description |
|---|---|
String |
cleanString(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 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 © 2013. All rights reserved.