public interface RemoteDocumentSignatureService<DOC,SP extends AbstractSerializableSignatureParameters> extends Serializable
RemoteDocumentSignatureService provides operations for the signature creation and for its
extension.| Modifier and Type | Method and Description |
|---|---|
DSSDocument |
extendDocument(DOC toExtendDocument,
SP parameters)
Extends the level of the signatures in the
toExtendDocument |
ToBeSigned |
getDataToSign(DOC toSignDocument,
SP parameters)
Retrieves the bytes of the data that need to be signed based on the
toSignDocument and parameters
. |
DSSDocument |
signDocument(DOC toSignDocument,
SP parameters,
SignatureValue signatureValue)
Signs the toSignDocument with the provided signatureValue.
|
ToBeSigned getDataToSign(DOC toSignDocument, SP parameters) throws DSSException
toSignDocument and parameters
.
When toSignDocument contains 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 addedtoSignDocument - document to sign or the already existing signatureparameters - set of the driving signing parametersDSSExceptionDSSDocument signDocument(DOC toSignDocument, SP parameters, SignatureValue signatureValue) throws DSSException
toSignDocument - document to signparameters - set of the driving signing parameterssignatureValue - the signature value to incorporateDSSExceptionDSSDocument extendDocument(DOC toExtendDocument, SP parameters) throws DSSException
toExtendDocumenttoExtendDocument - document to extendparameters - set of the driving signing parametersDSSExceptionCopyright © 2018. All rights reserved.