Adobe 22002486 Digital Signature User Guide - Page 70

Enabling JavaScript to Set Seed Values

Page 70 highlights

Acrobat 9 Family of Products Security Feature User Guide Controlling Signing with Seed Values Enabling JavaScript to Set Seed Values 70 Table 8 Seed values: Object properties and descriptions Property Type Description reasons shouldAddRev Info array of strings boolean A list of reasons that the user is allowed to use when signing. (Acrobat 8.0) If this array contains a single empty string and reasons are marked as required using the flags variable, Acrobat will not allow a signing reason. If this array is empty and reasons are marked as required, an exception will be thrown. (Acrobat 8.0) The default value is false. If true, the application does certificate and chain revocation checking and embeds the information in the signature. If true and the flag is set to require these actions, any failure in these actions results in signing failure. Only relevant if subFilter is adbe.pkcs7.detached or adbe.pkcs7.sha1. If the subFilter is adbe.x509.rsa_ sha1 and adding revocation information is required, the signing operation fails. subFilter timeStampspec array of strings object An array of acceptable formats to use for the signature. Refer to the Signature Info object's subFilter property for a list of known formats. (Acrobat 7.0) A seed value timeStamp specifier object. It uses the url and flags properties to specify a timestamp server. For details, see "Specifying Timestamps for Signing" on page 76 version number The minimum required version number of the signature handler to be used to sign the signature field. Valid values are 1 and 2. (Acrobat 8) This must be set to 2 if this seed value object contains any Acrobat 8-specific content that is marked as required. lockDocument name (Optional; PDF 1.7-ADBE-3) Allows the author to add a Lock Document checkbox to the signing dialog so a signer can lock the document at the time of signing. The default is auto.  true: Indicates that the desired action is that the document should be locked at the time of signing. If the Ff entry indicates that LockDocument is not a required constraint and that the user can choose to override this at the time of signing. Otherwise the document must be locked after signing.  false: A false value indicates that the document should not be locked after signing. Again, the required flag determines whether this is a required constraint.  auto: The auto value allows the consuming application to decide whether or not to present the lock UI for the document and whether to honor the required flag based on the properties of the document. appearanceFilter string (Optional; PDF 1.7-ADBE-3) A text string naming the appearance to be used when signing the signature field. Conforming readers may choose to maintain a list of named signature appearances and this text string provides authors with a means of specifying which appearance should be used to sign the signature field. If the required bit in Ff is set (see flag above), then the appearance must be available to sign the document and must be used. 5.1.3 Enabling JavaScript to Set Seed Values Authors sometimes use JavaScript to set seed values for signature fields. When Acrobat's JavaScript console is used for JavaScript execution, the JavaScript debugger must be enabled. Tip: If you do not intend to set seed values with JavaScript through Acrobat's JavaScript debugger, skip this section. To enable the JavaScript debugger: 1. Choose Edit > Preferences (Windows) or Acrobat > Preferences (Macintosh). 2. Choose JavaScript in the left-hand category list.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189

Acrobat 9 Family of Products
Controlling Signing with Seed Values
Security Feature User Guide
Enabling JavaScript to Set Seed Values
70
5.1.3
Enabling JavaScript to Set Seed Values
Authors sometimes use JavaScript to set seed values for signature fields. When Acrobat’s JavaScript
console is used for JavaScript execution, the JavaScript debugger must be enabled.
Tip:
If you do not intend to set seed values with JavaScript through Acrobat’s JavaScript
debugger, skip this section.
To enable the JavaScript debugger:
1.
Choose
Edit > Preferences
(Windows) or
Acrobat > Preferences
(Macintosh).
2.
Choose
JavaScript
in the left-hand category list.
reasons
array of
strings
A list of reasons that the user is allowed to use when signing.
(Acrobat 8.0) If this array contains a single empty string and reasons are marked as required using the
flags variable, Acrobat will not allow a signing reason. If this array is empty and reasons are marked as
required, an exception will be thrown.
shouldAddRev
Info
boolean
(Acrobat 8.0) The default value is false. If true, the application does certificate and chain revocation
checking and embeds the information in the signature. If true and the flag is set to require these actions,
any failure in these actions results in signing failure.
Only relevant if subFilter is adbe.pkcs7.detached or adbe.pkcs7.sha1. If the subFilter is adbe.x509.rsa_
sha1 and adding revocation information is required, the signing operation fails.
subFilter
array of
strings
An array of acceptable formats to use for the signature. Refer to the Signature Info object’s
subFilter
property for a list of known formats.
timeStampspec
object
(Acrobat 7.0) A seed value timeStamp specifier object. It uses the
url
and
flags
properties to specify
a timestamp server. For details, see
“Specifying Timestamps for Signing” on page 76
version
number
The minimum required version number of the signature handler to be used to sign the signature field.
Valid values are 1 and 2.
(Acrobat 8) This must be set to 2 if this seed value object contains any Acrobat 8-specific content that is
marked as required.
lockDocument
name
(Optional; PDF 1.7-ADBE-3) Allows the author to add a Lock Document checkbox to the signing dialog so
a signer can lock the document at the time of signing. The default is
auto
.
true
: Indicates that the desired action is that the document should be locked at the
time of signing. If the Ff entry indicates that LockDocument is not a required
constraint and that the user can choose to override this at the time of signing.
Otherwise the document must be locked after signing.
false
: A false value indicates that the document should not be locked after signing.
Again, the required flag determines whether this is a required constraint.
auto
: The auto value allows the consuming application to decide whether or not to
present the lock UI for the document and whether to honor the required flag based
on the properties of the document.
appearanceFilter
string
(Optional; PDF 1.7-ADBE-3) A text string naming the appearance to be used when signing the signature
field. Conforming readers may choose to maintain a list of named signature appearances and this text
string provides authors with a means of specifying which appearance should be used to sign the
signature field. If the required bit in Ff is set (see flag above), then the appearance must be available to
sign the document and must be used.
Table 8
Seed values: Object properties and descriptions
Property
Type
Description