r509 0.8.1 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. data/README.md +343 -151
  2. data/Rakefile +26 -23
  3. data/bin/r509 +126 -112
  4. data/bin/r509-parse +24 -24
  5. data/doc/R509.html +169 -7
  6. data/doc/R509/ASN1.html +370 -0
  7. data/doc/R509/ASN1/GeneralName.html +1121 -0
  8. data/doc/R509/ASN1/GeneralNames.html +843 -0
  9. data/doc/R509/ASN1/NoticeReference.html +392 -0
  10. data/doc/R509/ASN1/PolicyInformation.html +387 -0
  11. data/doc/R509/ASN1/PolicyQualifiers.html +455 -0
  12. data/doc/R509/ASN1/UserNotice.html +386 -0
  13. data/doc/R509/{Crl.html → CRL.html} +7 -7
  14. data/doc/R509/CRL/Administrator.html +1559 -0
  15. data/doc/R509/{Crl/Parser.html → CRL/SignedList.html} +501 -210
  16. data/doc/R509/{Csr.html → CSR.html} +444 -314
  17. data/doc/R509/Cert.html +866 -617
  18. data/doc/R509/Cert/Extensions.html +52 -41
  19. data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +70 -35
  20. data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +387 -4
  21. data/doc/R509/Cert/Extensions/BasicConstraints.html +61 -25
  22. data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +354 -0
  23. data/doc/R509/Cert/Extensions/CertificatePolicies.html +340 -0
  24. data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +440 -49
  25. data/doc/R509/Cert/Extensions/{CrlDistributionPoints.html → InhibitAnyPolicy.html} +52 -35
  26. data/doc/R509/Cert/Extensions/KeyUsage.html +247 -121
  27. data/doc/R509/Cert/Extensions/NameConstraints.html +445 -0
  28. data/doc/R509/Cert/Extensions/OCSPNoCheck.html +239 -0
  29. data/doc/R509/Cert/Extensions/PolicyConstraints.html +424 -0
  30. data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +437 -62
  31. data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +52 -10
  32. data/doc/R509/CertificateAuthority.html +4 -4
  33. data/doc/R509/CertificateAuthority/Signer.html +154 -187
  34. data/doc/R509/Config.html +6 -6
  35. data/doc/R509/Config/{CaConfig.html → CAConfig.html} +451 -348
  36. data/doc/R509/Config/{CaConfigPool.html → CAConfigPool.html} +47 -47
  37. data/doc/R509/Config/CAProfile.html +1015 -0
  38. data/doc/R509/Config/SubjectItemPolicy.html +86 -86
  39. data/doc/R509/IOHelpers.html +22 -22
  40. data/doc/R509/MessageDigest.html +14 -14
  41. data/doc/R509/NameSanitizer.html +53 -53
  42. data/doc/R509/{Ocsp.html → OCSP.html} +9 -9
  43. data/doc/R509/{Ocsp → OCSP}/Request.html +7 -7
  44. data/doc/R509/{Ocsp → OCSP}/Request/Nonce.html +56 -11
  45. data/doc/R509/{Ocsp → OCSP}/Response.html +44 -44
  46. data/doc/R509/{OidMapper.html → OIDMapper.html} +23 -39
  47. data/doc/R509/PrivateKey.html +415 -168
  48. data/doc/R509/R509Error.html +3 -3
  49. data/doc/R509/{Spki.html → SPKI.html} +354 -192
  50. data/doc/R509/Subject.html +224 -113
  51. data/doc/R509/Validity.html +27 -5
  52. data/doc/R509/Validity/Checker.html +13 -13
  53. data/doc/R509/Validity/DefaultChecker.html +13 -13
  54. data/doc/R509/Validity/DefaultWriter.html +14 -14
  55. data/doc/R509/Validity/Status.html +39 -39
  56. data/doc/R509/Validity/Writer.html +18 -18
  57. data/doc/_index.html +138 -35
  58. data/doc/class_list.html +1 -1
  59. data/doc/css/style.css +10 -0
  60. data/doc/file.README.html +368 -171
  61. data/doc/file.r509.html +92 -69
  62. data/doc/frames.html +1 -1
  63. data/doc/index.html +368 -171
  64. data/doc/method_list.html +910 -390
  65. data/doc/top-level-namespace.html +3 -3
  66. data/lib/r509.rb +32 -16
  67. data/lib/r509/asn1.rb +375 -0
  68. data/lib/r509/cert.rb +381 -364
  69. data/lib/r509/cert/extensions.rb +443 -76
  70. data/lib/r509/certificate_authority.rb +407 -0
  71. data/lib/r509/config.rb +547 -351
  72. data/lib/r509/crl.rb +336 -366
  73. data/lib/r509/csr.rb +278 -289
  74. data/lib/r509/ec-hack.rb +37 -0
  75. data/lib/r509/exceptions.rb +3 -3
  76. data/lib/r509/io_helpers.rb +44 -44
  77. data/lib/r509/message_digest.rb +53 -0
  78. data/lib/r509/ocsp.rb +80 -70
  79. data/lib/r509/oid_mapper.rb +32 -0
  80. data/lib/r509/private_key.rb +228 -0
  81. data/lib/r509/spki.rb +145 -93
  82. data/lib/r509/subject.rb +203 -110
  83. data/lib/r509/validity.rb +70 -68
  84. data/lib/r509/version.rb +2 -2
  85. data/r509.yaml +92 -69
  86. data/spec/asn1_spec.rb +402 -0
  87. data/spec/cert/extensions_spec.rb +957 -494
  88. data/spec/cert_spec.rb +382 -307
  89. data/spec/certificate_authority_spec.rb +668 -250
  90. data/spec/config_spec.rb +515 -302
  91. data/spec/crl_spec.rb +197 -198
  92. data/spec/csr_spec.rb +334 -289
  93. data/spec/fixtures.rb +247 -171
  94. data/spec/fixtures/cert1.der +0 -0
  95. data/spec/fixtures/cert1.pem +0 -0
  96. data/spec/fixtures/cert1_public_key_modulus.txt +0 -0
  97. data/spec/fixtures/cert3.p12 +0 -0
  98. data/spec/fixtures/cert3.pem +0 -0
  99. data/spec/fixtures/cert3_key.pem +0 -0
  100. data/spec/fixtures/cert3_key_des3.pem +0 -0
  101. data/spec/fixtures/cert4.pem +0 -0
  102. data/spec/fixtures/cert5.pem +0 -0
  103. data/spec/fixtures/cert6.pem +0 -0
  104. data/spec/fixtures/cert_expired.pem +0 -0
  105. data/spec/fixtures/cert_inhibit.pem +24 -0
  106. data/spec/fixtures/cert_name_constraints.pem +29 -0
  107. data/spec/fixtures/cert_not_yet_valid.pem +0 -0
  108. data/spec/fixtures/cert_ocsp_no_check.pem +18 -0
  109. data/spec/fixtures/cert_policy_constraints.pem +31 -0
  110. data/spec/fixtures/cert_san.pem +0 -0
  111. data/spec/fixtures/cert_san2.pem +0 -0
  112. data/spec/fixtures/cert_unknown_extension.pem +28 -0
  113. data/spec/fixtures/config_pool_test_minimal.yaml +11 -11
  114. data/spec/fixtures/config_test.yaml +54 -36
  115. data/spec/fixtures/config_test_dsa.yaml +35 -0
  116. data/spec/fixtures/config_test_ec.yaml +35 -0
  117. data/spec/fixtures/config_test_engine_key.yaml +5 -5
  118. data/spec/fixtures/config_test_engine_no_key_name.yaml +4 -4
  119. data/spec/fixtures/config_test_minimal.yaml +4 -4
  120. data/spec/fixtures/config_test_password.yaml +5 -5
  121. data/spec/fixtures/config_test_various.yaml +111 -74
  122. data/spec/fixtures/crl_list_file.txt +0 -0
  123. data/spec/fixtures/crl_with_reason.pem +0 -0
  124. data/spec/fixtures/csr1.der +0 -0
  125. data/spec/fixtures/csr1.pem +0 -0
  126. data/spec/fixtures/csr1_key.der +0 -0
  127. data/spec/fixtures/csr1_key.pem +0 -0
  128. data/spec/fixtures/csr1_key_encrypted_des3.pem +0 -0
  129. data/spec/fixtures/csr1_newlines.pem +0 -0
  130. data/spec/fixtures/csr1_no_begin_end.pem +0 -0
  131. data/spec/fixtures/csr1_public_key_modulus.txt +0 -0
  132. data/spec/fixtures/csr2.pem +0 -0
  133. data/spec/fixtures/csr2_key.pem +0 -0
  134. data/spec/fixtures/csr3.pem +0 -0
  135. data/spec/fixtures/csr4.pem +0 -0
  136. data/spec/fixtures/csr_dsa.pem +0 -0
  137. data/spec/fixtures/csr_invalid_signature.pem +0 -0
  138. data/spec/fixtures/dsa_key.pem +0 -0
  139. data/spec/fixtures/dsa_root.cer +28 -0
  140. data/spec/fixtures/dsa_root.key +20 -0
  141. data/spec/fixtures/ec_csr2.der +0 -0
  142. data/spec/fixtures/ec_csr2.pem +8 -0
  143. data/spec/fixtures/ec_key1.der +0 -0
  144. data/spec/fixtures/ec_key1.pem +6 -0
  145. data/spec/fixtures/ec_key1_encrypted.pem +9 -0
  146. data/spec/fixtures/ec_key2.pem +6 -0
  147. data/spec/fixtures/hmacsha1.sig +1 -0
  148. data/spec/fixtures/hmacsha512.sig +1 -0
  149. data/spec/fixtures/key4.pem +0 -0
  150. data/spec/fixtures/key4_encrypted_des3.pem +0 -0
  151. data/spec/fixtures/missing_key_identifier_ca.cer +0 -0
  152. data/spec/fixtures/missing_key_identifier_ca.key +0 -0
  153. data/spec/fixtures/ocsptest.r509.local.pem +0 -0
  154. data/spec/fixtures/ocsptest.r509.local_ocsp_request.der +0 -0
  155. data/spec/fixtures/ocsptest2.r509.local.pem +0 -0
  156. data/spec/fixtures/second_ca.cer +0 -0
  157. data/spec/fixtures/second_ca.key +0 -0
  158. data/spec/fixtures/spkac.der +0 -0
  159. data/spec/fixtures/spkac.txt +0 -0
  160. data/spec/fixtures/spkac_dsa.txt +1 -1
  161. data/spec/fixtures/spkac_dsa_no_verify.txt +1 -0
  162. data/spec/fixtures/spkac_ec.txt +1 -0
  163. data/spec/fixtures/spkac_rsa_newlines.txt +13 -0
  164. data/spec/fixtures/stca.pem +0 -0
  165. data/spec/fixtures/stca_ocsp_request.der +0 -0
  166. data/spec/fixtures/stca_ocsp_response.der +0 -0
  167. data/spec/fixtures/test1.csr +0 -0
  168. data/spec/fixtures/test_ca.cer +0 -0
  169. data/spec/fixtures/test_ca.key +0 -0
  170. data/spec/fixtures/test_ca.p12 +0 -0
  171. data/spec/fixtures/test_ca_des3.key +0 -0
  172. data/spec/fixtures/test_ca_ec.cer +14 -0
  173. data/spec/fixtures/test_ca_ec.key +6 -0
  174. data/spec/fixtures/test_ca_ec_ee.cer +22 -0
  175. data/spec/fixtures/test_ca_ec_ee.key +6 -0
  176. data/spec/fixtures/test_ca_ocsp.cer +0 -0
  177. data/spec/fixtures/test_ca_ocsp.key +0 -0
  178. data/spec/fixtures/test_ca_ocsp.p12 +0 -0
  179. data/spec/fixtures/test_ca_ocsp_chain.txt +0 -0
  180. data/spec/fixtures/test_ca_ocsp_response.der +0 -0
  181. data/spec/fixtures/test_ca_subroot.cer +0 -0
  182. data/spec/fixtures/test_ca_subroot.key +0 -0
  183. data/spec/fixtures/test_ca_subroot_ocsp.cer +0 -0
  184. data/spec/fixtures/test_ca_subroot_ocsp.key +0 -0
  185. data/spec/fixtures/test_ca_subroot_ocsp_response.der +0 -0
  186. data/spec/fixtures/unknown_oid.csr +0 -0
  187. data/spec/message_digest_spec.rb +104 -84
  188. data/spec/ocsp_spec.rb +105 -105
  189. data/spec/oid_mapper_spec.rb +21 -21
  190. data/spec/private_key_spec.rb +275 -0
  191. data/spec/r509_spec.rb +35 -0
  192. data/spec/spec_helper.rb +15 -6
  193. data/spec/spki_spec.rb +221 -142
  194. data/spec/subject_spec.rb +232 -164
  195. data/spec/validity_spec.rb +91 -91
  196. metadata +79 -25
  197. data/doc/R509/Config/CaProfile.html +0 -651
  198. data/doc/R509/Crl/Administrator.html +0 -2073
  199. data/lib/r509/certificateauthority.rb +0 -290
  200. data/lib/r509/messagedigest.rb +0 -49
  201. data/lib/r509/oidmapper.rb +0 -32
  202. data/lib/r509/privatekey.rb +0 -185
  203. data/spec/privatekey_spec.rb +0 -198
