Class ValidationPolicyFacade
java.lang.Object
eu.europa.esig.dss.policy.ValidationPolicyFacade
Used to read an XML validation policy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.xml.bind.JAXBContextjakarta.xml.bind.MarshallergetMarshaller(boolean arg0) protected Schemajakarta.xml.bind.UnmarshallergetUnmarshaller(boolean arg0) eu.europa.esig.dss.model.policy.ValidationPolicygetValidationPolicy(File file) Gets the validation policy from thefileeu.europa.esig.dss.model.policy.ValidationPolicyGets the validation policy from theiseu.europa.esig.dss.model.policy.ValidationPolicygetValidationPolicy(String path) Gets the validation policy from thepathmarshall(ConstraintsParameters arg0, boolean arg1) voidmarshall(ConstraintsParameters arg0, OutputStream arg1) voidmarshall(ConstraintsParameters arg0, OutputStream arg1, boolean arg2) static ValidationPolicyFacadeInitializes a newValidationPolicyFacadeunmarshall(File arg0) unmarshall(File arg0, boolean arg1) unmarshall(InputStream arg0) unmarshall(InputStream arg0, boolean arg1) unmarshall(String arg0) unmarshall(String arg0, boolean arg1) protected jakarta.xml.bind.JAXBElement<ConstraintsParameters> wrap(ConstraintsParameters jaxbObject)
-
Constructor Details
-
ValidationPolicyFacade
protected ValidationPolicyFacade()Default constructor
-
-
Method Details
-
newFacade
Initializes a newValidationPolicyFacade- Returns:
ValidationPolicyFacade
-
getJAXBContext
protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBException- Throws:
jakarta.xml.bind.JAXBException
-
getSchema
- Throws:
IOExceptionSAXException
-
wrap
protected jakarta.xml.bind.JAXBElement<ConstraintsParameters> wrap(ConstraintsParameters jaxbObject) -
getValidationPolicy
public eu.europa.esig.dss.model.policy.ValidationPolicy getValidationPolicy(String path) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException Gets the validation policy from thepath- Parameters:
path-String- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getValidationPolicy
public eu.europa.esig.dss.model.policy.ValidationPolicy getValidationPolicy(InputStream is) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException Gets the validation policy from theis- Parameters:
is-InputStream- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getValidationPolicy
public eu.europa.esig.dss.model.policy.ValidationPolicy getValidationPolicy(File file) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException Gets the validation policy from thefile- Parameters:
file-File- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
marshall
public String marshall(ConstraintsParameters arg0) throws jakarta.xml.bind.JAXBException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionIOExceptionSAXException
-
marshall
public String marshall(ConstraintsParameters arg0, boolean arg1) throws jakarta.xml.bind.JAXBException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionIOExceptionSAXException
-
marshall
public void marshall(ConstraintsParameters arg0, OutputStream arg1) throws jakarta.xml.bind.JAXBException, SAXException, IOException - Throws:
jakarta.xml.bind.JAXBExceptionSAXExceptionIOException
-
marshall
public void marshall(ConstraintsParameters arg0, OutputStream arg1, boolean arg2) throws jakarta.xml.bind.JAXBException, SAXException, IOException - Throws:
jakarta.xml.bind.JAXBExceptionSAXExceptionIOException
-
unmarshall
public ConstraintsParameters unmarshall(InputStream arg0) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
unmarshall
public ConstraintsParameters unmarshall(InputStream arg0, boolean arg1) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
unmarshall
public ConstraintsParameters unmarshall(File arg0) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
unmarshall
public ConstraintsParameters unmarshall(File arg0, boolean arg1) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
unmarshall
public ConstraintsParameters unmarshall(String arg0) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
unmarshall
public ConstraintsParameters unmarshall(String arg0, boolean arg1) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamExceptionIOExceptionSAXException
-
getMarshaller
public jakarta.xml.bind.Marshaller getMarshaller(boolean arg0) throws jakarta.xml.bind.JAXBException, SAXException, IOException - Throws:
jakarta.xml.bind.JAXBExceptionSAXExceptionIOException
-
getUnmarshaller
public jakarta.xml.bind.Unmarshaller getUnmarshaller(boolean arg0) throws jakarta.xml.bind.JAXBException, IOException, SAXException - Throws:
jakarta.xml.bind.JAXBExceptionIOExceptionSAXException
-