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 TypeMethodDescriptionGets the default policy for certificate validationGets the default validation policyprotected jakarta.xml.bind.JAXBContextprotected SchemaGets the validation policy for LOTL/TLgetValidationPolicy(File file) Gets the validation policy from thefileGets the validation policy from theisgetValidationPolicy(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
public ValidationPolicy getDefaultValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionGets the default validation policy- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getCertificateValidationPolicy
public ValidationPolicy getCertificateValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionGets the default policy for certificate validation- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getTrustedListValidationPolicy
public ValidationPolicy getTrustedListValidationPolicy() throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXExceptionGets the validation policy for LOTL/TL- Returns:
ValidationPolicy- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-
getValidationPolicy
public 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 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 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
-