Interface SoapDocumentSignatureService

All Superinterfaces:
Serializable
All Known Implementing Classes:
SoapDocumentSignatureServiceImpl

public interface SoapDocumentSignatureService
extends Serializable
Interface for the Contract of the Signature Web Service. The signing web service allows to create a new signature or to extend existing one. Different forms of signature: XAdES, CAdES, PAdES, ASiC-S are accepted. The digital signature of a document in a web environment is performed in three steps: 1. Creating a byte stream representing the data to be signed. 2. Hashing of the data previously obtained and its encryption. 3. The creation of the envelope containing all the elements of a digital signature. The process is controlled by a set of parameters.
  • Method Details

    • getDataToSign

      ToBeSignedDTO getDataToSign​(DataToSignOneDocumentDTO dataToSign)
      This method computes the digest to be signed
      Parameters:
      dataToSign - a DTO which contains the document to sign and parameters
      Returns:
      the data to be signed
    • signDocument

      RemoteDocument signDocument​(SignOneDocumentDTO signDocument)
      This web service operation signs a document according to a previously signed digest, a level of signature, some signature properties and keyInfo.
      Parameters:
      signDocument - a DTO which contains the document to be signed, the parameters and the signature value
      Returns:
      the signed document
    • extendDocument

      RemoteDocument extendDocument​(ExtendDocumentDTO extendDocument)
      This web service operation extends the signature of a given document to the level of the signature provided. The document is only changed, if the given signature level is 'higher' than the signature level of the document.
      Parameters:
      extendDocument - a DTO which contains the document to be extented and the parameters
      Returns:
      the document with an extended signature
    • timestampDocument

      RemoteDocument timestampDocument​(TimestampOneDocumentDTO timestampDocument)
      This web service operation timestamps a document according to the provided timestamp parameters.
      Parameters:
      timestampDocument - a DTO which contains the document to be timestamped and timestamp parameters
      Returns:
      a timestamped document