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
ConstructorsConstructorDescriptionDefault constructor instantiating object with null services -
Method Summary
Modifier and TypeMethodDescriptionextendDocument(RemoteDocument remoteDocument, SignatureProfile signatureProfile, RemoteSignatureParameters remoteParameters) Extends the level of the signatures in thetoExtendDocumentaccording to the defined targetsignatureProfileand/orparametersextendDocument(RemoteDocument toExtendDocument, RemoteSignatureParameters remoteParameters) Deprecated.getDataToSign(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters) Retrieves the bytes of the data that need to be signed based on thetoSignDocumentsandparameters.voidsetAsicWithCAdESService(ASiCWithCAdESService asicWithCAdESService) Sets the ASiC with CAdES multiple signature servicevoidsetAsicWithXAdESService(ASiCWithXAdESService asicWithXAdESService) Sets the ASiC with XAdES multiple signature servicevoidsetJadesService(JAdESService jadesService) Sets the JAdES multiple signature servicevoidsetXadesService(XAdESService 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 AbstractRemoteSignatureServiceImpl
createCounterSignatureParameters, createParameters, fillParameters, getASiCSignatureParameters, getExtensionParameters, getJAdESSignatureParameters, getPAdESSignatureParameters, getSignatureParameters, getXAdESSignatureParameters, toBLevelParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
Constructor Details
-
RemoteMultipleDocumentsSignatureServiceImpl
public RemoteMultipleDocumentsSignatureServiceImpl()Default constructor instantiating object with null services
-
-
Method Details
-
setXadesService
Sets the XAdES multiple signature service- Parameters:
xadesService-XAdESService
-
setJadesService
Sets the JAdES multiple signature service- Parameters:
jadesService-JAdESService
-
setAsicWithXAdESService
Sets the ASiC with XAdES multiple signature service- Parameters:
asicWithXAdESService-ASiCWithXAdESService
-
setAsicWithCAdESService
Sets the ASiC with CAdES multiple signature service- Parameters:
asicWithCAdESService-ASiCWithCAdESService
-
getDataToSign
public ToBeSignedDTO getDataToSign(List<RemoteDocument> toSignDocuments, RemoteSignatureParameters remoteParameters) Description copied from interface:RemoteMultipleDocumentsSignatureServiceRetrieves 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.- Specified by:
getDataToSignin 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:RemoteMultipleDocumentsSignatureServiceSigns the toSignDocuments with the provided signatureValue.- Specified by:
signDocumentin 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
@Deprecated public RemoteDocument extendDocument(RemoteDocument toExtendDocument, RemoteSignatureParameters remoteParameters) Deprecated.Description copied from interface:RemoteMultipleDocumentsSignatureServiceExtends the level of the signatures in thetoExtendDocument- Specified by:
extendDocumentin interfaceRemoteMultipleDocumentsSignatureService- Parameters:
toExtendDocument- document to extendremoteParameters- set of the driving signing parameters- Returns:
- the extended signature
-
extendDocument
public RemoteDocument extendDocument(RemoteDocument remoteDocument, SignatureProfile signatureProfile, RemoteSignatureParameters remoteParameters) throws DSSException Description copied from interface:RemoteMultipleDocumentsSignatureServiceExtends the level of the signatures in thetoExtendDocumentaccording to the defined targetsignatureProfileand/orparameters- Specified by:
extendDocumentin interfaceRemoteMultipleDocumentsSignatureService- Parameters:
remoteDocument- document to extendsignatureProfile- (conditional presence) target signature augmentation profileremoteParameters- set of the driving signing parameters- Returns:
- the extended signature
- Throws:
DSSException- if an error occurred
-
timestamp
public RemoteDocument timestamp(List<RemoteDocument> toTimestampDocuments, RemoteTimestampParameters remoteParameters) Description copied from interface:RemoteMultipleDocumentsSignatureServiceAdds timestamps to the given list of documents- Specified by:
timestampin interfaceRemoteMultipleDocumentsSignatureService- Parameters:
toTimestampDocuments- a list ofRemoteDocumentto timestampremoteParameters- set of the driving timestamp parameters- Returns:
- the timestamped
RemoteDocument
-