@Override public void insertSignatureFile( InputStream file, long size, String fileName, UserVo ownerVo, DocumentVo documentVo, X509Certificate signerCertificate) throws BusinessException { Account actor = accountService.findByLsUuid(ownerVo.getLsUuid()); DocumentEntry documentEntry = documentEntryService.findById(actor, documentVo.getIdentifier()); signatureService.createSignature( actor, documentEntry.getDocument(), file, size, fileName, signerCertificate); }
@Override public InputStream retrieveSignatureFileStream(SignatureVo signaturedoc) { Signature signature = signatureService.findByUuid(signaturedoc.getIdentifier()); return signatureService.getDocumentStream(signature); }