public class StringCleaningUtil extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
StringCleaningUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getCleanString(String dirtyInput)
Clean a string using the configured Anti-samy policy file
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx) |
void |
setSecurityFile(String path)
Set the file path to the Anti-samy policy file to be used for cleaning
strings.
|
public void setSecurityFile(String path)
path - public String getCleanString(String dirtyInput) throws org.owasp.validator.html.ScanException, org.owasp.validator.html.PolicyException
dirtyInput - org.owasp.validator.html.ScanExceptionorg.owasp.validator.html.PolicyExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2016 Apereo. All Rights Reserved.