Class SecurityValidator
java.lang.Object
eu.europa.ec.taxud.validation.validator.SecurityValidator
- All Implemented Interfaces:
Validator
SecurityValidator validator class.- Version:
- $Revision : 1 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckThreats(ValidationInput input, ValidationContext context) Checks if the input does not contain any threat.voidinit()A Default init method.voidSet reader to use to read the input data.voidvalidate(Object input, ValidationContext context) Dedicated method for validation of input or fragment of input data.
-
Constructor Details
-
SecurityValidator
public SecurityValidator()
-
-
Method Details
-
init
A Default init method. Does nothing by default.- Specified by:
initin interfaceValidator- Throws:
ValidationException- initialisation exception.
-
validate
Dedicated method for validation of input or fragment of input data. Does nothing by default. -
setReader
Set reader to use to read the input data. -
checkThreats
protected boolean checkThreats(ValidationInput input, ValidationContext context) throws IOException, ParserConfigurationException, SAXException Checks if the input does not contain any threat.- Parameters:
input- The validation input.context- The validation context.- Returns:
- returns
trueif the input contains possible threats. Otherwise, returnsfalse. - Throws:
IOException- in case of exceptionParserConfigurationException- in case of exceptionSAXException- in case of exception
-