@@ -0,0 +1,340 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: R509::Cert::Extensions::CertificatePolicies
8
+
9
+ &mdash; Documentation by YARD 0.8.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../../';
20
+ framesUrl = "../../../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../../_index.html">Index (C)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../../R509.html" title="R509 (module)">R509</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Cert.html" title="R509::Cert (class)">Cert</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Extensions.html" title="R509::Cert::Extensions (module)">Extensions</a></span></span>
36
+ &raquo;
37
+ <span class="title">CertificatePolicies</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: R509::Cert::Extensions::CertificatePolicies
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">OpenSSL::X509::Extension</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">OpenSSL::X509::Extension</li>
82
+
83
+ <li class="next">R509::Cert::Extensions::CertificatePolicies</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">lib/r509/cert/extensions.rb</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>Implements the CertificatePolicies certificate extension, with methods to
108
+ provide access to the components and meaning of the extension's contents.</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div>
117
+ <h2>Constant Summary</h2>
118
+
119
+ <dl class="constants">
120
+
121
+ <dt id="OID-constant" class="">OID =
122
+ <div class="docstring">
123
+ <div class="discussion">
124
+
125
+ <p>friendly name for CP OID</p>
126
+
127
+
128
+ </div>
129
+ </div>
130
+ <div class="tags">
131
+
132
+
133
+ </div>
134
+ </dt>
135
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>certificatePolicies</span><span class='tstring_end'>&quot;</span></span></pre></dd>
136
+
137
+ </dl>
138
+
139
+
140
+
141
+
142
+
143
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
144
+ <ul class="summary">
145
+
146
+ <li class="public ">
147
+ <span class="summary_signature">
148
+
149
+ <a href="#policies-instance_method" title="#policies (instance method)">- (Object) <strong>policies</strong> </a>
150
+
151
+
152
+
153
+ </span>
154
+
155
+
156
+
157
+
158
+ <span class="note title readonly">readonly</span>
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <span class="summary_desc"><div class='inline'>
169
+ <p>Returns the value of attribute policies.</p>
170
+ </div></span>
171
+
172
+ </li>
173
+
174
+
175
+ </ul>
176
+
177
+
178
+
179
+
180
+
181
+ <h2>
182
+ Instance Method Summary
183
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
184
+ </h2>
185
+
186
+ <ul class="summary">
187
+
188
+ <li class="public ">
189
+ <span class="summary_signature">
190
+
191
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (CertificatePolicies) <strong>initialize</strong>(*args) </a>
192
+
193
+
194
+
195
+ </span>
196
+
197
+
198
+ <span class="note title constructor">constructor</span>
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+ <span class="summary_desc"><div class='inline'>
208
+ <p>A new instance of CertificatePolicies.</p>
209
+ </div></span>
210
+
211
+ </li>
212
+
213
+
214
+ </ul>
215
+
216
+
217
+
218
+ <div id="constructor_details" class="method_details_list">
219
+ <h2>Constructor Details</h2>
220
+
221
+ <div class="method_details first">
222
+ <h3 class="signature first" id="initialize-instance_method">
223
+
224
+ - (<tt><span class='object_link'><a href="" title="R509::Cert::Extensions::CertificatePolicies (class)">CertificatePolicies</a></span></tt>) <strong>initialize</strong>(*args)
225
+
226
+
227
+
228
+
229
+
230
+ </h3><div class="docstring">
231
+ <div class="discussion">
232
+
233
+ <p>A new instance of CertificatePolicies</p>
234
+
235
+
236
+ </div>
237
+ </div>
238
+ <div class="tags">
239
+
240
+
241
+ </div><table class="source_code">
242
+ <tr>
243
+ <td>
244
+ <pre class="lines">
245
+
246
+
247
+ 516
248
+ 517
249
+ 518
250
+ 519
251
+ 520
252
+ 521
253
+ 522
254
+ 523
255
+ 524
256
+ 525
257
+ 526
258
+ 527</pre>
259
+ </td>
260
+ <td>
261
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 516</span>
262
+
263
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
264
+ <span class='ivar'>@policies</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
265
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
266
+
267
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='period'>.</span><span class='id identifier rubyid_get_extension_payload'>get_extension_payload</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
268
+
269
+ <span class='comment'># each element of this sequence should be part of a policy + qualifiers
270
+ </span> <span class='comment'># certificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation
271
+ </span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cp'>cp</span><span class='op'>|</span>
272
+ <span class='ivar'>@policies</span> <span class='op'>&lt;&lt;</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>PolicyInformation</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_cp'>cp</span><span class='rparen'>)</span>
273
+ <span class='kw'>end</span> <span class='kw'>if</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:each</span><span class='rparen'>)</span>
274
+ <span class='kw'>end</span></pre>
275
+ </td>
276
+ </tr>
277
+ </table>
278
+ </div>
279
+
280
+ </div>
281
+
282
+ <div id="instance_attr_details" class="attr_details">
283
+ <h2>Instance Attribute Details</h2>
284
+
285
+
286
+ <span id=""></span>
287
+ <div class="method_details first">
288
+ <h3 class="signature first" id="policies-instance_method">
289
+
290
+ - (<tt>Object</tt>) <strong>policies</strong> <span class="extras">(readonly)</span>
291
+
292
+
293
+
294
+
295
+
296
+ </h3><div class="docstring">
297
+ <div class="discussion">
298
+
299
+ <p>Returns the value of attribute policies</p>
300
+
301
+
302
+ </div>
303
+ </div>
304
+ <div class="tags">
305
+
306
+
307
+ </div><table class="source_code">
308
+ <tr>
309
+ <td>
310
+ <pre class="lines">
311
+
312
+
313
+ 514
314
+ 515
315
+ 516</pre>
316
+ </td>
317
+ <td>
318
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 514</span>
319
+
320
+ <span class='kw'>def</span> <span class='id identifier rubyid_policies'>policies</span>
321
+ <span class='ivar'>@policies</span>
322
+ <span class='kw'>end</span></pre>
323
+ </td>
324
+ </tr>
325
+ </table>
326
+ </div>
327
+
328
+ </div>
329
+
330
+
331
+ </div>
332
+
333
+ <div id="footer">
334
+ Generated on Tue Apr 16 10:49:58 2013 by
335
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
336
+ 0.8.5 (ruby-1.9.3).
337
+ </div>
338
+
339
+ </body>
340
+ </html>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: R509::Cert::Extensions::ExtendedKeyUsage
8
8
 
