java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<ConstraintsParameters>
eu.europa.esig.dss.policy.ValidationPolicyFacade
public class ValidationPolicyFacade
extends eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<ConstraintsParameters>
Used to read an XML validation policy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.policy.ValidationPolicyDeprecated.since DSS 6.3.eu.europa.esig.dss.model.policy.ValidationPolicyDeprecated.since DSS 6.3.protected jakarta.xml.bind.JAXBContextprotected Schemaeu.europa.esig.dss.model.policy.ValidationPolicyDeprecated.since DSS 6.3.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 thepathstatic ValidationPolicyFacadeInitializes a newValidationPolicyFacadeprotected jakarta.xml.bind.JAXBElement<ConstraintsParameters> wrap(ConstraintsParameters jaxbObject) Methods inherited from class eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
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- Specified by:
getJAXBContextin classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<ConstraintsParameters>- Throws:
jakarta.xml.bind.JAXBException
-
getSchema
- Specified by:
getSchemain classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<ConstraintsParameters>- Throws:
IOExceptionSAXException
-
wrap
protected jakarta.xml.bind.JAXBElement<ConstraintsParameters> wrap(ConstraintsParameters jaxbObject) - Specified by:
wrapin classeu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<ConstraintsParameters>
-
getDefaultValidationPolicy
@Deprecated public eu.europa.esig.dss.model.policy.ValidationPolicy getDefaultValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionDeprecated.since DSS 6.3. To be removed. Please usenew EtsiValidationPolicyFactory#loadDefaultValidationPolicymethod.Gets the default validation policy- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getCertificateValidationPolicy
@Deprecated public eu.europa.esig.dss.model.policy.ValidationPolicy getCertificateValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionDeprecated.since DSS 6.3. To be removed. Please usegetValidationPolicy(String path)method explicitly.Gets the default policy for certificate validation- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getTrustedListValidationPolicy
@Deprecated public eu.europa.esig.dss.model.policy.ValidationPolicy getTrustedListValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionDeprecated.since DSS 6.3. To be removed. Please usegetValidationPolicy(String path)method explicitly.Gets the validation policy for LOTL/TL- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
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
-