Parameters for signing a document. More...
Public Member Functions | |
synchronized int | getState (String aName) throws SignDocException |
Get the status of a parameter. | |
synchronized int | setString (String aName, String aValue) throws SignDocException |
Set a string parameter. | |
synchronized int | setInteger (String aName, int aValue) throws SignDocException |
Set an integer parameter. | |
synchronized int | setBlob (String aName, byte[] aData) throws SignDocException |
Set a blob parameter. | |
synchronized int | setLength (String aName, int aType, double aValue) throws SignDocException |
Set a length parameter. | |
synchronized int | setColor (String aName, SignDocColor aValue) throws SignDocException |
Set a color parameter. | |
synchronized int | addTextItem (int aItem, int aGroup) throws SignDocException |
Add another string to be displayed, top down. | |
synchronized int | addTextItem2 (int aItem, int aGroup, int aHAlignment, int aDirection) throws SignDocException |
Add another string to be displayed, top down, with paragraph direction. | |
synchronized int | clearTextItems () throws SignDocException |
Remove all strings that were to be displayed. | |
synchronized int | setTextItemDirection (int aItem, int aHAlignment, int aDirection) throws SignDocException |
Set the paragraph direction of text items. | |
synchronized int | setPKCS7 (SignPKCS7 aPKCS7) throws SignDocException |
Set an object which will create a PKCS #7 or CAdES signature. | |
synchronized int | setRSA (SignRSA aRSA) throws SignDocException |
Set an object which will compute an RSA signature. | |
synchronized int | setECDSA (SignECDSA aECDSA) throws SignDocException |
Set an object which will compute an ECDSA signature. | |
synchronized int | getAvailableMethods () throws SignDocException |
Get a bitset indicating which signing methods are available for this signature field. | |
synchronized byte[] | getTemplate () throws SignDocException |
Get an XML document specifying the current layout. | |
synchronized String | getErrorMessage () throws SignDocException |
Get an error message for the last function call. | |
synchronized void | destroy () throws SignDocException |
Destroy this object, overwriting sensitive data. | |
Static Public Attributes | |
static final int | m_default = 0 |
Signing method (for integer parameter "Method"): default method. | |
static final int | m_digsig_pkcs1 = 1 |
Signing method (for integer parameter "Method"): PKCS #1 (RSA keys only). | |
static final int | m_digsig_pkcs7_detached = 2 |
Signing method (for integer parameter "Method"): detached PKCS #7. | |
static final int | m_digsig_pkcs7_sha1 = 3 |
Signing method (for integer parameter "Method"): PKCS #7 with SHA-1 (deprecated). | |
static final int | m_hash = 4 |
Signing method (for integer parameter "Method"): The signature is just a hash (TIFF only). | |
static final int | m_digsig_cades_detached = 5 |
Signing method (for integer parameter "Method"): Detached ETSI CAdES (PAdES-BES). | |
static final int | m_digsig_cades_rfc3161 = 6 |
Signing method (for integer parameter "Method"): ETSI CAdES RFC 3161 time stamp. | |
static final int | dha_default = 0 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): default hash algorithm. | |
static final int | dha_sha1 = 1 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-1. | |
static final int | dha_sha256 = 2 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-256. | |
static final int | dha_sha384 = 3 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-384. | |
static final int | dha_sha512 = 4 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-512. | |
static final int | dha_ripemd160 = 5 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): RIPEMD-160. | |
static final int | dha_sha224 = 6 |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-224. | |
static final int | tsha_default = 0 |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): default value. | |
static final int | tsha_sha1 = 1 |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-1. | |
static final int | tsha_sha256 = 2 |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-256. | |
static final int | tsha_sha384 = 3 |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-384. | |
static final int | tsha_sha512 = 4 |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-512. | |
static final int | o_optimize = 0 |
Optimize document before signing (for integer parameter "Optimize"). | |
static final int | o_dont_optimize = 1 |
Don't optimize document before signing (for integer parameter "Optimize"). | |
static final int | pb_freeze = 0 |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Freeze (fix) appearances. | |
static final int | pb_dont_freeze = 1 |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Don't freeze (fix) appearances. | |
static final int | pb_auto = 2 |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Freeze (fix) appearances if appropriate. | |
static final int | csa_sha1_rsa = 0 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-1 with RSA. | |
static final int | csa_md5_rsa = 1 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): MD5 with RSA. | |
static final int | csa_sha256_rsa = 2 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-256 with RSA. | |
static final int | csa_sha384_rsa = 3 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-384 with RSA. | |
static final int | csa_sha512_rsa = 4 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-512 with RSA. | |
static final int | csa_ripemd160_rsa = 5 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-512 with RSA. | |
static final int | csa_ecdsa_sha1 = 6 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-1. | |
static final int | csa_ecdsa_sha224 = 7 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-224. | |
static final int | csa_ecdsa_sha256 = 8 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-256. | |
static final int | csa_ecdsa_sha384 = 9 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-384. | |
static final int | csa_ecdsa_sha512 = 10 |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-512. | |
static final int | rss_pkcs1 = 0 |
Signing scheme for RSA signatures: PKCS #1 (RSA v1.5). | |
static final int | rss_pss = 1 |
Signing scheme for RSA signatures: Probabilistic Signature Scheme (PSS) (RSA v2.0 and v2.1). | |
static final int | be_rsa = 0 |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Random session key encrypted with public RSA key. | |
static final int | be_fixed = 1 |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Fixed key (no security). | |
static final int | be_binary = 2 |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Binary 256-bit key. | |
static final int | be_passphrase = 3 |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Passphrase that will be hashed to a 256-bit key. | |
static final int | be_dont_store = 4 |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): The biometric data won't be stored in the document. | |
static final int | bhl_attr = 0 |
Select where to store the message digest computed over the document hash and the unencrypted biometric data: If possible, store the biometric hash as unauthenticated attribute in the PKCS #7 (or CMS) message. | |
static final int | bhl_contents = 1 |
Select where to store the message digest computed over the document hash and the unencrypted biometric data: Store the message digest in the Contents entry of the signature dictionary. | |
static final int | ha_left = 0 |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Align left. | |
static final int | ha_center = 1 |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Center. | |
static final int | ha_right = 2 |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Align right. | |
static final int | ha_justify = 3 |
Horizontal alignment (for integer parameter "TextHAlignment" and for addTextItem2()): Justify (align both and right, expanding white space). | |
static final int | ha_auto = 4 |
Horizontal alignment (for integer parameter "TextHAlignment" and for addTextItem2()): Align left if the text begins with an LTR run, align right if the text begins with an RTL run. | |
static final int | ha_default = -1 |
Horizontal alignment (for addTextItem2()): Use integer parameter "TextHAlignment". | |
static final int | va_top = 0 |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Align top. | |
static final int | va_center = 1 |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Center. | |
static final int | va_bottom = 2 |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Align bottom. | |
static final int | tp_overlay = 0 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text and image are independent and overlap (text is painted on image). | |
static final int | tp_below = 1 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put below the image. | |
static final int | tp_underlay = 2 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text and image are independent and overlap (image is painted on text). | |
static final int | tp_right_of = 3 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put on the right of the image. | |
static final int | tp_above = 4 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put above the image. | |
static final int | tp_left_of = 5 |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put on the left of the image. | |
static final int | vt_abs = 0 |
Indicate how measurements are specified: aValue is the value to be used (units of document coordinates). | |
static final int | vt_field_height = 1 |
Indicate how measurements are specified: Multiply aValue by the field height. | |
static final int | vt_field_width = 2 |
Indicate how measurements are specified: Multiply aValue by the field width. | |
static final int | ti_signer = 0 |
Select a string for the appearance stream of PDF documents: String parameter "Signer". | |
static final int | ti_sign_time = 1 |
Select a string for the appearance stream of PDF documents: String parameter "SignTime". | |
static final int | ti_comment = 2 |
Select a string for the appearance stream of PDF documents: String parameter "Comment". | |
static final int | ti_adviser = 3 |
Select a string for the appearance stream of PDF documents: String parameter "Adviser". | |
static final int | ti_contact_info = 4 |
Select a string for the appearance stream of PDF documents: String parameter "ContactInfo". | |
static final int | ti_location = 5 |
Select a string for the appearance stream of PDF documents: String parameter "Location". | |
static final int | ti_reason = 6 |
Select a string for the appearance stream of PDF documents: String parameter "Reason". | |
static final int | ti_text1 = 7 |
Select a string for the appearance stream of PDF documents: String parameter "Text1". | |
static final int | ti_text2 = 8 |
Select a string for the appearance stream of PDF documents: String parameter "Text2". | |
static final int | ti_text3 = 9 |
Select a string for the appearance stream of PDF documents: String parameter "Text3". | |
static final int | ti_text4 = 10 |
Select a string for the appearance stream of PDF documents: String parameter "Text4". | |
static final int | ti_text5 = 11 |
Select a string for the appearance stream of PDF documents: String parameter "Text5". | |
static final int | ti_text6 = 12 |
Select a string for the appearance stream of PDF documents: String parameter "Text6". | |
static final int | ti_text7 = 13 |
Select a string for the appearance stream of PDF documents: String parameter "Text7". | |
static final int | ti_text8 = 14 |
Select a string for the appearance stream of PDF documents: String parameter "Text8". | |
static final int | ti_text9 = 15 |
Select a string for the appearance stream of PDF documents: String parameter "Text9". | |
static final int | tg_master = 0 |
Text group: master. | |
static final int | tg_slave = 1 |
Text group: slave. | |
static final int | tid_ltr = 0x1000 |
Paragraph direction: LTR. | |
static final int | tid_rtl = 0x2000 |
Paragraph direction: RTL. | |
static final int | tid_default_ltr = 0x4000 |
Paragraph direction: Choose direction automatically, default to LTR. | |
static final int | tid_default_rtl = 0x8000 |
Paragraph direction: Choose direction automatically, default to RTL. | |
static final int | isv_SubFilter = 0x01 |
Flag for ignoring mandatory requirements specified by the signature seed value dictionary: Ignore SubFilter (signing method). | |
static final int | isv_DigestMethod = 0x02 |
Flag for ignoring mandatory requirements specified by the signature seed value dictionary: Ignore DigestMethod (hash algorithm). | |
static final int | csf_software = 0x01 |
Flags for selecting certificates (for integer parameter "SelectCertificate": include certificates with software-based private keys. | |
static final int | csf_hardware = 0x02 |
Flags for selecting certificates (for integer parameter "SelectCertificate": include certificates with hardware-based private keys. | |
static final int | csf_use_certificate_seed_values = 0x10 |
Flags for selecting certificates (for integer parameter "SelectCertificate": include only certificates allowed by the PDF document's certificate seed value dictionary. | |
static final int | csf_ask_if_ambiguous = 0x20 |
Flags for selecting certificates (for integer parameter "SelectCertificate": ask the user to select a certificate if there is more than one matching certificate. | |
static final int | csf_never_ask = 0x40 |
Flags for selecting certificates (for integer parameter "SelectCertificate": never ask the user to select a certificate; exactly one certificate must match. | |
static final int | csf_create_self_signed = 0x80 |
Flags for selecting certificates (for integer parameter "SelectCertificate": offer to create a self-signed certificate (cannot be used with csf_never_ask and csf_ask_if_ambiguous). | |
static final int | rsf_bw = 0x01 |
Flags for rendering the signature (for integer parameter "RenderSignature": black and white. | |
static final int | rsf_gray = 0x02 |
Flags for rendering the signature (for integer parameter "RenderSignature": use gray levels computed from pressure. | |
static final int | rsf_antialias = 0x04 |
Flags for rendering the signature (for integer parameter "RenderSignature": use gray levels for antialiasing. | |
static final int | rsf_limit_size = 0x08 |
Flags for rendering the signature (for integer parameter "RenderSignature": Limit the size of the rendered signature to the size of the captured signature. | |
static final int | it_opaque = 0 |
Transparency of signature image: Make signature image opaque. | |
static final int | it_brightest = 1 |
Transparency of signature image: Make the brightest color transparent. | |
static final int | ac_all = 0 |
Integer parameter AddCertificates: Include all intermediate certificates and the root certificate. | |
static final int | ac_none = 1 |
Integer parameter AddCertificates: Do not include any certificates. | |
static final int | ac_trusted = 2 |
Integer parameter AddCertificates: Include all intermediate certificates and the root certificate, require the root certificate to be trusted. | |
static final int | ari_add = 0x01 |
Flag for integer parameter AddRevocationInfo: Add revocation data. | |
static final int | rx_always = 0 |
Integer parameter "RemoveXFA": Always remove XFA. | |
static final int | rx_if_allowed = 1 |
Integer parameter "RemoveXFA": Remove XFA if possible. | |
static final int | rx_never = 2 |
Integer parameter "RemoveXFA": Do not remove XFA. | |
static final int | rc_ok = 0 |
Return code for setter functions: Parameter set successfully. | |
static final int | rc_unknown = 1 |
Return code for setter functions: Unknown parameter. | |
static final int | rc_not_supported = 2 |
Return code for setter functions: Setting the parameter is not supported. | |
static final int | rc_invalid_value = 3 |
Return code for setter functions: The value for the parameter is invalid. | |
static final int | ps_set = 0 |
Status of a parameter: Parameter has been set. | |
static final int | ps_missing = 1 |
Status of a parameter: Parameter must be set but is not set. | |
static final int | ps_supported = 2 |
Status of a parameter: Parameter is supported and optional, but has not been set or is set to the default value. | |
static final int | ps_ignored = 3 |
Status of a parameter: Parameter can be (or is) set but will be ignored. | |
static final int | ps_not_supported = 4 |
Status of a parameter: Parameter is not supported for this field. | |
static final int | ps_unknown = 5 |
Status of a parameter: Unknown parameter. | |
Protected Member Functions | |
void | finalize () throws Throwable |
Finalize this object. |
Parameters for signing a document.
Use SignDocDocument.createSignatureParameters() or SignDocDocument.createSignatureParametersForTimeStamp() to create objects of this type.
The available parameters depend both on the document type and on the signature field for which the SignDocSignatureParameters object has been created. All setters have a special value for one of their arguments which can be used for checking if the parameter can be set.
SignDocDocument.addSignature() may fail due to invalid parameters even if all setters reported success as the setters do not check if there are conflicts between parameters.
Which certificates are acceptable may be restricted by the application (by using csf_software and csf_hardware of integer parameter "SelectCertificate", blob parameters "FilterCertificatesByIssuerCertificate" and "FilterCertificatesBySubjectCertificate", and string parameters "FilterCertificatesByPolicy" and "FilterCertificatesBySubjectDN") and by the PDF document (certificate seed value dictionary). If no matching certificate is available (for instance, because integer parameter "SelectCertificate" is zero), SignDocDocument.addSignature() will throw SignDocNoCertificateException. If more than one matching certificate is available but csf_never_ask is specified in integer parameter "SelectCertificate"), SignDocDocument.addSignature() will throw SignDocAmbiguousCertificateException.
To make the signature maximally meaningful, integer parameter "AddCertificates" should be ac_all (which is the default value) and integer parameter "AddRevocationInfo" should include ari_add.
Unless you need a specific signing method, you should leave integer parameter "Method" at its default value m_default. If you select a specific signing method and that method is not allowed by the signature field's seed values, signing will fail.
Unless you need a specific digest algorithm, you should leave integer parameter "DetachedHashAlgorithm" at its default value dha_default. If you select a specific digest algorithm and that algorithm is not allowed by the signature field's seed values, signing will fail.
The interaction between some parameters is quite complex; the following section tries to summarize the signing methods for PDF documents.
Additionally:
For TIFF documents, an additional, simplified signing method is available:
The following parameters control the signing method and related aspects of the signature:
The following parameters control the private key used for signing:
The following parameters control rendering of the signature image from biometric data:
The following parameters put additional data into the signature:
The following parameters provide texts for the appearance of a signature in PDF documents:
The following parameters control how a signed signature field in a PDF document will look like (parameters marked with * can be overridden with blob parameter "Template"):
The following parameters control the signing certificate:
The following parameters are used for generating a self-signed certificate on the fly (you also need to set at least one parameter for the private key):
The following parameters are used for putting biometric data (handwritten signature) into the signature:
The following parameters control the certificate selection dialog:
The following parameters control RFC 3161 timestamps:
The following parameters put additional certificates and revocation information into the signature:
The following parameters do not fall into the above categories:
synchronized int de.softpro.doc.SignDocSignatureParameters.addTextItem | ( | int | aItem, |
int | aGroup | ||
) | throws SignDocException |
Add another string to be displayed, top down.
For DigSig signature fields, this function adds another string to the appearance stream of PDF documents. The first call clears any default strings. The default values depend on the profile passed to SignDocDocument.createSignatureParameters():
Profile | Value |
---|---|
"" | ti_signer/tg_master, ti_sign_time/tg_master |
"image" | (empty) |
The paragraph direction is 0 which is treated like tid_ltr.
See also blob parameter "Template".
[in] | aItem | Select the string to be added (ti_signer etc.) |
[in] | aGroup | The string's group for font size computation (tg_master or tg_slave). |
synchronized int de.softpro.doc.SignDocSignatureParameters.addTextItem2 | ( | int | aItem, |
int | aGroup, | ||
int | aHAlignment, | ||
int | aDirection | ||
) | throws SignDocException |
Add another string to be displayed, top down, with paragraph direction.
For DigSig signature fields, this function adds another string to the appearance stream of PDF documents. The first call clears any default strings. The default values depend on the profile passed to SignDocDocument.createSignatureParameters():
Profile | Value |
---|---|
"" | ti_signer/tg_master, ti_sign_time/tg_master |
"image" | (empty) |
See also blob parameter "Template".
[in] | aItem | Select the string to be added (ti_signer etc.) |
[in] | aGroup | The string's group for font size computation (tg_master or tg_slave). |
[in] | aHAlignment | Horizontal alignment. This value overrides integer parameter "TextHAlignment" unless it is ha_default. |
[in] | aDirection | The paragraph direction: 0, tid_ltr, tid_rtl, tid_default_ltr, or tid_default_rtl. 0 is treated like tid_ltr. |
synchronized int de.softpro.doc.SignDocSignatureParameters.clearTextItems | ( | ) | throws SignDocException |
Remove all strings that were to be displayed.
addTextItem() cannot remove the default strings without adding a new string. This function does.
See also blob parameter "Template".
synchronized void de.softpro.doc.SignDocSignatureParameters.destroy | ( | ) | throws SignDocException |
Destroy this object, overwriting sensitive data.
After calling this method, all methods of this object will throw.
void de.softpro.doc.SignDocSignatureParameters.finalize | ( | ) | throws Throwable [protected] |
Finalize this object.
Do not call this method unless you know what you are doing.
synchronized int de.softpro.doc.SignDocSignatureParameters.getAvailableMethods | ( | ) | throws SignDocException |
Get a bitset indicating which signing methods are available for this signature field.
synchronized String de.softpro.doc.SignDocSignatureParameters.getErrorMessage | ( | ) | throws SignDocException |
Get an error message for the last function call.
synchronized int de.softpro.doc.SignDocSignatureParameters.getState | ( | String | aName ) | throws SignDocException |
Get the status of a parameter.
[in] | aName | The name of the parameter (case-sensitive). |
synchronized byte [] de.softpro.doc.SignDocSignatureParameters.getTemplate | ( | ) | throws SignDocException |
Get an XML document specifying the current layout.
This function can be used for debugging and for reporting bugs. This function will fail if the "Template" blob parameter is invalid.
synchronized int de.softpro.doc.SignDocSignatureParameters.setBlob | ( | String | aName, |
byte[] | aData | ||
) | throws SignDocException |
Set a blob parameter.
Available blob parameters are:
Additionally, you can store your own blobs in the signature by using a name starting with "Prop_", except for "Prop_AuthTime", "Prop_AuthType", "Prop_BiometricData", and "Prop_Build", see de.softpro.doc.SignDocVerificationResult.getSignatureString(). The name shall contain the following characters only: 0-9, a-z, A-Z, '-', and '_'.
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aData | The value. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setColor | ( | String | aName, |
SignDocColor | aValue | ||
) | throws SignDocException |
Set a color parameter.
Available color parameters are:
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value of the parameter. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setECDSA | ( | SignECDSA | aECDSA ) | throws SignDocException |
Set an object which will compute an ECDSA signature.
By default, ECDSA signatures are computed internally which means that the private key must be available on this machine.
Requirements for string parameters:
Requirements for integer parameters:
Requirements for blob parameters:
setRSA() and setPKCS7() must not have been called
[in] | aECDSA | The object that will compute the ECDSA signature. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setInteger | ( | String | aName, |
int | aValue | ||
) | throws SignDocException |
Set an integer parameter.
Available integer parameters are:
Profile | Value |
---|---|
"" | ha_center |
"image" | ha_center |
Profile | Value |
---|---|
"" | va_top |
"image" | va_center |
Profile | Value |
---|---|
"" | ha_center |
"image" | ha_center |
Profile | Value |
---|---|
"" | tp_below |
"image" | tp_overlay |
Profile | Value |
---|---|
"" | va_bottom |
"image" | va_center |
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value of the parameter. |
document when "SelectCertificate" presents the dialog
implement "SelectCertificate" for Linux
synchronized int de.softpro.doc.SignDocSignatureParameters.setLength | ( | String | aName, |
int | aType, | ||
double | aValue | ||
) | throws SignDocException |
Set a length parameter.
Available length parameters are:
Profile | Value |
---|---|
"" | vt_field_height and 0.1 |
"image" | vt_field_height and 0.1 |
Profile | Value |
---|---|
"" | vt_abs and 1.0 |
"image" | vt_abs and 1.0 |
Profile | Value |
---|---|
"" | vt_field_height and 0.1 |
"image" | vt_field_height and 0.1 |
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aType | Define how the length is specified (vt_abs, vt_field_height, or vt_field_width). |
[in] | aValue | The value of the parameter. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setPKCS7 | ( | SignPKCS7 | aPKCS7 ) | throws SignDocException |
Set an object which will create a PKCS #7 or CAdES signature.
By default, PKCS #7 and CAdES signatures are handled internally which means that the private key must be available on this machine.
Requirements for string parameters:
Requirements for integer parameters:
Requirements for blob parameters:
setECDSA() and setRSA() must not have been called
The SignPKCS7 interface is quite hard to use, please use setRSA() and the SignRSA interface or setECDSA() and the SignECDSA interface instead.
[in] | aPKCS7 | The object that will create the PKCS #7 or CAdES signature. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setRSA | ( | SignRSA | aRSA ) | throws SignDocException |
Set an object which will compute an RSA signature.
By default, RSA signatures are computed internally which means that the private key must be available on this machine.
Requirements for string parameters:
Requirements for integer parameters:
Requirements for blob parameters:
setECDSA() and setPKCS7() must not have been called
[in] | aRSA | The object that will compute the RSA signature. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setString | ( | String | aName, |
String | aValue | ||
) | throws SignDocException |
Set a string parameter.
Available string parameters are:
Additionally, you can store your own strings in the signature by using a name starting with "Prop_", except for "Prop_AuthTime", "Prop_AuthType", "Prop_BiometricData", and "Prop_Build", see de.softpro.doc.SignDocVerificationResult.getSignatureString(). The name shall contain the following characters only: 0-9, a-z, A-Z, '-', and '_'. The length of the value is restricted for PDF documents and depends on the characters being used; the value encoded as PDF text string shall not exceed 32767 octets.
[in] | aName | The name of the parameter (case-sensitive). |
[in] | aValue | The value of the parameter. |
synchronized int de.softpro.doc.SignDocSignatureParameters.setTextItemDirection | ( | int | aItem, |
int | aHAlignment, | ||
int | aDirection | ||
) | throws SignDocException |
Set the paragraph direction of text items.
This function sets the paragraph direction of all existing text items matching aItem.
See also blob parameter "Template".
[in] | aItem | Select the text items (ti_signer etc.) |
[in] | aHAlignment | Horizontal alignment. This value overrides integer parameter "TextHAlignment" unless it is ha_default. |
[in] | aDirection | The paragraph direction: 0, tid_ltr, tid_rtl, tid_default_ltr, or tid_default_rtl. 0 is treated like tid_ltr. |
final int de.softpro.doc.SignDocSignatureParameters.ac_all = 0 [static] |
Integer parameter AddCertificates: Include all intermediate certificates and the root certificate.
This requires building at signing time the complete certificate chain up to a self-signed certificate. It does not matter whether that self-signed certificate is a trusted root CA certificate or not.
final int de.softpro.doc.SignDocSignatureParameters.ac_none = 1 [static] |
Integer parameter AddCertificates: Do not include any certificates.
It is assumes that the signing certificate is a self-signed certificate or all intermediate certificates are available at verification time.
final int de.softpro.doc.SignDocSignatureParameters.ac_trusted = 2 [static] |
Integer parameter AddCertificates: Include all intermediate certificates and the root certificate, require the root certificate to be trusted.
This requires building at signing time the complete certificate chain up to a self-signed certificate. That self-signed certificate must be trusted, otherwise signing will fail.
final int de.softpro.doc.SignDocSignatureParameters.ari_add = 0x01 [static] |
Flag for integer parameter AddRevocationInfo: Add revocation data.
This requires building at signing time the complete certificate chain up to a self-signed certificate. It does not matter whether that self-signed certificate is a trusted root CA certificate or not.
final int de.softpro.doc.SignDocSignatureParameters.be_binary = 2 [static] |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Binary 256-bit key.
Blob parameter "BiometricKey" must be set.
The biometric data to be encrypted is specified by blob parameter "BiometricData".
final int de.softpro.doc.SignDocSignatureParameters.be_dont_store = 4 [static] |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): The biometric data won't be stored in the document.
Use this value if you want to use the biometric data for generating the signature image only. Note that using an automatically generated self-signed certificate is secure only if biometric data is stored in the document using asymmetric encryption.
final int de.softpro.doc.SignDocSignatureParameters.be_fixed = 1 [static] |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Fixed key (no security).
The biometric data to be encrypted is specified by blob parameter "BiometricData".
final int de.softpro.doc.SignDocSignatureParameters.be_passphrase = 3 [static] |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Passphrase that will be hashed to a 256-bit key.
String parameter "BiometricPassphrase" must be set.
The biometric data to be encrypted is specified by blob parameter "BiometricData".
final int de.softpro.doc.SignDocSignatureParameters.be_rsa = 0 [static] |
Select how to encrypt the biometric data (for integer parameter "BiometricEncryption"): Random session key encrypted with public RSA key.
Either blob parameter "BiometricKey" or string parameter "BiometricKeyPath" must be set.
The biometric data to be encrypted is specified by blob parameter "BiometricData".
final int de.softpro.doc.SignDocSignatureParameters.bhl_attr = 0 [static] |
Select where to store the message digest computed over the document hash and the unencrypted biometric data: If possible, store the biometric hash as unauthenticated attribute in the PKCS #7 (or CMS) message.
Used for integer parameter "BiometricHashLocation".
For method m_digsig_pkcs1, the biometric hash will stored in the Contents entry of the signature dictionary (see bhl_contents).
For all other methods, the biometric hash will stored as unauthenticated attribute in the PKCS #7 (or CMS) message.
final int de.softpro.doc.SignDocSignatureParameters.bhl_contents = 1 [static] |
Select where to store the message digest computed over the document hash and the unencrypted biometric data: Store the message digest in the Contents entry of the signature dictionary.
Used for integer parameter "BiometricHashLocation".
This is what SignDoc SDK 4.1 and older did; it violates a constraint of most PDF specifications.
final int de.softpro.doc.SignDocSignatureParameters.csa_ecdsa_sha1 = 6 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-1.
final int de.softpro.doc.SignDocSignatureParameters.csa_ecdsa_sha224 = 7 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-224.
final int de.softpro.doc.SignDocSignatureParameters.csa_ecdsa_sha256 = 8 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-256.
final int de.softpro.doc.SignDocSignatureParameters.csa_ecdsa_sha384 = 9 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-384.
final int de.softpro.doc.SignDocSignatureParameters.csa_ecdsa_sha512 = 10 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): ECDSA with SHA-512.
final int de.softpro.doc.SignDocSignatureParameters.csa_md5_rsa = 1 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): MD5 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csa_ripemd160_rsa = 5 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-512 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csa_sha1_rsa = 0 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-1 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csa_sha256_rsa = 2 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-256 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csa_sha384_rsa = 3 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-384 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csa_sha512_rsa = 4 [static] |
Signing algorithms for self-signed certificates (for integer parameter "CertificateSigningAlgorithm"): SHA-512 with RSA.
final int de.softpro.doc.SignDocSignatureParameters.csf_ask_if_ambiguous = 0x20 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": ask the user to select a certificate if there is more than one matching certificate.
final int de.softpro.doc.SignDocSignatureParameters.csf_create_self_signed = 0x80 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": offer to create a self-signed certificate (cannot be used with csf_never_ask and csf_ask_if_ambiguous).
final int de.softpro.doc.SignDocSignatureParameters.csf_hardware = 0x02 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": include certificates with hardware-based private keys.
As software-based private keys and hardware-based private keys cannot be reliably distinguished, you should always set both csf_software and csf_hardware.
If neither csf_ask_if_ambiguous nor csf_never_ask is included, the certificate selection dialog will be displayed.
final int de.softpro.doc.SignDocSignatureParameters.csf_never_ask = 0x40 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": never ask the user to select a certificate; exactly one certificate must match.
final int de.softpro.doc.SignDocSignatureParameters.csf_software = 0x01 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": include certificates with software-based private keys.
As software-based private keys and hardware-based private keys cannot be reliably distinguished, you should always set both csf_software and csf_hardware.
If neither csf_ask_if_ambiguous nor csf_never_ask is included, the certificate selection dialog will be displayed.
final int de.softpro.doc.SignDocSignatureParameters.csf_use_certificate_seed_values = 0x10 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": include only certificates allowed by the PDF document's certificate seed value dictionary.
final int de.softpro.doc.SignDocSignatureParameters.dha_default = 0 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): default hash algorithm.
For RSA, use the hash algorithm specified by the DigestMethod values of the signature field seed value dictionary or, if not present, SHA-256 (if supported), or SHA-1 (as last resort).
For ECDSA, use the hash algorithm recommended for the elliptic curve used by the signing certificate's key.
final int de.softpro.doc.SignDocSignatureParameters.dha_ripemd160 = 5 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): RIPEMD-160.
dha_ripemd160 is not supported under Windows.
final int de.softpro.doc.SignDocSignatureParameters.dha_sha1 = 1 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-1.
final int de.softpro.doc.SignDocSignatureParameters.dha_sha224 = 6 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-224.
dha_sha224 is supported for ECDSA signatures only.
final int de.softpro.doc.SignDocSignatureParameters.dha_sha256 = 2 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-256.
dha_sha256 is supported under Linux, iOS, Android, and under Windows XP SP3 and later. If dha_sha256 is selected but not supported, SignDocDocument.addSignature() will fall back to dha_sha1.
final int de.softpro.doc.SignDocSignatureParameters.dha_sha384 = 3 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-384.
dha_sha384 is supported under Linux, iOS, Android, and under Windows XP SP3 and later. If dha_sha384 is selected but not supported, SignDocDocument.addSignature() will fall back to dha_sha1.
final int de.softpro.doc.SignDocSignatureParameters.dha_sha512 = 4 [static] |
Hash algorithm to be used for a detached signature (for integer parameter "DetachedHashAlgorithm"): SHA-512.
dha_sha512 is supported under Linux, iOS, Android, and under Windows XP SP3 and later. If dha_sha512 is selected but not supported, SignDocDocument.addSignature() will fall back to dha_sha1.
final int de.softpro.doc.SignDocSignatureParameters.ha_auto = 4 [static] |
Horizontal alignment (for integer parameter "TextHAlignment" and for addTextItem2()): Align left if the text begins with an LTR run, align right if the text begins with an RTL run.
final int de.softpro.doc.SignDocSignatureParameters.ha_center = 1 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Center.
final int de.softpro.doc.SignDocSignatureParameters.ha_default = -1 [static] |
Horizontal alignment (for addTextItem2()): Use integer parameter "TextHAlignment".
final int de.softpro.doc.SignDocSignatureParameters.ha_justify = 3 [static] |
Horizontal alignment (for integer parameter "TextHAlignment" and for addTextItem2()): Justify (align both and right, expanding white space).
final int de.softpro.doc.SignDocSignatureParameters.ha_left = 0 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Align left.
final int de.softpro.doc.SignDocSignatureParameters.ha_right = 2 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment" and for addTextItem2()): Align right.
final int de.softpro.doc.SignDocSignatureParameters.isv_DigestMethod = 0x02 [static] |
Flag for ignoring mandatory requirements specified by the signature seed value dictionary: Ignore DigestMethod (hash algorithm).
Used for integer parameter "IgnoreSeedValues".
If this flag is not set signing will fail if the hash algorithm specified by integer parameter "DetachedHashAlgorithm" is not dha_default (or is implied by integer parameter "Method") and is not listed in the DigestMethod entry of the signature field seed value dictionary.
If this flag is set, you can override the DigestMethod entry of the signature field seed value dictionary with integer parameter "DestachedHashAlgorithm" and/or "Method" without risking failure of signing due to a conflict with DigestMethod.
final int de.softpro.doc.SignDocSignatureParameters.isv_SubFilter = 0x01 [static] |
Flag for ignoring mandatory requirements specified by the signature seed value dictionary: Ignore SubFilter (signing method).
Used for integer parameter "IgnoreSeedValues".
If this flag is not set signing will fail if the signing method specified by integer parameter "Method" is neither m_default nor listed in the SubFilter entry of the signature field seed value dictionary.
If this flag is set, you can override the SubFilter entry of the signature field seed value dictionary with integer parameter "Method" without risking failure of signing due to a conflict between "Method" and SubFilter.
final int de.softpro.doc.SignDocSignatureParameters.it_brightest = 1 [static] |
Transparency of signature image: Make the brightest color transparent.
If the image has an alpha channel (or if its palette contains a transparent color), the image's transparency will be used. Otherwise, white will be made transparent for truecolor images and the brightest color in the palette will be made transparent for indexed images (including grayscale images).
Transparency is not supported for JPEG images and JPEG-compressed TIFF images. Signature images created from biometric data (according to the "RenderSignature" integer parameter) don't have an alpha channel.
final int de.softpro.doc.SignDocSignatureParameters.it_opaque = 0 [static] |
Transparency of signature image: Make signature image opaque.
The signature image will be opaque unless the image has an Used for integer parameter "ImageTransparency". alpha channel or transparent colors in its palette.
Transparency is not supported for JPEG images and JPEG-compressed TIFF images. Signature images created from biometric data (according to the "RenderSignature" integer parameter) don't have an alpha channel.
final int de.softpro.doc.SignDocSignatureParameters.m_default = 0 [static] |
Signing method (for integer parameter "Method"): default method.
For signature parameters created by SignDocDocument.createSignatureParametersForTimeStamp(), this value is treated as m_digsig_cades_rfc3161.
Use the method specified by the SubFilter values of the signature field seed value dictionary or, if not present, m_digsig_pkcs7_detached.
This is the recommended method unless you need an ETSI CAdES signature (m_digsig_cades_detached).
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_cades_detached = 5 [static] |
Signing method (for integer parameter "Method"): Detached ETSI CAdES (PAdES-BES).
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_cades_rfc3161 = 6 [static] |
Signing method (for integer parameter "Method"): ETSI CAdES RFC 3161 time stamp.
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_pkcs1 = 1 [static] |
Signing method (for integer parameter "Method"): PKCS #1 (RSA keys only).
Not allowed for PDF/A-2 and PDF/A-3.
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_pkcs7_detached = 2 [static] |
Signing method (for integer parameter "Method"): detached PKCS #7.
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_pkcs7_sha1 = 3 [static] |
Signing method (for integer parameter "Method"): PKCS #7 with SHA-1 (deprecated).
final int de.softpro.doc.SignDocSignatureParameters.m_hash = 4 [static] |
Signing method (for integer parameter "Method"): The signature is just a hash (TIFF only).
final int de.softpro.doc.SignDocSignatureParameters.o_dont_optimize = 1 [static] |
Don't optimize document before signing (for integer parameter "Optimize").
final int de.softpro.doc.SignDocSignatureParameters.o_optimize = 0 [static] |
Optimize document before signing (for integer parameter "Optimize").
final int de.softpro.doc.SignDocSignatureParameters.pb_auto = 2 [static] |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Freeze (fix) appearances if appropriate.
Used for integer parameter "PDFAButtons".
Freeze (fix) appearances if the document claims PDF/A-1 conformance and if there are no signed signature fields.
Using pb_auto if the document claims PDF/A-1 conformance and has no signed signature fields is equivalent to saving the document with SignDocDocument.sf_pdfa_buttons before signing.
This value should be used only if you need conformance with ISO 19005-1:2005 without Technical Corrigendum 2 (TC2), that is, if you need conformance with a standard that is no longer in force.
Note that TC2 is in force and using this value breaks conformance with TC2.
final int de.softpro.doc.SignDocSignatureParameters.pb_dont_freeze = 1 [static] |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Don't freeze (fix) appearances.
Used for integer parameter "PDFAButtons".
This value should be used unless you need conformance with a standard (ISO 19005-1:2005 without Technical Corrigendum 2) that is no longer in force.
final int de.softpro.doc.SignDocSignatureParameters.pb_freeze = 0 [static] |
Fix appearances of check boxes and radio buttons for PDF/A-1 without Technical Corrigendum 2 before signing: Freeze (fix) appearances.
Used for integer parameter "PDFAButtons".
Using pb_freeze is equivalent to saving the document with SignDocDocument.sf_pdfa_buttons before signing.
This value should be used only if you need conformance with ISO 19005-1:2005 before Technical Corrigendum 2 (TC2), that is, if you need conformance with a standard that is no longer in force.
Note that TC2 is in force and using this value breaks conformance with TC2.
final int de.softpro.doc.SignDocSignatureParameters.ps_ignored = 3 [static] |
Status of a parameter: Parameter can be (or is) set but will be ignored.
ps_ignored is currently not used.
final int de.softpro.doc.SignDocSignatureParameters.ps_missing = 1 [static] |
Status of a parameter: Parameter must be set but is not set.
ps_missing is currently not used.
final int de.softpro.doc.SignDocSignatureParameters.ps_not_supported = 4 [static] |
Status of a parameter: Parameter is not supported for this field.
final int de.softpro.doc.SignDocSignatureParameters.ps_set = 0 [static] |
Status of a parameter: Parameter has been set.
Most parameters have a default value such as the empty string which may be treated as "set" or "not set" depending on the implementation's fancy.
Don't make your code depend on the difference between ps_set and ps_supported.
final int de.softpro.doc.SignDocSignatureParameters.ps_supported = 2 [static] |
Status of a parameter: Parameter is supported and optional, but has not been set or is set to the default value.
Most parameters have a default value such as the empty string which may be treated as "set" or "not set" depending on the implementation's fancy.
Don't make your code depend on the difference between ps_set and ps_supported.
final int de.softpro.doc.SignDocSignatureParameters.ps_unknown = 5 [static] |
Status of a parameter: Unknown parameter.
final int de.softpro.doc.SignDocSignatureParameters.rc_invalid_value = 3 [static] |
Return code for setter functions: The value for the parameter is invalid.
final int de.softpro.doc.SignDocSignatureParameters.rc_not_supported = 2 [static] |
Return code for setter functions: Setting the parameter is not supported.
final int de.softpro.doc.SignDocSignatureParameters.rc_ok = 0 [static] |
Return code for setter functions: Parameter set successfully.
final int de.softpro.doc.SignDocSignatureParameters.rc_unknown = 1 [static] |
Return code for setter functions: Unknown parameter.
final int de.softpro.doc.SignDocSignatureParameters.rsf_antialias = 0x04 [static] |
Flags for rendering the signature (for integer parameter "RenderSignature": use gray levels for antialiasing.
rsf_bw, rsf_gray, and rsf_antialias are mutually exclusive.
final int de.softpro.doc.SignDocSignatureParameters.rsf_bw = 0x01 [static] |
Flags for rendering the signature (for integer parameter "RenderSignature": black and white.
rsf_bw, rsf_gray, and rsf_antialias are mutually exclusive.
final int de.softpro.doc.SignDocSignatureParameters.rsf_gray = 0x02 [static] |
Flags for rendering the signature (for integer parameter "RenderSignature": use gray levels computed from pressure.
rsf_bw, rsf_gray, and rsf_antialias are mutually exclusive.
final int de.softpro.doc.SignDocSignatureParameters.rsf_limit_size = 0x08 [static] |
Flags for rendering the signature (for integer parameter "RenderSignature": Limit the size of the rendered signature to the size of the captured signature.
If this flag is set, the rendered signature won't be magnified. However, it may be shrunk to fit the signature field.
Set this flag only if you are sure that the capture resolution stored in the blob passed to blob parameter "BiometricData" is accurate.
final int de.softpro.doc.SignDocSignatureParameters.rss_pkcs1 = 0 [static] |
Signing scheme for RSA signatures: PKCS #1 (RSA v1.5).
Used for integer parameter "RSASignatureScheme".
This signature scheme should be supported by all software that verifies DigSig signatures in PDF documents. However, it is considered obsolete due to security concerns.
final int de.softpro.doc.SignDocSignatureParameters.rss_pss = 1 [static] |
Signing scheme for RSA signatures: Probabilistic Signature Scheme (PSS) (RSA v2.0 and v2.1).
Used for integer parameter "RSASignatureScheme".
Improved signature scheme, supposed to be more secure than PKCS #1 However, this signature scheme may not be supported by all software that verifies DigSig signatures in PDF documents. For instance, Adobe Acrobat DC supports RSA-PSS since April 2017 (Windows) and August 2017 (MacOS).
When using a certificate from a Windows certificate store (see integer parameter "SelectCertificate"), the private key must be provided by a CNG Key Storage Provider.
final int de.softpro.doc.SignDocSignatureParameters.rx_always = 0 [static] |
Integer parameter "RemoveXFA": Always remove XFA.
Use this value if you intend to call setField() or addField() after signing. Adding the signature will fail if the document prohibits removal of XFA.
final int de.softpro.doc.SignDocSignatureParameters.rx_if_allowed = 1 [static] |
Integer parameter "RemoveXFA": Remove XFA if possible.
XFA will be removed unless the document prohibits removal of XFA. addField() and setField() will fail if XFA is still present after signing.
final int de.softpro.doc.SignDocSignatureParameters.rx_never = 2 [static] |
Integer parameter "RemoveXFA": Do not remove XFA.
addField() and setField() will fail if XFA is still present after signing.
final int de.softpro.doc.SignDocSignatureParameters.tg_master = 0 [static] |
Text group: master.
One font size is used per group and is chosen such that the text fits horizontally. The maximum font size is specified by length parameter "FontSize". The font size of the slave group cannot be greater than the font size of the master group, that is, long text in the slave group won't reduce the font size of the master group.
There must be at least one master text item if there is a slave text item.
final int de.softpro.doc.SignDocSignatureParameters.tg_slave = 1 [static] |
Text group: slave.
One font size is used per group and is chosen such that the text fits horizontally. The maximum font size is specified by length parameter "FontSize". The font size of the slave group cannot be greater than the font size of the master group, that is, long text in the slave group won't reduce the font size of the master group.
final int de.softpro.doc.SignDocSignatureParameters.ti_adviser = 3 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Adviser".
final int de.softpro.doc.SignDocSignatureParameters.ti_comment = 2 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Comment".
final int de.softpro.doc.SignDocSignatureParameters.ti_contact_info = 4 [static] |
Select a string for the appearance stream of PDF documents: String parameter "ContactInfo".
final int de.softpro.doc.SignDocSignatureParameters.ti_location = 5 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Location".
final int de.softpro.doc.SignDocSignatureParameters.ti_reason = 6 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Reason".
final int de.softpro.doc.SignDocSignatureParameters.ti_sign_time = 1 [static] |
Select a string for the appearance stream of PDF documents: String parameter "SignTime".
final int de.softpro.doc.SignDocSignatureParameters.ti_signer = 0 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Signer".
final int de.softpro.doc.SignDocSignatureParameters.ti_text1 = 7 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text1".
final int de.softpro.doc.SignDocSignatureParameters.ti_text2 = 8 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text2".
final int de.softpro.doc.SignDocSignatureParameters.ti_text3 = 9 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text3".
final int de.softpro.doc.SignDocSignatureParameters.ti_text4 = 10 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text4".
final int de.softpro.doc.SignDocSignatureParameters.ti_text5 = 11 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text5".
final int de.softpro.doc.SignDocSignatureParameters.ti_text6 = 12 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text6".
final int de.softpro.doc.SignDocSignatureParameters.ti_text7 = 13 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text7".
final int de.softpro.doc.SignDocSignatureParameters.ti_text8 = 14 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text8".
final int de.softpro.doc.SignDocSignatureParameters.ti_text9 = 15 [static] |
Select a string for the appearance stream of PDF documents: String parameter "Text9".
final int de.softpro.doc.SignDocSignatureParameters.tid_default_ltr = 0x4000 [static] |
Paragraph direction: Choose direction automatically, default to LTR.
The base direction of each paragraph (BiDi paragraph level) will depend on the first strong directional character in the paragraph.
The paragraph level will be 0 (LTR) for paragraphs having no strong directional character.
final int de.softpro.doc.SignDocSignatureParameters.tid_default_rtl = 0x8000 [static] |
Paragraph direction: Choose direction automatically, default to RTL.
The base direction of each paragraph (BiDi paragraph level) will depend on the first strong directional character in the paragraph.
The paragraph level will be 1 (RTL) for paragraphs having no strong directional character.
final int de.softpro.doc.SignDocSignatureParameters.tid_ltr = 0x1000 [static] |
Paragraph direction: LTR.
final int de.softpro.doc.SignDocSignatureParameters.tid_rtl = 0x2000 [static] |
Paragraph direction: RTL.
final int de.softpro.doc.SignDocSignatureParameters.tp_above = 4 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put above the image.
final int de.softpro.doc.SignDocSignatureParameters.tp_below = 1 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put below the image.
final int de.softpro.doc.SignDocSignatureParameters.tp_left_of = 5 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put on the left of the image.
final int de.softpro.doc.SignDocSignatureParameters.tp_overlay = 0 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text and image are independent and overlap (text is painted on image).
final int de.softpro.doc.SignDocSignatureParameters.tp_right_of = 3 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text is put on the right of the image.
final int de.softpro.doc.SignDocSignatureParameters.tp_underlay = 2 [static] |
Position of the text block w.r.t. to the image (for integer parameter "TextPosition": Text and image are independent and overlap (image is painted on text).
final int de.softpro.doc.SignDocSignatureParameters.tsha_default = 0 [static] |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): default value.
For signatures, use the same hash algorithm as used for the document hash. For document time stamps, use SHA-256 (if supported by the time stamp server) or SHA-1 (if SHA-256 is not supported by the time stamp server).
The hash algorithm requested for the document hash will be used for the time stamp even if the document hash falls back to SHA-1 (see dha_default). SHA-256 will be used if the document hash is SHA-224. SHA-256 will be used if integer parameter DetachedHashAlgorithm is dha_default and the document hash is SHA-384 or SHA-512 (this can happen for keys using certain elliptic curves).
final int de.softpro.doc.SignDocSignatureParameters.tsha_sha1 = 1 [static] |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-1.
final int de.softpro.doc.SignDocSignatureParameters.tsha_sha256 = 2 [static] |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-256.
tsha_sha256 is supported under Linux, iOS, Android, and under Windows XP SP3 and later.
final int de.softpro.doc.SignDocSignatureParameters.tsha_sha384 = 3 [static] |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-384.
tsha_sha384 is supported under Linux, iOS, Android, and under Windows XP SP3 and later.
final int de.softpro.doc.SignDocSignatureParameters.tsha_sha512 = 4 [static] |
Hash algorithm to be used for RFC 3161 timestamps (for integer parameter "TimeStampHashAlgorithm"): SHA-512.
tsha_sha512 is supported under Linux, iOS, Android, and under Windows XP SP3 and later.
final int de.softpro.doc.SignDocSignatureParameters.va_bottom = 2 [static] |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Align bottom.
final int de.softpro.doc.SignDocSignatureParameters.va_center = 1 [static] |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Center.
final int de.softpro.doc.SignDocSignatureParameters.va_top = 0 [static] |
Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": Align top.
final int de.softpro.doc.SignDocSignatureParameters.vt_abs = 0 [static] |
Indicate how measurements are specified: aValue is the value to be used (units of document coordinates).
final int de.softpro.doc.SignDocSignatureParameters.vt_field_height = 1 [static] |
Indicate how measurements are specified: Multiply aValue by the field height.
final int de.softpro.doc.SignDocSignatureParameters.vt_field_width = 2 [static] |
Indicate how measurements are specified: Multiply aValue by the field width.