9
- &mdash; Documentation by YARD 0.8.2.1
9
+ &mdash; Documentation by YARD 0.8.5
10
10
 
11
11
  </title>
12
12
 
@@ -119,7 +119,18 @@ provide access to the components and meaning of the extension's contents.</p>
119
119
  <dl class="constants">
120
120
 
121
121
  <dt id="OID-constant" class="">OID =
122
-
122
+ <div class="docstring">
123
+ <div class="discussion">
124
+
125
+ <p>friendly name for EKU OID</p>
126
+
127
+
128
+ </div>
129
+ </div>
130
+ <div class="tags">
131
+
132
+
133
+ </div>
123
134
  </dt>
124
135
  <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>extendedKeyUsage</span><span class='tstring_end'>&quot;</span></span></pre></dd>
125
136
 
@@ -127,7 +138,7 @@ provide access to the components and meaning of the extension's contents.</p>
127
138
  <div class="docstring">
128
139
  <div class="discussion">
129
140
 
130
- <p>The OpenSSL friendly name for the "serverAuth" extended key use.</p>
141
+ <p>The OpenSSL short name for TLS Web Server Authentication</p>
131
142
 
132
143
 
133
144
  </div>
@@ -137,13 +148,13 @@ provide access to the components and meaning of the extension's contents.</p>
137
148
 
