Class ATSLBuilder
- java.lang.Object
-
- es.gob.afirma.tsl.parsing.impl.common.ATSLBuilder
-
- All Implemented Interfaces:
ITSLBuilder
- Direct Known Subclasses:
TSLBuilder
public abstract class ATSLBuilder extends java.lang.Object implements ITSLBuilder
Abstract class that represents a TSL builder with the principal functions regardless it implementation.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.2, 18/04/2022.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]buildTSLFromXML(java.io.InputStream is)Method that builds the TSL data from a input XML.byte[]buildXMLfromTSL()Method that builds the XML representation (concrete specification and version) of the TSL.
-
-
-
Method Detail
-
buildTSLFromXML
public final byte[] buildTSLFromXML(java.io.InputStream is) throws TSLArgumentException, TSLParsingExceptionMethod that builds the TSL data from a input XML. This process overwrites the actual information of the TSL object.- Specified by:
buildTSLFromXMLin interfaceITSLBuilder- Parameters:
is- InputStream Input Stream of the XML (TSL representation).- Returns:
- byte array with the full TSL loaded.
- Throws:
TSLArgumentException- In case of the input parameter isnull.TSLParsingException- In case of some error parsing the XML input stream.- See Also:
ITSLBuilder.buildTSLFromXML(java.io.InputStream)
-
buildXMLfromTSL
public final byte[] buildXMLfromTSL() throws TSLEncodingExceptionMethod that builds the XML representation (concrete specification and version) of the TSL.- Specified by:
buildXMLfromTSLin interfaceITSLBuilder- Returns:
- byte array that represents the XML of the TSL.
- Throws:
TSLEncodingException- In case of some error encoding the XML- See Also:
ITSLBuilder.buildXMLfromTSL()
-
-