Class CryptographicSuiteXmlFacade
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade<SecuritySuitabilityPolicyType>
eu.europa.esig.dss.policy.crypto.xml.CryptographicSuiteXmlFacade
Performs marshalling/unmarshalling operation for the ETSI TS 119 312/322 XML schema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the cryptographic suite from theInputStreamprotected jakarta.xml.bind.JAXBContextThis method returns the instance ofJAXBContextwhich can handle the JAXB Objectprotected SchemaThis method returns an instance ofSchemawith the loaded XML Schema(s).static CryptographicSuiteXmlFacadeInitializes a newCryptographicSuitesFacadeprotected jakarta.xml.bind.JAXBElement<SecuritySuitabilityPolicyType> wrap(SecuritySuitabilityPolicyType jaxbObject) This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.common.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
CryptographicSuiteXmlFacade
protected CryptographicSuiteXmlFacade()Default constructor
-
-
Method Details
-
newFacade
Initializes a newCryptographicSuitesFacade- Returns:
CryptographicSuiteXmlFacade
-
getJAXBContext
protected jakarta.xml.bind.JAXBContext getJAXBContext() throws jakarta.xml.bind.JAXBExceptionDescription copied from class:AbstractJaxbFacadeThis method returns the instance ofJAXBContextwhich can handle the JAXB Object- Specified by:
getJAXBContextin classAbstractJaxbFacade<SecuritySuitabilityPolicyType>- Returns:
- an instance of
JAXBContext - Throws:
jakarta.xml.bind.JAXBException- if an error occurred in the initialization process
-
getSchema
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<SecuritySuitabilityPolicyType>- Returns:
- an instance of
Schema - Throws:
SAXException- if a SAX error occurred in the initialization process
-
wrap
protected jakarta.xml.bind.JAXBElement<SecuritySuitabilityPolicyType> wrap(SecuritySuitabilityPolicyType jaxbObject) Description copied from class:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin classAbstractJaxbFacade<SecuritySuitabilityPolicyType>- Parameters:
jaxbObject- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
getCryptographicSuite
public CryptographicSuite getCryptographicSuite(InputStream is) throws jakarta.xml.bind.JAXBException, XMLStreamException, IOException, SAXException Gets the cryptographic suite from theInputStream- Parameters:
is-InputStream- Returns:
CryptographicSuite- Throws:
jakarta.xml.bind.JAXBException- ifJAXBExceptionoccursXMLStreamException- ifXMLStreamExceptionoccursIOException- ifIOExceptionoccursSAXException- ifSAXExceptionoccurs
-