138
149
  </div>
139
150
  </dt>
140
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TLS Web Server Authentication</span><span class='tstring_end'>&quot;</span></span></pre></dd>
151
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>serverAuth</span><span class='tstring_end'>&quot;</span></span></pre></dd>
141
152
 
142
153
  <dt id="AU_WEB_CLIENT_AUTH-constant" class="">AU_WEB_CLIENT_AUTH =
143
154
  <div class="docstring">
144
155
  <div class="discussion">
145
156
 
146
- <p>The OpenSSL friendly name for the "clientAuth" extended key use.</p>
157
+ <p>The OpenSSL short name for TLS Web Client Authentication</p>
147
158
 
148
159
 
149
160
  </div>
@@ -153,13 +164,13 @@ provide access to the components and meaning of the extension's contents.</p>
153
164
 
154
165
  </div>
155
166
  </dt>
156
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TLS Web Client Authentication</span><span class='tstring_end'>&quot;</span></span></pre></dd>
167
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>clientAuth</span><span class='tstring_end'>&quot;</span></span></pre></dd>
157
168
 
158
169
  <dt id="AU_CODE_SIGNING-constant" class="">AU_CODE_SIGNING =
159
170
  <div class="docstring">
160
171
  <div class="discussion">
161
172
 
162
- <p>The OpenSSL friendly name for the "codeSigning" extended key use.</p>
173
+ <p>The OpenSSL short name for Code Signing</p>
163
174
 
