Package es.gob.afirma.tsl.parsing.ifaces
Interface ITSLBuilder
-
- All Known Implementing Classes:
ATSLBuilder,TSLBuilder
public interface ITSLBuilderInterface that represents a TSL builder regardless it implementation.
Project:Platform for detection and validation of certificates recognized in European TSL.
- Version:
- 1.0, 10/11/2020.
-
-
Method Summary
All Methods Instance Methods Abstract 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
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.- 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.
-
buildXMLfromTSL
byte[] buildXMLfromTSL() throws TSLEncodingExceptionMethod that builds the XML representation (concrete specification and version) of the TSL.- Returns:
- byte array that represents the XML of the TSL.
- Throws:
TSLEncodingException- In case of some error encoding the XML
-
-