Class RemoteMultipleDocumentsSignatureServiceImpl

java.lang.Object
eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
eu.europa.esig.dss.ws.signature.common.RemoteMultipleDocumentsSignatureServiceImpl
All Implemented Interfaces:
RemoteMultipleDocumentsSignatureService, Serializable

public class RemoteMultipleDocumentsSignatureServiceImpl extends AbstractRemoteSignatureServiceImpl implements RemoteMultipleDocumentsSignatureService
WebService for multiple document signing
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiating object with null services
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.ws.dto.RemoteDocument
    extendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters)
    Extends the level of the signatures in the toExtendDocument
    eu.europa.esig.dss.ws.dto.ToBeSignedDTO
    getDataToSign(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toSignDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters)
    Retrieves the bytes of the data that need to be signed based on the toSignDocuments and parameters .
    void
    setAsicWithCAdESService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.asic.cades.ASiCWithCAdESSignatureParameters,eu.europa.esig.dss.asic.cades.ASiCWithCAdESTimestampParameters> asicWithCAdESService)
    Sets the ASiC with CAdES multiple signature service
    void
    setAsicWithXAdESService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.asic.xades.ASiCWithXAdESSignatureParameters,eu.europa.esig.dss.xades.XAdESTimestampParameters> asicWithXAdESService)
    Sets the ASiC with XAdES multiple signature service
    void
    setJadesService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.jades.JAdESSignatureParameters,eu.europa.esig.dss.jades.JAdESTimestampParameters> jadesService)
    Sets the JAdES multiple signature service
    void
    setXadesService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.xades.XAdESSignatureParameters,eu.europa.esig.dss.xades.XAdESTimestampParameters> xadesService)
    Sets the XAdES multiple signature service
    eu.europa.esig.dss.ws.dto.RemoteDocument
    signDocument(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toSignDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValueDTO)
    Signs the toSignDocuments with the provided signatureValue.
    eu.europa.esig.dss.ws.dto.RemoteDocument
    timestamp(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toTimestampDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTimestampParameters remoteParameters)
    Adds timestamps to the given list of documents

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoteMultipleDocumentsSignatureServiceImpl

      public RemoteMultipleDocumentsSignatureServiceImpl()
      Default constructor instantiating object with null services
  • Method Details

    • setXadesService

      public void setXadesService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.xades.XAdESSignatureParameters,eu.europa.esig.dss.xades.XAdESTimestampParameters> xadesService)
      Sets the XAdES multiple signature service
      Parameters:
      xadesService - MultipleDocumentsSignatureService
    • setJadesService

      public void setJadesService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.jades.JAdESSignatureParameters,eu.europa.esig.dss.jades.JAdESTimestampParameters> jadesService)
      Sets the JAdES multiple signature service
      Parameters:
      jadesService - MultipleDocumentsSignatureService
    • setAsicWithXAdESService

      public void setAsicWithXAdESService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.asic.xades.ASiCWithXAdESSignatureParameters,eu.europa.esig.dss.xades.XAdESTimestampParameters> asicWithXAdESService)
      Sets the ASiC with XAdES multiple signature service
      Parameters:
      asicWithXAdESService - MultipleDocumentsSignatureService
    • setAsicWithCAdESService

      public void setAsicWithCAdESService(eu.europa.esig.dss.signature.MultipleDocumentsSignatureService<eu.europa.esig.dss.asic.cades.ASiCWithCAdESSignatureParameters,eu.europa.esig.dss.asic.cades.ASiCWithCAdESTimestampParameters> asicWithCAdESService)
      Sets the ASiC with CAdES multiple signature service
      Parameters:
      asicWithCAdESService - MultipleDocumentsSignatureService
    • getDataToSign

      public eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toSignDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters)
      Description copied from interface: RemoteMultipleDocumentsSignatureService
      Retrieves the bytes of the data that need to be signed based on the toSignDocuments and parameters . When toSignDocuments contains an already existing signature the returned bytes are related to a new parallel signature.
      Specified by:
      getDataToSign in interface RemoteMultipleDocumentsSignatureService
      Parameters:
      toSignDocuments - list of documents to sign
      remoteParameters - set of the driving signing parameters
      Returns:
      the data to be signed
    • signDocument

      public eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toSignDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValueDTO)
      Description copied from interface: RemoteMultipleDocumentsSignatureService
      Signs the toSignDocuments with the provided signatureValue.
      Specified by:
      signDocument in interface RemoteMultipleDocumentsSignatureService
      Parameters:
      toSignDocuments - list of documents to sign
      remoteParameters - set of the driving signing parameters
      signatureValueDTO - the signature value to incorporate
      Returns:
      the container with the signature and the documents (ASiC) or the signature file
    • extendDocument

      public eu.europa.esig.dss.ws.dto.RemoteDocument extendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters remoteParameters)
      Description copied from interface: RemoteMultipleDocumentsSignatureService
      Extends the level of the signatures in the toExtendDocument
      Specified by:
      extendDocument in interface RemoteMultipleDocumentsSignatureService
      Parameters:
      toExtendDocument - document to extend
      remoteParameters - set of the driving signing parameters
      Returns:
      the extended signature
    • timestamp

      public eu.europa.esig.dss.ws.dto.RemoteDocument timestamp(List<eu.europa.esig.dss.ws.dto.RemoteDocument> toTimestampDocuments, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTimestampParameters remoteParameters)
      Description copied from interface: RemoteMultipleDocumentsSignatureService
      Adds timestamps to the given list of documents
      Specified by:
      timestamp in interface RemoteMultipleDocumentsSignatureService
      Parameters:
      toTimestampDocuments - a list of RemoteDocument to timestamp
      remoteParameters - set of the driving timestamp parameters
      Returns:
      the timestamped RemoteDocument