164
175
 
165
176
  </div>
@@ -169,13 +180,45 @@ provide access to the components and meaning of the extension's contents.</p>
169
180
 
170
181
  </div>
171
182
  </dt>
172
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Code Signing</span><span class='tstring_end'>&quot;</span></span></pre></dd>
183
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>codeSigning</span><span class='tstring_end'>&quot;</span></span></pre></dd>
173
184
 
174
185
  <dt id="AU_EMAIL_PROTECTION-constant" class="">AU_EMAIL_PROTECTION =
175
186
  <div class="docstring">
176
187
  <div class="discussion">
177
188
 
178
- <p>The OpenSSL friendly name for the "emailProtection" extended key use.</p>
189
+ <p>The OpenSSL short name for E-mail Protection</p>
190
+
191
+
192
+ </div>
193
+ </div>
194
+ <div class="tags">
195
+
196
+
197
+ </div>
198
+ </dt>
199
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>emailProtection</span><span class='tstring_end'>&quot;</span></span></pre></dd>
200
+
201
+ <dt id="AU_OCSP_SIGNING-constant" class="">AU_OCSP_SIGNING =
202
+ <div class="docstring">
203
+ <div class="discussion">
204
+
205
+ <p>The OpenSSL short name for OCSP Signing</p>
206
+
207
+
208
+ </div>
209
+ </div>
210
+ <div class="tags">
211
+
212
+
213
+ </div>
214
+ </dt>
215
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>OCSPSigning</span><span class='tstring_end'>&quot;</span></span></pre></dd>
216
+
217
+ <dt id="AU_TIME_STAMPING-constant" class="">AU_TIME_STAMPING =
218
+ <div class="docstring">
219
+ <div class="discussion">
220
+
221
+ <p>The OpenSSL short name for Time Stamping</p>
179
222
 
180
223
 
181
224
  </div>
@@ -185,7 +228,23 @@ provide access to the components and meaning of the extension's contents.</p>
185
228
 
186
229
  </div>
187
230
  </dt>
188
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>E-mail Protection</span><span class='tstring_end'>&quot;</span></span></pre></dd>
231
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>timeStamping</span><span class='tstring_end'>&quot;</span></span></pre></dd>
232
+
233
+ <dt id="AU_ANY_EXTENDED_KEY_USAGE-constant" class="">AU_ANY_EXTENDED_KEY_USAGE =
234
+ <div class="docstring">
235
+ <div class="discussion">
236
+
237
+ <p>The OpenSSL short name for Any Extended Key Usage</p>
238
+
239
+
240
+ </div>
241
+ </div>
242
+ <div class="tags">
243
+
244
+
245
+ </div>
246
+ </dt>
247
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>anyExtendedKeyUsage</span><span class='tstring_end'>&quot;</span></span></pre></dd>
189
248
 
190
249
  </dl>
191
250
 
@@ -219,7 +278,7 @@ provide access to the components and meaning of the extension's contents.</p>
219
278
 
220
279
 
221
280
  <span class="summary_desc"><div class='inline'>
222
- <p>An array of the key uses allowed.</p>
281
+ <p>Returns the value of attribute allowed_uses.</p>
223
282
  </div></span>
224
283
 
225
284
  </li>
@@ -259,6 +318,28 @@ provide access to the components and meaning of the extension's contents.</p>
259
318
  <p>Returns true if the given use is allowed by this extension.</p>
260
319
  </div></span>
261
320
 
321
+ </li>
322
+
323
+
324
+ <li class="public ">
325
+ <span class="summary_signature">
326
+
327
+ <a href="#any_extended_key_usage%3F-instance_method" title="#any_extended_key_usage? (instance method)">- (Boolean) <strong>any_extended_key_usage?</strong> </a>
328
+
329
+
330
+
331
+ </span>
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+ <span class="summary_desc"><div class='inline'></div></span>
342
+
262
343
  </li>
263
344
 
264
345
 
@@ -329,6 +410,50 @@ provide access to the components and meaning of the extension's contents.</p>
329
410
  <p>See OpenSSL::X509::Extension#initialize.</p>
330
411
  </div></span>
331
412
 
413
+ </li>
414
+
415
+
416
+ <li class="public ">
417
+ <span class="summary_signature">
418
+
419
+ <a href="#ocsp_signing%3F-instance_method" title="#ocsp_signing? (instance method)">- (Boolean) <strong>ocsp_signing?</strong> </a>
420
+
421
+
422
+
423
+ </span>
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+ <span class="summary_desc"><div class='inline'></div></span>
434
+
435
+ </li>
436
+
437
+
438
+ <li class="public ">
439
+ <span class="summary_signature">
440
+
441
+ <a href="#time_stamping%3F-instance_method" title="#time_stamping? (instance method)">- (Boolean) <strong>time_stamping?</strong> </a>
442
+
443
+
444
+
445
+ </span>
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <span class="summary_desc"><div class='inline'></div></span>
456
+
332
457
  </li>
