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
ConstructorDescriptionDefault constructor instantiating object with null services -
Method Summary
Modifier and TypeMethodDescriptionextendDocument
(RemoteDocument toExtendDocument, RemoteSignatureParameters remoteParameters) Extends the level of the signatures in thetoExtendDocument
getDataToSign
(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters) Retrieves the bytes of the data that need to be signed based on thetoSignDocuments
andparameters
.void
setAsicWithCAdESService
(MultipleDocumentsSignatureService<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters> asicWithCAdESService) Sets the ASiC with CAdES multiple signature servicevoid
setAsicWithXAdESService
(MultipleDocumentsSignatureService<ASiCWithXAdESSignatureParameters, XAdESTimestampParameters> asicWithXAdESService) Sets the ASiC with XAdES multiple signature servicevoid
setJadesService
(MultipleDocumentsSignatureService<JAdESSignatureParameters, JAdESTimestampParameters> jadesService) Sets the JAdES multiple signature servicevoid
setXadesService
(MultipleDocumentsSignatureService<XAdESSignatureParameters, XAdESTimestampParameters> xadesService) Sets the XAdES multiple signature servicesignDocument
(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters, SignatureValueDTO signatureValueDTO) Signs the toSignDocuments with the provided signatureValue.timestamp
(List<RemoteDocument> toTimestampDocuments, RemoteTimestampParameters remoteParameters) Adds timestamps to the given list of documentsMethods inherited from class eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
createCounterSignatureParameters, createParameters, fillParameters, getASiCSignatureParameters, getJAdESSignatureParameters, getPAdESSignatureParameters, getXAdESSignatureParameters, toBLevelParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
Constructor Details
-
RemoteMultipleDocumentsSignatureServiceImpl
public RemoteMultipleDocumentsSignatureServiceImpl()Default constructor instantiating object with null services
-
-
Method Details
-
setXadesService
public void setXadesService(MultipleDocumentsSignatureService<XAdESSignatureParameters, XAdESTimestampParameters> xadesService) Sets the XAdES multiple signature service- Parameters:
xadesService
-MultipleDocumentsSignatureService
-
setJadesService
public void setJadesService(MultipleDocumentsSignatureService<JAdESSignatureParameters, JAdESTimestampParameters> jadesService) Sets the JAdES multiple signature service- Parameters:
jadesService
-MultipleDocumentsSignatureService
-
setAsicWithXAdESService
public void setAsicWithXAdESService(MultipleDocumentsSignatureService<ASiCWithXAdESSignatureParameters, XAdESTimestampParameters> asicWithXAdESService) Sets the ASiC with XAdES multiple signature service- Parameters:
asicWithXAdESService
-MultipleDocumentsSignatureService
-
setAsicWithCAdESService
public void setAsicWithCAdESService(MultipleDocumentsSignatureService<ASiCWithCAdESSignatureParameters, ASiCWithCAdESTimestampParameters> asicWithCAdESService) Sets the ASiC with CAdES multiple signature service- Parameters:
asicWithCAdESService
-MultipleDocumentsSignatureService
-
getDataToSign
public ToBeSignedDTO getDataToSign(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters) Description copied from interface:RemoteMultipleDocumentsSignatureService
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.- Specified by:
getDataToSign
in interfaceRemoteMultipleDocumentsSignatureService
- Parameters:
toSignDocuments
- list of documents to signremoteParameters
- set of the driving signing parameters- Returns:
- the data to be signed
-
signDocument
public RemoteDocument signDocument(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters, SignatureValueDTO signatureValueDTO) Description copied from interface:RemoteMultipleDocumentsSignatureService
Signs the toSignDocuments with the provided signatureValue.- Specified by:
signDocument
in interfaceRemoteMultipleDocumentsSignatureService
- Parameters:
toSignDocuments
- list of documents to signremoteParameters
- set of the driving signing parameterssignatureValueDTO
- the signature value to incorporate- Returns:
- the container with the signature and the documents (ASiC) or the signature file
-
extendDocument
public RemoteDocument extendDocument(RemoteDocument toExtendDocument, RemoteSignatureParameters remoteParameters) Description copied from interface:RemoteMultipleDocumentsSignatureService
Extends the level of the signatures in thetoExtendDocument
- Specified by:
extendDocument
in interfaceRemoteMultipleDocumentsSignatureService
- Parameters:
toExtendDocument
- document to extendremoteParameters
- set of the driving signing parameters- Returns:
- the extended signature
-
timestamp
public RemoteDocument timestamp(List<RemoteDocument> toTimestampDocuments, RemoteTimestampParameters remoteParameters) Description copied from interface:RemoteMultipleDocumentsSignatureService
Adds timestamps to the given list of documents- Specified by:
timestamp
in interfaceRemoteMultipleDocumentsSignatureService
- Parameters:
toTimestampDocuments
- a list ofRemoteDocument
to timestampremoteParameters
- set of the driving timestamp parameters- Returns:
- the timestamped
RemoteDocument
-