Package eu.europa.esig.dss.policy
Class ValidationPolicyFacade
- java.lang.Object
-
- eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade<ConstraintsParameters>
-
- eu.europa.esig.dss.policy.ValidationPolicyFacade
-
public class ValidationPolicyFacade extends AbstractJaxbFacade<ConstraintsParameters>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_VALIDATION_POLICY_LOCATIONstatic StringTRUSTED_LIST_VALIDATION_POLICY_LOCATION
-
Constructor Summary
Constructors Constructor Description ValidationPolicyFacade()
-
Method Summary
Modifier and Type Method Description ValidationPolicygetDefaultValidationPolicy()protected JAXBContextgetJAXBContext()This method returns the instance ofJAXBContextwhich can handle the JAXB Objectprotected SchemagetSchema()This method returns an instance ofSchemawith the loaded XML Schema(s).ValidationPolicygetTrustedListValidationPolicy()ValidationPolicygetValidationPolicy(File file)ValidationPolicygetValidationPolicy(InputStream is)ValidationPolicygetValidationPolicy(String path)static ValidationPolicyFacadenewFacade()protected JAXBElement<ConstraintsParameters>wrap(ConstraintsParameters jaxbObject)This method wraps/envelops the JAXB object with a "root" element-
Methods inherited from class eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
-
-
-
Field Detail
-
DEFAULT_VALIDATION_POLICY_LOCATION
public static final String DEFAULT_VALIDATION_POLICY_LOCATION
- See Also:
- Constant Field Values
-
TRUSTED_LIST_VALIDATION_POLICY_LOCATION
public static final String TRUSTED_LIST_VALIDATION_POLICY_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
newFacade
public static ValidationPolicyFacade newFacade()
-
getJAXBContext
protected JAXBContext getJAXBContext() throws JAXBException
Description copied from class:AbstractJaxbFacadeThis method returns the instance ofJAXBContextwhich can handle the JAXB Object- Specified by:
getJAXBContextin classAbstractJaxbFacade<ConstraintsParameters>- Returns:
- an instance of
JAXBContext - Throws:
JAXBException- if an error occurred in the initialization process
-
getSchema
protected Schema getSchema() throws IOException, SAXException
Description copied from class:AbstractJaxbFacadeThis method returns an instance ofSchemawith the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchemain 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
protected JAXBElement<ConstraintsParameters> wrap(ConstraintsParameters jaxbObject)
Description copied from class:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin 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
-
-