333
458
 
334
459
 
@@ -409,19 +534,129 @@ provide access to the components and meaning of the extension's contents.</p>
409
534
  <pre class="lines">
410
535
 
411
536
 
412
- 151
413
- 152
414
- 153
415
- 154
416
- 155</pre>
537
+ 229
538
+ 230
539
+ 231
540
+ 232
541
+ 233
542
+ 234
543
+ 235
544
+ 236
545
+ 237
546
+ 238
547
+ 239
548
+ 240
549
+ 241
550
+ 242
551
+ 243
552
+ 244
553
+ 245
554
+ 246
555
+ 247
556
+ 248
557
+ 249
558
+ 250
559
+ 251
560
+ 252
561
+ 253
562
+ 254
563
+ 255
564
+ 256
565
+ 257
566
+ 258
567
+ 259
568
+ 260
569
+ 261
570
+ 262
571
+ 263
572
+ 264
573
+ 265
574
+ 266
575
+ 267
576
+ 268
577
+ 269
578
+ 270
579
+ 271
580
+ 272
581
+ 273
582
+ 274
583
+ 275
584
+ 276
585
+ 277
586
+ 278
587
+ 279
588
+ 280
589
+ 281
590
+ 282
591
+ 283
592
+ 284
593
+ 285
594
+ 286
595
+ 287
596
+ 288</pre>
417
597
  </td>
418
598
  <td>
419
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 151</span>
599
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 229</span>
420
600
 
421
601
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
422
602
  <span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
423
603
 
424
- <span class='ivar'>@allowed_uses</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>,</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_use'>use</span><span class='op'>|</span> <span class='id identifier rubyid_use'>use</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rbrace'>}</span>
604
+ <span class='ivar'>@allowed_uses</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
605
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='period'>.</span><span class='id identifier rubyid_get_extension_payload'>get_extension_payload</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
606
+
607
+ <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_eku'>eku</span><span class='op'>|</span>
608
+ <span class='comment'># The following key usage purposes are defined:
609
+ </span> <span class='comment'>#
610
+ </span> <span class='comment'># anyExtendedKeyUsage OBJECT IDENTIFIER ::= { id-ce-extKeyUsage 0 }
611
+ </span> <span class='comment'>#
612
+ </span> <span class='comment'># id-kp OBJECT IDENTIFIER ::= { id-pkix 3 }
613
+ </span> <span class='comment'># id-kp-serverAuth OBJECT IDENTIFIER ::= { id-kp 1 }
614
+ </span> <span class='comment'># -- TLS WWW server authentication
615
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature,
616
+ </span> <span class='comment'># -- keyEncipherment or keyAgreement
617
+ </span> <span class='comment'>#
618
+ </span> <span class='comment'># id-kp-clientAuth OBJECT IDENTIFIER ::= { id-kp 2 }
619
+ </span> <span class='comment'># -- TLS WWW client authentication
620
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature
621
+ </span> <span class='comment'># -- and/or keyAgreement
622
+ </span> <span class='comment'>#
623
+ </span> <span class='comment'># id-kp-codeSigning OBJECT IDENTIFIER ::= { id-kp 3 }
624
+ </span> <span class='comment'># -- Signing of downloadable executable code
625
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature
626
+ </span> <span class='comment'>#
627
+ </span> <span class='comment'># id-kp-emailProtection OBJECT IDENTIFIER ::= { id-kp 4 }
628
+ </span> <span class='comment'># -- Email protection
629
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature,
630
+ </span> <span class='comment'># -- nonRepudiation, and/or (keyEncipherment or keyAgreement)
631
+ </span> <span class='comment'>#
632
+ </span> <span class='comment'># id-kp-timeStamping OBJECT IDENTIFIER ::= { id-kp 8 }
633
+ </span> <span class='comment'># -- Binding the hash of an object to a time
634
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature
635
+ </span> <span class='comment'># -- and/or nonRepudiation
636
+ </span> <span class='comment'>#
637
+ </span> <span class='comment'># id-kp-OCSPSigning OBJECT IDENTIFIER ::= { id-kp 9 }
638
+ </span> <span class='comment'># -- Signing OCSP responses
639
+ </span> <span class='comment'># -- Key usage bits that may be consistent: digitalSignature
640
+ </span> <span class='comment'># -- and/or nonRepudiation
641
+ </span>
642
+ <span class='kw'>case</span> <span class='id identifier rubyid_eku'>eku</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
643
+ <span class='kw'>when</span> <span class='const'>AU_WEB_SERVER_AUTH</span>
644
+ <span class='ivar'>@web_server_authentication</span> <span class='op'>=</span> <span class='kw'>true</span>
645
+ <span class='kw'>when</span> <span class='const'>AU_WEB_CLIENT_AUTH</span>
646
+ <span class='ivar'>@web_client_authentication</span> <span class='op'>=</span> <span class='kw'>true</span>
647
+ <span class='kw'>when</span> <span class='const'>AU_CODE_SIGNING</span>
648
+ <span class='ivar'>@code_signing</span> <span class='op'>=</span> <span class='kw'>true</span>
649
+ <span class='kw'>when</span> <span class='const'>AU_EMAIL_PROTECTION</span>
650
+ <span class='ivar'>@email_protection</span> <span class='op'>=</span> <span class='kw'>true</span>
651
+ <span class='kw'>when</span> <span class='const'>AU_OCSP_SIGNING</span>
652
+ <span class='ivar'>@ocsp_signing</span> <span class='op'>=</span> <span class='kw'>true</span>
653
+ <span class='kw'>when</span> <span class='const'>AU_TIME_STAMPING</span>
654
+ <span class='ivar'>@time_stamping</span> <span class='op'>=</span> <span class='kw'>true</span>
655
+ <span class='kw'>when</span> <span class='const'>AU_ANY_EXTENDED_KEY_USAGE</span>
656
+ <span class='ivar'>@any_extended_key_usage</span> <span class='op'>=</span> <span class='kw'>true</span>
657
+ <span class='kw'>end</span>
658
+ <span class='ivar'>@allowed_uses</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_eku'>eku</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
659
+ <span class='kw'>end</span>
425
660
  <span class='kw'>end</span></pre>
