| Constructor | Description |
|---|---|
SecurityValidator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
checkThreats(ValidationInput input,
ValidationContext context) |
Checks if the input does not contain any threat.
|
void |
init() |
A Default init method.
|
void |
setReader(Reader reader) |
Set reader to use to read the input data.
|
void |
validate(Object input,
ValidationContext context) |
Dedicated method for validation of input or fragment of input data.
|
public void init()
throws ValidationException
Does nothing by default.
init in interface ValidatorValidationException - initialisation exception.public void validate(Object input, ValidationContext context)
Does nothing by default.
public void setReader(Reader reader)
protected boolean checkThreats(ValidationInput input, ValidationContext context) throws IOException, ParserConfigurationException, SAXException
input - The validation input.context - The validation context.true if the input contains possible threats. Otherwise, returns false.SAXException - in case of exceptionIOException - in case of exceptionParserConfigurationException - in case of exceptionCopyright © 2025. All rights reserved.