integration-impl/src/main/java/se/idsec/signservice/integration/document/SignedDocumentProcessor.java
CompiledSignedDocument<T, X> buildSignedDocument(@Nonnull final TbsDocument tbsDocument,
      @Nonnull final SignTaskData signedData,
      @Nonnull final List<X509Certificate> signerCertificateChain,
      @Nonnull final SignRequestWrapper signRequest,
      @Nullable final SignResponseProcessingParameters parameters) throws SignServiceIntegrationException;
/**
   * Given a {@code SignTaskData} received in a sign response containing a signature and a {@code TbsDocument} from the
   * corresponding sign request the method compiles a complete signed document.
   * 
   * @param tbsDocument
   *          the to-be-signed document
   * @param signedData
   *          the signed data (signature)
   * @param signerCertificateChain
   *          the certificate chain for the signer (starting with the signer certificate and ending with the root)
   * @param signRequest
   *          the corresponding sign request
   * @param parameters
   *          processing parameters received from the caller
   * @return a compiled signed document
   * @throws SignServiceIntegrationException
   *           for processing errors
   */
Given a  SignTaskData received in a sign response containing a signature and a  TbsDocument from the
corresponding sign request the method compiles a complete signed document.


Given a SignTaskData received in a sign response containing a signature and a TbsDocument from the corresponding sign request the method compiles a complete signed document .
CompiledSignedDocument<T, X> buildSignedDocument(@Nonnull final TbsDocument tbsDocument,
      @Nonnull final SignTaskData signedData,
      @Nonnull final List<X509Certificate> signerCertificateChain,
      @Nonnull final SignRequestWrapper signRequest,
      @Nullable final SignResponseProcessingParameters parameters) throws SignServiceIntegrationException;
CompiledSignedDocument < T , X > buildSignedDocument ( @ Nonnull final TbsDocument tbsDocument , @ Nonnull final SignTaskData signedData , @ Nonnull final List < X509Certificate > signerCertificateChain , @ Nonnull final SignRequestWrapper signRequest , @ Nullable final SignResponseProcessingParameters parameters ) throws SignServiceIntegrationException ;
Given a {@code SignTaskData} received in a sign response containing a signature and a {@code TbsDocument} from the
 corresponding sign request the method compiles a complete signed document.
Given a { @code SignTaskData } received in a sign response containing a signature and a { @code TbsDocument } from the corresponding sign request the method compiles a complete signed document .