@Deprecated public class XSSESAPIURLSecurityAdapter extends Object implements SecurityAdapter<String>
SecurityAdapter for XSS prevention (using OWASP ESAPI)http://code.google.com/p/owasp-esapi-java/source/browse/trunk/src/test/resources/.esapi/validation.properties?r=927REGEX_PROP_FILE| Constructor and Description |
|---|
XSSESAPIURLSecurityAdapter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
sanitize(Data<String> input)
Deprecated.
Sanitize content, from malicious to harmless.
|
void |
validate(Data<String> input)
Deprecated.
Check if the input is safe or not
When used in a chained or a SecurityContext with other SecurityAdapters then the Adapters throwing
a OperationNotSupportedException will be ignored. |
public Data sanitize(Data<String> input) throws org.owasp.validator.html.ScanException, org.owasp.validator.html.PolicyException, OperationNotSupportedException
SecurityAdapterOperationNotSupportedException.
When used in a chained or a SecurityContext with other SecurityAdapters then the Adapters throwing
a OperationNotSupportedException will be ignored. Any other exception will be thrown if there is
an issue in the executionof the sanitization process.sanitize in interface SecurityAdapter<String>org.owasp.validator.html.ScanExceptionorg.owasp.validator.html.PolicyExceptionOperationNotSupportedExceptionpublic void validate(Data<String> input) throws SecurityException, OperationNotSupportedException
SecurityAdapterSecurityContext with other SecurityAdapters then the Adapters throwing
a OperationNotSupportedException will be ignored.validate in interface SecurityAdapter<String>input - as DataSecurityException - is its is not safe. This is to provide additional details about the failure that te return param cannot.OperationNotSupportedExceptionCopyright © 2018. All rights reserved.