Interface RemoteDocumentSignatureService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RemoteDocumentSignatureServiceImpl
This interface
RemoteDocumentSignatureService provides operations for the signature creation and for its
extension.-
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.ws.dto.RemoteDocumentcounterSignSignature(eu.europa.esig.dss.ws.dto.RemoteDocument signatureDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValue) Counter signs thesignatureDocumentwith the provided signatureValue.eu.europa.esig.dss.ws.dto.RemoteDocumentextendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.enumerations.SignatureProfile signatureProfile, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Extends the level of the signatures in thetoExtendDocumentaccording to the defined targetsignatureProfileand/orparameterseu.europa.esig.dss.ws.dto.RemoteDocumentextendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Deprecated.since DSS 6.4.eu.europa.esig.dss.ws.dto.ToBeSignedDTOgetDataToBeCounterSigned(eu.europa.esig.dss.ws.dto.RemoteDocument signatureDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Retrieves the bytes of the data that need to be counter signed fromsignatureDocument.eu.europa.esig.dss.ws.dto.ToBeSignedDTOgetDataToSign(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Retrieves the bytes of the data that need to be signed based on thetoSignDocumentandparameters.eu.europa.esig.dss.ws.dto.RemoteDocumentsignDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValue) Signs the toSignDocument with the provided signatureValue.eu.europa.esig.dss.ws.dto.RemoteDocumenttimestamp(eu.europa.esig.dss.ws.dto.RemoteDocument toTimestampDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTimestampParameters parameters) Adds a timestamp to the document
-
Method Details
-
getDataToSign
eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) throws eu.europa.esig.dss.model.DSSException Retrieves the bytes of the data that need to be signed based on thetoSignDocumentandparameters.When
toSignDocumentcontains an already existing signature the returned bytes are related to a new parallel signature.- Enveloped signature (XML): a new signature is added and the signed data corresponds to that pointed by the first signature;
- Enveloping signature:
- - XML: The parallel signature is not possible
- - CMS: A new parallel signature is added
- Detached signature:
- - XML: The parallel signature is added
- - CMS: A new parallel signature is added
- Parameters:
toSignDocument- document to sign or the already existing signatureparameters- set of the driving signing parameters- Returns:
- the data to be signed
- Throws:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
signDocument
eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValue) throws eu.europa.esig.dss.model.DSSException Signs the toSignDocument with the provided signatureValue.- Parameters:
toSignDocument- document to signparameters- set of the driving signing parameterssignatureValue- the signature value to incorporate- Returns:
- the signed document (
toSignDocumentwith the incorporated signature or the detached signature) - Throws:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
extendDocument
@Deprecated eu.europa.esig.dss.ws.dto.RemoteDocument extendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) throws eu.europa.esig.dss.model.DSSException Deprecated.since DSS 6.4. Please use#extendDocument(toExtendDocument, signatureProfile, parameters)method instead.Extends the level of the signatures in thetoExtendDocument- Parameters:
toExtendDocument- document to extendparameters- set of the driving signing parameters- Returns:
- the extended signature
- Throws:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
extendDocument
eu.europa.esig.dss.ws.dto.RemoteDocument extendDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toExtendDocument, eu.europa.esig.dss.enumerations.SignatureProfile signatureProfile, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) throws eu.europa.esig.dss.model.DSSException Extends the level of the signatures in thetoExtendDocumentaccording to the defined targetsignatureProfileand/orparameters- Parameters:
toExtendDocument- document to extendsignatureProfile- (conditional presence) target signature augmentation profileparameters- (conditional presence) set of the driving signing parameters- Returns:
- the extended signature
- Throws:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
timestamp
eu.europa.esig.dss.ws.dto.RemoteDocument timestamp(eu.europa.esig.dss.ws.dto.RemoteDocument toTimestampDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteTimestampParameters parameters) throws eu.europa.esig.dss.model.DSSException Adds a timestamp to the document- Parameters:
toTimestampDocument-RemoteDocumentto timestampparameters- set of the driving timestamp parameters- Returns:
- the timestamped
RemoteDocument - Throws:
eu.europa.esig.dss.model.DSSException- if an error occurred
-
getDataToBeCounterSigned
eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToBeCounterSigned(eu.europa.esig.dss.ws.dto.RemoteDocument signatureDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Retrieves the bytes of the data that need to be counter signed fromsignatureDocument.signatureDocumentshall be a valid signature of the same type- Parameters:
signatureDocument-RemoteDocumentrepresenting the original signature to be counter signedparameters-RemoteSignatureParametersset of the driving signing parameters for a counter signature- Returns:
ToBeSignedDTOto be counter signed byte array (signature value retrieved from thesignatureDocument)
-
counterSignSignature
eu.europa.esig.dss.ws.dto.RemoteDocument counterSignSignature(eu.europa.esig.dss.ws.dto.RemoteDocument signatureDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValue) Counter signs thesignatureDocumentwith the provided signatureValue.- Parameters:
signatureDocument-RemoteDocumentto be counter signedparameters-RemoteSignatureParametersset of the driving signing parameters for a counter signaturesignatureValue-SignatureValueDTOthe signature value to incorporate- Returns:
RemoteDocumentthe signature document enveloping a newly created counter signature
-