Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.platform.signature.web.sign
Class SignActions

java.lang.Object
  extended by org.nuxeo.ecm.platform.signature.web.sign.SignActions
All Implemented Interfaces:
Serializable

@Name(value="signActions")
@Scope(value=CONVERSATION)
public class SignActions
extends Object
implements Serializable

Document signing actions

See Also:
Serialized Form

Field Summary
static String DEFAULT_ARCHIVE_FORMAT
          Used with SimpleDateFormat.
static String DOCUMENT_SIGNED
           
static String DOCUMENT_SIGNED_COMMENT
           
static String MIME_TYPE_PDF
           
static String SIGNATURE_ARCHIVE_FILENAME_FORMAT_PROP
           
static String SIGNATURE_DISPOSITION_NOTPDF
          Signature disposition for non-PDF files.
static String SIGNATURE_DISPOSITION_PDF
          Signature disposition for PDF files.
static String SIGNATURE_USE_PDFA_PROP
          If this system property is set to "true", then signature will use PDF/A.
 
Constructor Summary
SignActions()
           
 
Method Summary
 List<X509Certificate> getCertificateList()
          Returns info about the certificates contained in the current document.
 SignatureService.StatusWithBlob getSigningStatus()
          Gets the signing status for the current document.
 void signCurrentDoc(String signingReason, String password)
          Signs digitally a PDF blob contained in the current document, modifies the document status and updates UI & auditing messages related to signing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGNATURE_USE_PDFA_PROP

public static final String SIGNATURE_USE_PDFA_PROP
If this system property is set to "true", then signature will use PDF/A.

See Also:
Constant Field Values

SIGNATURE_DISPOSITION_PDF

public static final String SIGNATURE_DISPOSITION_PDF
Signature disposition for PDF files. Can be "replace", "archive" or "attach".

See Also:
Constant Field Values

SIGNATURE_DISPOSITION_NOTPDF

public static final String SIGNATURE_DISPOSITION_NOTPDF
Signature disposition for non-PDF files. Can be "replace", "archive" or "attach".

See Also:
Constant Field Values

SIGNATURE_ARCHIVE_FILENAME_FORMAT_PROP

public static final String SIGNATURE_ARCHIVE_FILENAME_FORMAT_PROP
See Also:
Constant Field Values

DEFAULT_ARCHIVE_FORMAT

public static final String DEFAULT_ARCHIVE_FORMAT
Used with SimpleDateFormat.

See Also:
Constant Field Values

MIME_TYPE_PDF

public static final String MIME_TYPE_PDF
See Also:
Constant Field Values

DOCUMENT_SIGNED

public static final String DOCUMENT_SIGNED
See Also:
Constant Field Values

DOCUMENT_SIGNED_COMMENT

public static final String DOCUMENT_SIGNED_COMMENT
See Also:
Constant Field Values
Constructor Detail

SignActions

public SignActions()
Method Detail

signCurrentDoc

public void signCurrentDoc(String signingReason,
                           String password)
                    throws SignException,
                           ClientException
Signs digitally a PDF blob contained in the current document, modifies the document status and updates UI & auditing messages related to signing

Parameters:
signingReason -
password -
Throws:
SignException
ClientException

getSigningStatus

public SignatureService.StatusWithBlob getSigningStatus()
                                                 throws ClientException
Gets the signing status for the current document.

Returns:
the signing status
Throws:
ClientException

getCertificateList

public List<X509Certificate> getCertificateList()
                                         throws SignException,
                                                ClientException
Returns info about the certificates contained in the current document.

Throws:
SignException
ClientException

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.