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 | clearTextItems () throws SignDocException |
| Remove all strings that were to be displayed. | |
| 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 | getAvailableMethods () throws SignDocException |
| Get a bitset indicating which signing methods are available for this signature field. | |
| 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. | |
| 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 SignDocVerificationResult.getMethod(): Detached 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 | 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 |
| Freeze (fix) appearances before signing (for integer parameter "PDFAButtons"). | |
| static final int | pb_dont_freeze = 1 |
| Don't freeze (fix) appearances before signing (for integer parameter "PDFAButtons"). | |
| static final int | pb_auto = 2 |
| Freeze (fix) appearances before signing if appropriate (for integer parameter "PDFAButtons"). | |
| 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 | 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 | ha_left = 0 |
| Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": left. | |
| static final int | ha_center = 1 |
| Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": center. | |
| static final int | ha_right = 2 |
| Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": right. | |
| static final int | ha_justify = 3 |
| Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": justify. | |
| static final int | va_top = 0 |
| Vertical alignment (for integer parameters "ImageVAlignment" and "TextVAlignment": 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": 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 | 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 software-based certificates. | |
| static final int | csf_hardware = 0x02 |
| Flags for selecting certificates (for integer parameter "SelectCertificate": include hardware-based certificates. | |
| 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 | 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 | 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.
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 name parameters control the signing method and related aspects of the signature:
The following named parameters control the private key used for signing:
The following named parameters control rendering of the signature image from biometric data:
The following named parameters put additional data into the signature:
The following named parameters provide texts for the appearance of a signature in PDF documents:
The following named parameters control how a signed signature field in a PDF document will look like:
The following named parameters control the signing certificate:
The following named 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 named parameters are used for putting biometric data (handwritten signature) into the signature:
The following named parameters control the certificate selection dialog:
The following named parameters control RFC 3161 timestamps:
The following named parameters put additional certificates and revocation information into the signature:
The following named 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) |
| [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.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.
| 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 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.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:
The SignPKCS7 interface is quite hard to use, please use setRSA() and the SignRSA 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 integer parameters:
Requirements for blob parameters:
| [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. |
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.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).
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_hardware = 0x02 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": include hardware-based certificates.
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.
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_software = 0x01 [static] |
Flags for selecting certificates (for integer parameter "SelectCertificate": include software-based certificates.
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.
Use the hash algorithm specified by the the DigestMethod values of the signature field seed value dictionary or, if not present, SHA-256 (if supported), or SHA-1 (as last resort).
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_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_center = 1 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": center.
final int de.softpro.doc.SignDocSignatureParameters.ha_justify = 3 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": justify.
final int de.softpro.doc.SignDocSignatureParameters.ha_left = 0 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": left.
final int de.softpro.doc.SignDocSignatureParameters.ha_right = 2 [static] |
Horizontal alignment (for integer parameters "ImageHAlignment" and "TextHAlignment": 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.
Use the method specified by the 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 SignDocVerificationResult.getMethod(): Detached ETSI CAdES RFC 3161 time stamp.
Not yet supported for signing.
final int de.softpro.doc.SignDocSignatureParameters.m_digsig_pkcs1 = 1 [static] |
Signing method (for integer parameter "Method"): PKCS #1.
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] |
Freeze (fix) appearances before signing if appropriate (for integer parameter "PDFAButtons").
Freeze (fix) appearances if the document claims to be PDF/A-1-compliant and if there are no signed signature fields.
final int de.softpro.doc.SignDocSignatureParameters.pb_dont_freeze = 1 [static] |
Don't freeze (fix) appearances before signing (for integer parameter "PDFAButtons").
final int de.softpro.doc.SignDocSignatureParameters.pb_freeze = 0 [static] |
Freeze (fix) appearances before signing (for integer parameter "PDFAButtons").
Using pb_freeze is equivalent to saving the document with SignDocDocument.sf_pdfa_buttons before signing.
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.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.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.
Use the same hash algorithm as used for the document hash.
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).
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": 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": 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.
1.7.2