426
661
  </td>
427
662
  </tr>
@@ -447,7 +682,7 @@ provide access to the components and meaning of the extension's contents.</p>
447
682
  </h3><div class="docstring">
448
683
  <div class="discussion">
449
684
 
450
- <p>An array of the key uses allowed. See the AU_* constants in this class.</p>
685
+ <p>Returns the value of attribute allowed_uses</p>
451
686
 
452
687
 
453
688
  </div>
@@ -461,12 +696,12 @@ provide access to the components and meaning of the extension's contents.</p>
461
696
  <pre class="lines">
462
697
 
463
698
 
464
- 148
465
- 149
466
- 150</pre>
699
+ 226
700
+ 227
701
+ 228</pre>
467
702
  </td>
468
703
  <td>
469
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 148</span>
704
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 226</span>
470
705
 
471
706
  <span class='kw'>def</span> <span class='id identifier rubyid_allowed_uses'>allowed_uses</span>
472
707
  <span class='ivar'>@allowed_uses</span>
@@ -542,12 +777,12 @@ provide access to the components and meaning of the extension's contents.</p>
542
777
  <pre class="lines">
543
778
 
544
779
 
545
- 159
546
- 160
547
- 161</pre>
780
+ 292
781
+ 293
782
+ 294</pre>
548
783
  </td>
549
784
  <td>
550
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 159</span>
785
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 292</span>
551
786
 
552
787
  <span class='kw'>def</span> <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='id identifier rubyid_friendly_use_name'>friendly_use_name</span> <span class='rparen'>)</span>
553
788
  <span class='ivar'>@allowed_uses</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span> <span class='id identifier rubyid_friendly_use_name'>friendly_use_name</span> <span class='rparen'>)</span>
@@ -555,6 +790,58 @@ provide access to the components and meaning of the extension's contents.</p>
555
790
  </td>
556
791
  </tr>
557
792
  </table>
