Interface MultipleDocumentsSignatureService<SP extends eu.europa.esig.dss.model.SerializableSignatureParameters,TP extends eu.europa.esig.dss.model.SerializableTimestampParameters>

Type Parameters:
SP - implementation of signature parameters corresponding to the supported signature format
TP - implementation of timestamp parameters corresponding to the supported document format
All Superinterfaces:
Serializable

public interface MultipleDocumentsSignatureService<SP extends eu.europa.esig.dss.model.SerializableSignatureParameters,TP extends eu.europa.esig.dss.model.SerializableTimestampParameters> extends Serializable
This interface MultipleDocumentsSignatureService provides operations for the signature creation and for its extension.
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.model.DSSDocument
    extendDocument(eu.europa.esig.dss.model.DSSDocument toExtendDocument, SP parameters)
    Extends the level of the signatures in the toExtendDocument
    eu.europa.esig.dss.spi.x509.tsp.TimestampToken
    getContentTimestamp(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters)
    Creates a content-timestamp attribute (to be include in the signed-data)
    eu.europa.esig.dss.model.ToBeSigned
    getDataToSign(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters)
    Retrieves the bytes of the data that need to be signed based on the toSignDocuments and parameters.
    boolean
    isValidSignatureValue(eu.europa.esig.dss.model.ToBeSigned toBeSigned, eu.europa.esig.dss.model.SignatureValue signatureValue, eu.europa.esig.dss.model.x509.CertificateToken signingCertificate)
    Verifies the signature value against a ToBeSigned and a CertificateToken
    eu.europa.esig.dss.model.DSSDocument
    signDocument(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters, eu.europa.esig.dss.model.SignatureValue signatureValue)
    Signs the toSignDocuments with the provided signatureValue.
    eu.europa.esig.dss.model.DSSDocument
    timestamp(List<eu.europa.esig.dss.model.DSSDocument> toTimestampDocuments, TP parameters)
    Timestamps the toSignDocuments with the provided signatureValue.
  • Method Details

    • getContentTimestamp

      eu.europa.esig.dss.spi.x509.tsp.TimestampToken getContentTimestamp(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters)
      Creates a content-timestamp attribute (to be include in the signed-data)
      Parameters:
      toSignDocuments - list of documents to sign
      parameters - set of the driving signing parameters
      Returns:
      a timestamp token
    • getDataToSign

      eu.europa.esig.dss.model.ToBeSigned getDataToSign(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters)
      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.
      Parameters:
      toSignDocuments - list of documents to sign
      parameters - set of the driving signing parameters
      Returns:
      the data to be signed
    • isValidSignatureValue

      boolean isValidSignatureValue(eu.europa.esig.dss.model.ToBeSigned toBeSigned, eu.europa.esig.dss.model.SignatureValue signatureValue, eu.europa.esig.dss.model.x509.CertificateToken signingCertificate)
      Verifies the signature value against a ToBeSigned and a CertificateToken
      Parameters:
      toBeSigned - the signed data
      signatureValue - the signature value
      signingCertificate - the used certificate to create the signature value
      Returns:
      true if the signature value is valid
    • signDocument

      eu.europa.esig.dss.model.DSSDocument signDocument(List<eu.europa.esig.dss.model.DSSDocument> toSignDocuments, SP parameters, eu.europa.esig.dss.model.SignatureValue signatureValue)
      Signs the toSignDocuments with the provided signatureValue.
      Parameters:
      toSignDocuments - list of documents to sign
      parameters - set of the driving signing parameters
      signatureValue - the signature value to incorporate
      Returns:
      the container with the signature and the documents (ASiC) or the signature file
    • extendDocument

      eu.europa.esig.dss.model.DSSDocument extendDocument(eu.europa.esig.dss.model.DSSDocument toExtendDocument, SP parameters)
      Extends the level of the signatures in the toExtendDocument
      Parameters:
      toExtendDocument - document to extend
      parameters - set of the driving signing parameters
      Returns:
      the extended signature
    • timestamp

      eu.europa.esig.dss.model.DSSDocument timestamp(List<eu.europa.esig.dss.model.DSSDocument> toTimestampDocuments, TP parameters)
      Timestamps the toSignDocuments with the provided signatureValue.
      Parameters:
      toTimestampDocuments - list of documents to timestamp
      parameters - set of the driving timestamping parameters
      Returns:
      the container with the added timestamp token