public interface SignatureService
Modifier and Type | Interface and Description |
---|---|
static class |
SignatureService.SigningDisposition |
static class |
SignatureService.StatusWithBlob
Information about a blob and its signing status.
|
Modifier and Type | Method and Description |
---|---|
List<X509Certificate> |
getCertificates(DocumentModel doc)
Returns a list of certificates associated with a given document.
|
SignatureLayout |
getSignatureLayout() |
SignatureService.StatusWithBlob |
getSigningStatus(DocumentModel doc,
DocumentModel currentUser)
Finds the signing status for the document.
|
Blob |
signDocument(DocumentModel doc,
DocumentModel user,
String userKeyPassword,
String reason,
boolean pdfa,
SignatureService.SigningDisposition disposition,
String archiveFilename)
Signs a document with a user certificate (converts it into a PDF first if needed).
|
Blob |
signPDF(Blob pdfBlob,
DocumentModel doc,
DocumentModel user,
String userKeyPassword,
String reason)
Signs a PDF document with a user certificate.
|
SignatureService.StatusWithBlob getSigningStatus(DocumentModel doc, DocumentModel currentUser)
A signature user is determined according to its email.
doc
- the documentBlob signDocument(DocumentModel doc, DocumentModel user, String userKeyPassword, String reason, boolean pdfa, SignatureService.SigningDisposition disposition, String archiveFilename)
Requires a password to retrieve the certificate from the user keystore.
Does not save the modified document.
doc
- the document to signuser
- the signing useruserKeyPassword
- the password for the user's signing certificatereason
- the signing reasonpdfa
- true
if the generated PDF should be a PDF/A-1bdisposition
- the signing dispositionarchiveFilename
- the archive filename when using an archiveSignException
ConversionException
Blob signPDF(Blob pdfBlob, DocumentModel doc, DocumentModel user, String userKeyPassword, String reason) throws SignException
doc
- Document model beign signedpdfBlob
- the blob containing the PDF to signuser
- the signing useruserKeyPassword
- the password for the user's signing certificatereason
- the signing reasonSignException
List<X509Certificate> getCertificates(DocumentModel doc)
doc
- the documentSignatureLayout getSignatureLayout()
Copyright © 2017 Nuxeo. All rights reserved.