793
+ </div>
794
+
795
+ <div class="method_details ">
796
+ <h3 class="signature " id="any_extended_key_usage?-instance_method">
797
+
798
+ - (<tt>Boolean</tt>) <strong>any_extended_key_usage?</strong>
799
+
800
+
801
+
802
+
803
+
804
+ </h3><div class="docstring">
805
+ <div class="discussion">
806
+
807
+
808
+ </div>
809
+ </div>
810
+ <div class="tags">
811
+
812
+ <p class="tag_title">Returns:</p>
813
+ <ul class="return">
814
+
815
+ <li>
816
+
817
+
818
+ <span class='type'>(<tt>Boolean</tt>)</span>
819
+
820
+
821
+
822
+ </li>
823
+
824
+ </ul>
825
+
826
+ </div><table class="source_code">
827
+ <tr>
828
+ <td>
829
+ <pre class="lines">
830
+
831
+
832
+ 320
833
+ 321
834
+ 322</pre>
835
+ </td>
836
+ <td>
837
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 320</span>
838
+
839
+ <span class='kw'>def</span> <span class='id identifier rubyid_any_extended_key_usage?'>any_extended_key_usage?</span>
840
+ <span class='lparen'>(</span><span class='ivar'>@any_extended_key_usage</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
841
+ <span class='kw'>end</span></pre>
842
+ </td>
843
+ </tr>
844
+ </table>
558
845
  </div>
559
846
 
560
847
  <div class="method_details ">
@@ -594,15 +881,15 @@ provide access to the components and meaning of the extension's contents.</p>
594
881
  <pre class="lines">
595
882
 
596
883
 
597
- 171
598
- 172
599
- 173</pre>
884
+ 304
885
+ 305
886
+ 306</pre>
600
887
  </td>
601
888
  <td>
602
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 171</span>
889
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 304</span>
603
890
 
604
891
  <span class='kw'>def</span> <span class='id identifier rubyid_code_signing?'>code_signing?</span>
605
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_CODE_SIGNING</span> <span class='rparen'>)</span>
892
+ <span class='lparen'>(</span><span class='ivar'>@code_signing</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
606
893
  <span class='kw'>end</span></pre>
607
894
  </td>
608
895
  </tr>
@@ -646,15 +933,119 @@ provide access to the components and meaning of the extension's contents.</p>
646
933
  <pre class="lines">
647
934
 
648
935
 
649
- 175
650
- 176
651
- 177</pre>
936
+ 308
937
+ 309
938
+ 310</pre>
652
939
  </td>
653
940
  <td>
654
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 175</span>
941
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 308</span>
655
942
 
656
943
  <span class='kw'>def</span> <span class='id identifier rubyid_email_protection?'>email_protection?</span>
657
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_EMAIL_PROTECTION</span> <span class='rparen'>)</span>
944
+ <span class='lparen'>(</span><span class='ivar'>@email_protection</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
945
+ <span class='kw'>end</span></pre>
946
+ </td>
947
+ </tr>
948
+ </table>
949
+ </div>
950
+
951
+ <div class="method_details ">
952
+ <h3 class="signature " id="ocsp_signing?-instance_method">
953
+
954
+ - (<tt>Boolean</tt>) <strong>ocsp_signing?</strong>
955
+
956
+
957
+
958
+
959
+
960
+ </h3><div class="docstring">
961
+ <div class="discussion">
962
+
963
+
964
+ </div>
965
+ </div>
966
+ <div class="tags">
967
+
968
+ <p class="tag_title">Returns:</p>
969
+ <ul class="return">
970
+
971
+ <li>
972
+
973
+
974
+ <span class='type'>(<tt>Boolean</tt>)</span>
975
+
976
+
977
+
978
+ </li>
979
+
980
+ </ul>
981
+
982
+ </div><table class="source_code">
983
+ <tr>
984
+ <td>
985
+ <pre class="lines">
986
+
987
+
988
+ 312
989
+ 313
990
+ 314</pre>
991
+ </td>
992
+ <td>
993
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 312</span>
994
+
995
+ <span class='kw'>def</span> <span class='id identifier rubyid_ocsp_signing?'>ocsp_signing?</span>
996
+ <span class='lparen'>(</span><span class='ivar'>@ocsp_signing</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
997
+ <span class='kw'>end</span></pre>
998
+ </td>
999
+ </tr>
1000
+ </table>
1001
+ </div>
1002
+
1003
+ <div class="method_details ">
1004
+ <h3 class="signature " id="time_stamping?-instance_method">
1005
+
1006
+ - (<tt>Boolean</tt>) <strong>time_stamping?</strong>
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+ </h3><div class="docstring">
1013
+ <div class="discussion">
1014
+
1015
+
1016
+ </div>
1017
+ </div>
1018
+ <div class="tags">
1019
+
1020
+ <p class="tag_title">Returns:</p>
1021
+ <ul class="return">
1022
+
1023
+ <li>
1024
+
1025
+
1026
+ <span class='type'>(<tt>Boolean</tt>)</span>
1027
+
1028
+
1029
+
1030
+ </li>
1031
+
1032
+ </ul>
1033
+
1034
+ </div><table class="source_code">
1035
+ <tr>
1036
+ <td>
1037
+ <pre class="lines">
1038
+
1039
+
1040
+ 316
1041
+ 317
1042
+ 318</pre>
1043
+ </td>
1044
+ <td>
1045
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 316</span>
1046
+
1047
+ <span class='kw'>def</span> <span class='id identifier rubyid_time_stamping?'>time_stamping?</span>
1048
+ <span class='lparen'>(</span><span class='ivar'>@time_stamping</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
658
1049
  <span class='kw'>end</span></pre>
659
1050
  </td>
660
1051
  </tr>
@@ -698,15 +1089,15 @@ provide access to the components and meaning of the extension's contents.</p>
698
1089
  <pre class="lines">
699
1090
 
700
1091
 
701
- 167
702
- 168
703
- 169</pre>
1092
+ 300
1093
+ 301
1094
+ 302</pre>
704
1095
  </td>
705
1096
  <td>
706
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 167</span>
1097
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 300</span>
707
1098
 
708
1099
  <span class='kw'>def</span> <span class='id identifier rubyid_web_client_authentication?'>web_client_authentication?</span>
709
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_WEB_CLIENT_AUTH</span> <span class='rparen'>)</span>
1100
+ <span class='lparen'>(</span><span class='ivar'>@web_client_authentication</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
710
1101
  <span class='kw'>end</span></pre>
711
1102
  </td>
712
1103
  </tr>
@@ -750,15 +1141,15 @@ provide access to the components and meaning of the extension's contents.</p>
750
1141
  <pre class="lines">
751
1142
 
752
1143
 
753
- 163
754
- 164
755
- 165</pre>
1144
+ 296
1145
+ 297
1146
+ 298</pre>
756
1147
  </td>
757
1148
  <td>
758
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 163</span>
1149
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 296</span>
759
1150
 
760
1151
  <span class='kw'>def</span> <span class='id identifier rubyid_web_server_authentication?'>web_server_authentication?</span>
761
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_WEB_SERVER_AUTH</span> <span class='rparen'>)</span>
1152
+ <span class='lparen'>(</span><span class='ivar'>@web_server_authentication</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
762
1153
  <span class='kw'>end</span></pre>
763
1154
  </td>
764
1155
  </tr>
@@ -770,9 +1161,9 @@ provide access to the components and meaning of the extension's contents.</p>
770
1161
  </div>
771
1162
 
772
1163
  <div id="footer">
773
- Generated on Thu Nov 8 14:19:28 2012 by
1164
+ Generated on Tue Apr 16 10:49:58 2013 by
774
1165
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
775
- 0.8.2.1 (ruby-1.9.3).
1166
+ 0.8.5 (ruby-1.9.3).
776
1167
  </div>
777
1168
 
778
1169
  </body>