Package eu.europa.esig.dss.signature
Interface MultipleDocumentsSignatureService<SP extends AbstractSerializableSignatureParameters>
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractASiCSignatureService,ASiCWithCAdESService,ASiCWithXAdESService,XAdESService
public interface MultipleDocumentsSignatureService<SP extends AbstractSerializableSignatureParameters> extends Serializable
This interfaceMultipleDocumentsSignatureServiceprovides operations for the signature creation and for its extension.
-
-
Method Summary
Modifier and Type Method Description DSSDocumentextendDocument(DSSDocument toExtendDocument, SP parameters)Extends the level of the signatures in thetoExtendDocumentTimestampTokengetContentTimestamp(List<DSSDocument> toSignDocuments, SP parameters)ToBeSignedgetDataToSign(List<DSSDocument> toSignDocuments, SP parameters)Retrieves the bytes of the data that need to be signed based on thetoSignDocumentsandparameters.DSSDocumentsignDocument(List<DSSDocument> toSignDocuments, SP parameters, SignatureValue signatureValue)Signs the toSignDocuments with the provided signatureValue.
-
-
-
Method Detail
-
getDataToSign
ToBeSigned getDataToSign(List<DSSDocument> toSignDocuments, SP parameters) throws DSSException
Retrieves the bytes of the data that need to be signed based on thetoSignDocumentsandparameters. WhentoSignDocumentscontains an already existing signature the returned bytes are related to a new parallel signature.- Parameters:
toSignDocuments- list of documents to signparameters- set of the driving signing parameters- Returns:
- the data to be signed
- Throws:
DSSException- if an error occurred
-
signDocument
DSSDocument signDocument(List<DSSDocument> toSignDocuments, SP parameters, SignatureValue signatureValue) throws DSSException
Signs the toSignDocuments with the provided signatureValue.- Parameters:
toSignDocuments- list of documents to signparameters- set of the driving signing parameterssignatureValue- the signature value to incorporate- Returns:
- the container with the signature and the documents (ASiC) or the signature file
- Throws:
DSSException- if an error occurred
-
extendDocument
DSSDocument extendDocument(DSSDocument toExtendDocument, SP parameters) throws DSSException
Extends the level of the signatures in thetoExtendDocument- Parameters:
toExtendDocument- document to extendparameters- set of the driving signing parameters- Returns:
- the extended signature
- Throws:
DSSException- if an error occurred
-
getContentTimestamp
TimestampToken getContentTimestamp(List<DSSDocument> toSignDocuments, SP parameters)
-
-