Interface RemoteMultipleDocumentsSignatureService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RemoteMultipleDocumentsSignatureServiceImpl
This interface
RemoteMultipleDocumentsSignatureService
provides operations for the signature creation.
This interface allows to sign a set of documents.
Supported implementations :
-XAdES Enveloping
-XAdES Detached
-JAdES Detached
-ASiC-S/E with XAdES
-ASiC-S/E with CAdES-
Method Summary
Modifier and TypeMethodDescriptionextendDocument
(RemoteDocument toExtendDocument, RemoteSignatureParameters parameters) Extends the level of the signatures in thetoExtendDocument
getDataToSign
(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters parameters) Retrieves the bytes of the data that need to be signed based on thetoSignDocuments
andparameters
.signDocument
(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters parameters, SignatureValueDTO signatureValue) Signs the toSignDocuments with the provided signatureValue.timestamp
(List<RemoteDocument> toTimestampDocuments, RemoteTimestampParameters parameters) Adds timestamps to the given list of documents
-
Method Details
-
getDataToSign
ToBeSignedDTO getDataToSign(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters parameters) throws DSSException Retrieves the bytes of the data that need to be signed based on thetoSignDocuments
andparameters
. WhentoSignDocuments
contains 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
RemoteDocument signDocument(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters parameters, SignatureValueDTO 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
RemoteDocument extendDocument(RemoteDocument toExtendDocument, RemoteSignatureParameters 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
-
timestamp
RemoteDocument timestamp(List<RemoteDocument> toTimestampDocuments, RemoteTimestampParameters parameters) throws DSSException Adds timestamps to the given list of documents- Parameters:
toTimestampDocuments
- a list ofRemoteDocument
to timestampparameters
- set of the driving timestamp parameters- Returns:
- the timestamped
RemoteDocument
- Throws:
DSSException
- if an error occurred
-