@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=927
REGEX_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 SecurityAdapter s 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
SecurityAdapter
OperationNotSupportedException
.
When used in a chained or a SecurityContext
with other SecurityAdapter
s 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.ScanException
org.owasp.validator.html.PolicyException
OperationNotSupportedException
public void validate(Data<String> input) throws SecurityException, OperationNotSupportedException
SecurityAdapter
SecurityContext
with other SecurityAdapter
s then the Adapters throwing
a OperationNotSupportedException
will be ignored.validate
in interface SecurityAdapter<String>
input
- as Data
SecurityException
- is its is not safe. This is to provide additional details about the failure that te return param cannot.OperationNotSupportedException
Copyright © 2018. All rights reserved.