Package eu.europa.esig.dss.policy
Class ValidationPolicyFacade
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractJaxbFacade<ConstraintsParameters>
eu.europa.esig.dss.policy.ValidationPolicyFacade
public class ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters>
-
Constructor Summary
Constructors Constructor Description ValidationPolicyFacade()
-
Method Summary
Modifier and Type Method Description ValidationPolicy
getDefaultValidationPolicy()
protected JAXBContext
getJAXBContext()
This method returns the instance ofJAXBContext
which can handle the JAXB Objectprotected Schema
getSchema()
This method returns an instance ofSchema
with the loaded XML Schema(s).ValidationPolicy
getTrustedListValidationPolicy()
ValidationPolicy
getValidationPolicy(File file)
ValidationPolicy
getValidationPolicy(InputStream is)
ValidationPolicy
getValidationPolicy(String path)
static ValidationPolicyFacade
newFacade()
protected JAXBElement<ConstraintsParameters>
wrap(ConstraintsParameters jaxbObject)
This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
ValidationPolicyFacade
public ValidationPolicyFacade()
-
-
Method Details
-
newFacade
-
getJAXBContext
Description copied from class:AbstractJaxbFacade
This method returns the instance ofJAXBContext
which can handle the JAXB Object- Specified by:
getJAXBContext
in classAbstractJaxbFacade<ConstraintsParameters>
- Returns:
- an instance of
JAXBContext
- Throws:
JAXBException
- if an error occurred in the initialization process
-
getSchema
Description copied from class:AbstractJaxbFacade
This method returns an instance ofSchema
with the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchema
in classAbstractJaxbFacade<ConstraintsParameters>
- Returns:
- an instance of
Schema
- Throws:
IOException
- if an I/O error occurred in the initialization processSAXException
- if a SAX error occurred in the initialization process
-
wrap
Description copied from class:AbstractJaxbFacade
This method wraps/envelops the JAXB object with a "root" element- Specified by:
wrap
in classAbstractJaxbFacade<ConstraintsParameters>
- Parameters:
jaxbObject
- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
getDefaultValidationPolicy
public ValidationPolicy getDefaultValidationPolicy() throws JAXBException, XMLStreamException, IOException, SAXException -
getTrustedListValidationPolicy
public ValidationPolicy getTrustedListValidationPolicy() throws JAXBException, XMLStreamException, IOException, SAXException -
getValidationPolicy
public ValidationPolicy getValidationPolicy(String path) throws JAXBException, XMLStreamException, IOException, SAXException -
getValidationPolicy
public ValidationPolicy getValidationPolicy(InputStream is) throws JAXBException, XMLStreamException, IOException, SAXException -
getValidationPolicy
public ValidationPolicy getValidationPolicy(File file) throws JAXBException, XMLStreamException, IOException, SAXException
-