Class AbstractASiCDataToSignHelperBuilder

java.lang.Object
eu.europa.esig.dss.asic.common.signature.AbstractASiCDataToSignHelperBuilder
Direct Known Subclasses:
ASiCWithCAdESDataToSignHelperBuilder, ASiCWithXAdESDataToSignHelperBuilder

public abstract class AbstractASiCDataToSignHelperBuilder extends Object
Builds a relevant GetDataToSignASiCWithCAdESHelper for ASiC container dataToSign creation
  • Constructor Details

    • AbstractASiCDataToSignHelperBuilder

      protected AbstractASiCDataToSignHelperBuilder()
      Default constructor
  • Method Details

    • getASiCSSignedDocument

      protected DSSDocument getASiCSSignedDocument(List<DSSDocument> filesToBeSigned, Date signingDate)
      This method returns a document to be signed in case of an ASiC-S container
      Parameters:
      filesToBeSigned - a list of DSSDocuments to be signed
      signingDate - Date representing the signing time
      Returns:
      DSSDocument to be signed
    • createPackageZip

      protected DSSDocument createPackageZip(List<DSSDocument> documents, Date signingDate)
      Creates a zip with all files to be signed
      Parameters:
      documents - a list of DSSDocuments
      signingDate - Date
      Returns:
      DSSDocument
    • getDataPackageName

      protected abstract String getDataPackageName(ASiCContent asicContent)
      This method returns a name for a package zip container, containing the original signer data
      Parameters:
      asicContent - ASiCContent containing the original signer data
      Returns:
      String