r509 0.10.0 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.mdown +2 -2
  5. data/Rakefile +2 -3
  6. data/bin/r509 +77 -80
  7. data/bin/r509-parse +4 -4
  8. data/doc/R509.html +60 -60
  9. data/doc/R509/ASN1.html +158 -48
  10. data/doc/R509/ASN1/GeneralName.html +157 -154
  11. data/doc/R509/ASN1/GeneralNames.html +246 -237
  12. data/doc/R509/CRL.html +41 -39
  13. data/doc/R509/CRL/Administrator.html +105 -100
  14. data/doc/R509/CRL/FileReaderWriter.html +146 -98
  15. data/doc/R509/CRL/ReaderWriter.html +57 -54
  16. data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
  17. data/doc/R509/CRL/SignedList.html +83 -80
  18. data/doc/R509/CSR.html +184 -162
  19. data/doc/R509/Cert.html +271 -269
  20. data/doc/R509/Cert/Extensions.html +62 -63
  21. data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
  22. data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
  23. data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
  24. data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
  25. data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
  26. data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
  27. data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
  28. data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
  29. data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
  30. data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
  31. data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
  32. data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
  33. data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
  34. data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
  35. data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
  36. data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
  37. data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
  38. data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
  39. data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
  40. data/doc/R509/CertificateAuthority.html +39 -37
  41. data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
  42. data/doc/R509/CertificateAuthority/Signer.html +277 -60
  43. data/doc/R509/Config.html +40 -38
  44. data/doc/R509/Config/CAConfig.html +255 -188
  45. data/doc/R509/Config/CAConfigPool.html +64 -61
  46. data/doc/R509/Config/CertProfile.html +119 -116
  47. data/doc/R509/Config/SubjectItemPolicy.html +94 -93
  48. data/doc/R509/Engine.html +60 -56
  49. data/doc/R509/Helpers.html +99 -96
  50. data/doc/R509/MessageDigest.html +69 -68
  51. data/doc/R509/NameSanitizer.html +51 -48
  52. data/doc/R509/OCSP.html +39 -37
  53. data/doc/R509/OCSP/Request.html +39 -37
  54. data/doc/R509/OCSP/Request/Nonce.html +67 -67
  55. data/doc/R509/OCSP/Response.html +93 -90
  56. data/doc/R509/OIDMapper.html +48 -46
  57. data/doc/R509/PrivateKey.html +170 -169
  58. data/doc/R509/R509Error.html +45 -42
  59. data/doc/R509/SPKI.html +99 -89
  60. data/doc/R509/Subject.html +86 -83
  61. data/doc/R509/Validity.html +57 -57
  62. data/doc/R509/Validity/Checker.html +63 -93
  63. data/doc/R509/Validity/DefaultChecker.html +58 -55
  64. data/doc/R509/Validity/DefaultWriter.html +62 -59
  65. data/doc/R509/Validity/Status.html +77 -74
  66. data/doc/R509/Validity/Writer.html +75 -123
  67. data/doc/_index.html +37 -31
  68. data/doc/class_list.html +25 -27
  69. data/doc/css/full_list.css +32 -31
  70. data/doc/css/style.css +221 -78
  71. data/doc/file.CONTRIBUTING.html +29 -30
  72. data/doc/file.LICENSE.html +29 -30
  73. data/doc/file.README.html +31 -32
  74. data/doc/file.YAML.html +33 -34
  75. data/doc/file.r509.html +39 -48
  76. data/doc/file_list.html +39 -30
  77. data/doc/frames.html +10 -21
  78. data/doc/index.html +31 -32
  79. data/doc/js/app.js +100 -71
  80. data/doc/js/full_list.js +168 -130
  81. data/doc/method_list.html +1788 -1119
  82. data/doc/top-level-namespace.html +45 -49
  83. data/lib/r509.rb +21 -7
  84. data/lib/r509/asn1.rb +45 -32
  85. data/lib/r509/cert.rb +45 -51
  86. data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
  87. data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
  88. data/lib/r509/cert/extensions/base.rb +22 -23
  89. data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
  90. data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
  91. data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
  92. data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
  93. data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
  94. data/lib/r509/cert/extensions/key_usage.rb +5 -5
  95. data/lib/r509/cert/extensions/name_constraints.rb +16 -16
  96. data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
  97. data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
  98. data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
  99. data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
  100. data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
  101. data/lib/r509/certificate_authority/options_builder.rb +19 -21
  102. data/lib/r509/certificate_authority/signer.rb +26 -27
  103. data/lib/r509/config.rb +1 -0
  104. data/lib/r509/config/ca_config.rb +70 -75
  105. data/lib/r509/config/cert_profile.rb +9 -8
  106. data/lib/r509/config/subject_item_policy.rb +25 -28
  107. data/lib/r509/crl/administrator.rb +19 -20
  108. data/lib/r509/crl/reader_writer.rb +10 -8
  109. data/lib/r509/crl/signed_list.rb +4 -4
  110. data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
  111. data/lib/r509/csr.rb +54 -60
  112. data/lib/r509/ec-hack.rb +3 -2
  113. data/lib/r509/engine.rb +5 -6
  114. data/lib/r509/exceptions.rb +1 -1
  115. data/lib/r509/helpers.rb +11 -14
  116. data/lib/r509/io_helpers.rb +7 -7
  117. data/lib/r509/message_digest.rb +5 -6
  118. data/lib/r509/ocsp.rb +11 -13
  119. data/lib/r509/oid_mapper.rb +2 -2
  120. data/lib/r509/private_key.rb +28 -32
  121. data/lib/r509/spki.rb +17 -20
  122. data/lib/r509/subject.rb +26 -27
  123. data/lib/r509/trollop.rb +1 -0
  124. data/lib/r509/validity.rb +30 -21
  125. data/lib/r509/version.rb +4 -2
  126. data/r509.yaml +9 -17
  127. data/spec/asn1_spec.rb +145 -146
  128. data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
  129. data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
  130. data/spec/cert/extensions/base_spec.rb +38 -34
  131. data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
  132. data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
  133. data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
  134. data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
  135. data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
  136. data/spec/cert/extensions/key_usage_spec.rb +44 -39
  137. data/spec/cert/extensions/name_constraints_spec.rb +83 -83
  138. data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
  139. data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
  140. data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
  141. data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
  142. data/spec/cert_spec.rb +105 -101
  143. data/spec/certificate_authority/options_builder_spec.rb +90 -90
  144. data/spec/certificate_authority/signer_spec.rb +41 -41
  145. data/spec/config/ca_config_spec.rb +169 -119
  146. data/spec/config/cert_profile_spec.rb +33 -33
  147. data/spec/config/subject_item_policy_spec.rb +22 -22
  148. data/spec/crl/administrator_spec.rb +65 -65
  149. data/spec/crl/reader_writer_spec.rb +20 -19
  150. data/spec/crl/signed_list_spec.rb +26 -26
  151. data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
  152. data/spec/csr_spec.rb +149 -145
  153. data/spec/engine_spec.rb +14 -14
  154. data/spec/fixtures.rb +56 -39
  155. data/spec/fixtures/crl_list.sql +13 -0
  156. data/spec/fixtures/csr1.der +0 -0
  157. data/spec/fixtures/csr1.pem +6 -6
  158. data/spec/message_digest_spec.rb +43 -43
  159. data/spec/ocsp_spec.rb +25 -25
  160. data/spec/oid_mapper_spec.rb +18 -19
  161. data/spec/private_key_spec.rb +79 -81
  162. data/spec/r509_spec.rb +16 -16
  163. data/spec/spec_helper.rb +3 -3
  164. data/spec/spki_spec.rb +94 -94
  165. data/spec/subject_spec.rb +107 -107
  166. data/spec/validity_spec.rb +25 -25
  167. metadata +113 -111
  168. metadata.gz.sig +0 -0
@@ -1,12 +1,12 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Module: R509::OIDMapper
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.9.5
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "R509::OIDMapper";
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
20
  </script>
22
21
 
23
22
 
@@ -28,61 +27,63 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../_index.html">Index (O)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">OIDMapper</span>
38
43
 
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
44
  </div>
42
45
 
43
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  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
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="../class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Module: R509::OIDMapper
64
+ <div id="content"><h1>Module: R509::OIDMapper
67
65
 
68
66
 
69
67
 
70
68
  </h1>
69
+ <div class="box_info">
70
+
71
71
 
72
- <dl class="box">
73
72
 
74
73
 
75
-
76
74
 
77
-
78
75
 
79
76
 
77
+
78
+
79
+
80
80
 
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/r509/oid_mapper.rb</dd>
81
+ <dl>
82
+ <dt>Defined in:</dt>
83
+ <dd>lib/r509/oid_mapper.rb</dd>
84
+ </dl>
83
85
 
84
- </dl>
85
- <div class="clear"></div>
86
+ </div>
86
87
 
87
88
  <h2>Overview</h2><div class="docstring">
88
89
  <div class="discussion">
@@ -105,7 +106,7 @@
105
106
 
106
107
  <h2>
107
108
  Class Method Summary
108
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
109
+ <small><a href="#" class="summary_toggle">collapse</a></small>
109
110
  </h2>
110
111
 
111
112
  <ul class="summary">
@@ -113,7 +114,7 @@
113
114
  <li class="public ">
114
115
  <span class="summary_signature">
115
116
 
116
- <a href="#batch_register-class_method" title="batch_register (class method)">+ (Object) <strong>batch_register</strong>(oids) </a>
117
+ <a href="#batch_register-class_method" title="batch_register (class method)">.<strong>batch_register</strong>(oids) &#x21d2; Object </a>
117
118
 
118
119
 
119
120
 
@@ -137,7 +138,7 @@
137
138
  <li class="public ">
138
139
  <span class="summary_signature">
139
140
 
140
- <a href="#register-class_method" title="register (class method)">+ (Boolean) <strong>register</strong>(oid, short_name, long_name = nil) </a>
141
+ <a href="#register-class_method" title="register (class method)">.<strong>register</strong>(oid, short_name, long_name = nil) &#x21d2; Boolean </a>
141
142
 
142
143
 
143
144
 
@@ -161,7 +162,7 @@
161
162
  <li class="public ">
162
163
  <span class="summary_signature">
163
164
 
164
- <a href="#register_from_yaml-class_method" title="register_from_yaml (class method)">+ (Object) <strong>register_from_yaml</strong>(name, yaml_data) </a>
165
+ <a href="#register_from_yaml-class_method" title="register_from_yaml (class method)">.<strong>register_from_yaml</strong>(name, yaml_data) &#x21d2; Object </a>
165
166
 
166
167
 
167
168
 
@@ -194,7 +195,7 @@
194
195
  <div class="method_details first">
195
196
  <h3 class="signature first" id="batch_register-class_method">
196
197
 
197
- + (<tt>Object</tt>) <strong>batch_register</strong>(oids)
198
+ .<strong>batch_register</strong>(oids) &#x21d2; <tt>Object</tt>
198
199
 
199
200
 
200
201
 
@@ -259,7 +260,7 @@
259
260
 
260
261
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_batch_register'>batch_register</span><span class='lparen'>(</span><span class='id identifier rubyid_oids'>oids</span><span class='rparen'>)</span>
261
262
  <span class='id identifier rubyid_oids'>oids</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_oid_hash'>oid_hash</span><span class='op'>|</span>
262
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:oid</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:short_name</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:long_name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
263
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:oid</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:short_name</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_oid_hash'>oid_hash</span><span class='lbracket'>[</span><span class='symbol'>:long_name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
263
264
  <span class='kw'>end</span>
264
265
  <span class='kw'>nil</span>
265
266
  <span class='kw'>end</span></pre>
@@ -271,7 +272,7 @@
271
272
  <div class="method_details ">
272
273
  <h3 class="signature " id="register-class_method">
273
274
 
274
- + (<tt>Boolean</tt>) <strong>register</strong>(oid, short_name, long_name = nil)
275
+ .<strong>register</strong>(oid, short_name, long_name = nil) &#x21d2; <tt>Boolean</tt>
275
276
 
276
277
 
277
278
 
@@ -376,7 +377,7 @@
376
377
  <td>
377
378
  <pre class="code"><span class="info file"># File 'lib/r509/oid_mapper.rb', line 11</span>
378
379
 
379
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_oid'>oid</span><span class='comma'>,</span><span class='id identifier rubyid_short_name'>short_name</span><span class='comma'>,</span><span class='id identifier rubyid_long_name'>long_name</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
380
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_oid'>oid</span><span class='comma'>,</span> <span class='id identifier rubyid_short_name'>short_name</span><span class='comma'>,</span> <span class='id identifier rubyid_long_name'>long_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
380
381
  <span class='kw'>if</span> <span class='id identifier rubyid_long_name'>long_name</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
381
382
  <span class='id identifier rubyid_long_name'>long_name</span> <span class='op'>=</span> <span class='id identifier rubyid_short_name'>short_name</span>
382
383
  <span class='kw'>end</span>
@@ -390,7 +391,7 @@
390
391
  <div class="method_details ">
391
392
  <h3 class="signature " id="register_from_yaml-class_method">
392
393
 
393
- + (<tt>Object</tt>) <strong>register_from_yaml</strong>(name, yaml_data)
394
+ .<strong>register_from_yaml</strong>(name, yaml_data) &#x21d2; <tt>Object</tt>
394
395
 
395
396
 
396
397
 
@@ -482,11 +483,12 @@
482
483
 
483
484
  </div>
484
485
 
485
- <div id="footer">
486
- Generated on Sun Jan 26 13:37:25 2014 by
486
+ <div id="footer">
487
+ Generated on Tue Dec 6 17:27:39 2016 by
487
488
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
488
- 0.8.6.1 (ruby-2.0.0).
489
+ 0.9.5 (ruby-2.4.0).
489
490
  </div>
490
491
 
492
+ </div>
491
493
  </body>
492
494
  </html>
@@ -1,12 +1,12 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Class: R509::PrivateKey
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.9.5
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "R509::PrivateKey";
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
20
  </script>
22
21
 
23
22
 
@@ -28,51 +27,50 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../_index.html">Index (P)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">PrivateKey</span>
38
43
 
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
44
  </div>
42
45
 
43
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  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
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="../class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Class: R509::PrivateKey
64
+ <div id="content"><h1>Class: R509::PrivateKey
67
65
 
68
66
 
69
67
 
70
68
  </h1>
71
-
72
- <dl class="box">
69
+ <div class="box_info">
73
70
 
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
76
74
  <span class="inheritName">Object</span>
77
75
 
78
76
  <ul class="fullTree">
@@ -83,21 +81,25 @@
83
81
  </ul>
84
82
  <a href="#" class="inheritanceTree">show all</a>
85
83
 
86
- </dd>
87
-
84
+ </dd>
85
+ </dl>
86
+
87
+
88
88
 
89
89
 
90
-
91
90
 
92
-
93
91
 
94
92
 
93
+
94
+
95
+
95
96
 
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/r509/private_key.rb</dd>
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/r509/private_key.rb</dd>
100
+ </dl>
98
101
 
99
- </dl>
100
- <div class="clear"></div>
102
+ </div>
101
103
 
102
104
  <h2>Overview</h2><div class="docstring">
103
105
  <div class="discussion">
@@ -112,11 +114,10 @@
112
114
 
113
115
  </div>
114
116
  <h2>Constant Summary</h2>
115
-
116
- <dl class="constants">
117
-
118
- <dt id="KNOWN_TYPES-constant" class="">KNOWN_TYPES =
119
- <div class="docstring">
117
+ <dl class="constants">
118
+
119
+ <dt id="KNOWN_TYPES-constant" class="">KNOWN_TYPES =
120
+ <div class="docstring">
120
121
  <div class="discussion">
121
122
 
122
123
  <p>a list of key types</p>
@@ -128,11 +129,11 @@
128
129
 
129
130
 
130
131
  </div>
131
- </dt>
132
- <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RSA</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DSA</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>EC</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span></pre></dd>
133
-
134
- <dt id="DEFAULT_TYPE-constant" class="">DEFAULT_TYPE =
135
- <div class="docstring">
132
+ </dt>
133
+ <dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RSA</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DSA</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>EC</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span></pre></dd>
134
+
135
+ <dt id="DEFAULT_TYPE-constant" class="">DEFAULT_TYPE =
136
+ <div class="docstring">
136
137
  <div class="discussion">
137
138
 
138
139
  <p>the default type</p>
@@ -144,11 +145,11 @@
144
145
 
145
146
 
146
147
  </div>
147
- </dt>
148
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RSA</span><span class='tstring_end'>&quot;</span></span></pre></dd>
149
-
150
- <dt id="DEFAULT_STRENGTH-constant" class="">DEFAULT_STRENGTH =
151
- <div class="docstring">
148
+ </dt>
149
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>RSA</span><span class='tstring_end'>&quot;</span></span></pre></dd>
150
+
151
+ <dt id="DEFAULT_STRENGTH-constant" class="">DEFAULT_STRENGTH =
152
+ <div class="docstring">
152
153
  <div class="discussion">
153
154
 
154
155
  <p>default bit length for DSA/RSA</p>
@@ -160,11 +161,11 @@
160
161
 
161
162
 
162
163
  </div>
163
- </dt>
164
- <dd><pre class="code"><span class='int'>2048</span></pre></dd>
165
-
166
- <dt id="DEFAULT_CURVE-constant" class="">DEFAULT_CURVE =
167
- <div class="docstring">
164
+ </dt>
165
+ <dd><pre class="code"><span class='int'>2048</span></pre></dd>
166
+
167
+ <dt id="DEFAULT_CURVE-constant" class="">DEFAULT_CURVE =
168
+ <div class="docstring">
168
169
  <div class="discussion">
169
170
 
170
171
  <p>default curve name for EC</p>
@@ -176,11 +177,10 @@
176
177
 
177
178
 
178
179
  </div>
179
- </dt>
180
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>secp384r1</span><span class='tstring_end'>&quot;</span></span></pre></dd>
181
-
182
- </dl>
183
-
180
+ </dt>
181
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>secp384r1</span><span class='tstring_end'>&quot;</span></span></pre></dd>
182
+
183
+ </dl>
184
184
 
185
185
 
186
186
 
@@ -191,7 +191,7 @@
191
191
 
192
192
  <h2>
193
193
  Class Method Summary
194
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
194
+ <small><a href="#" class="summary_toggle">collapse</a></small>
195
195
  </h2>
196
196
 
197
197
  <ul class="summary">
@@ -199,7 +199,7 @@
199
199
  <li class="public ">
200
200
  <span class="summary_signature">
201
201
 
202
- <a href="#load_from_file-class_method" title="load_from_file (class method)">+ (R509::PrivateKey) <strong>load_from_file</strong>(filename, password = nil) </a>
202
+ <a href="#load_from_file-class_method" title="load_from_file (class method)">.<strong>load_from_file</strong>(filename, password = nil) &#x21d2; R509::PrivateKey </a>
203
203
 
204
204
 
205
205
 
@@ -224,7 +224,7 @@
224
224
 
225
225
  <h2>
226
226
  Instance Method Summary
227
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
227
+ <small><a href="#" class="summary_toggle">collapse</a></small>
228
228
  </h2>
229
229
 
230
230
  <ul class="summary">
@@ -232,7 +232,7 @@
232
232
  <li class="public ">
233
233
  <span class="summary_signature">
234
234
 
235
- <a href="#bit_length-instance_method" title="#bit_length (instance method)">- (Integer) <strong>bit_length</strong> </a>
235
+ <a href="#bit_length-instance_method" title="#bit_length (instance method)">#<strong>bit_length</strong> &#x21d2; Integer </a>
236
236
 
237
237
 
238
238
 
@@ -258,7 +258,7 @@
258
258
  <li class="public ">
259
259
  <span class="summary_signature">
260
260
 
261
- <a href="#curve_name-instance_method" title="#curve_name (instance method)">- (String) <strong>curve_name</strong> </a>
261
+ <a href="#curve_name-instance_method" title="#curve_name (instance method)">#<strong>curve_name</strong> &#x21d2; String </a>
262
262
 
263
263
 
264
264
 
@@ -283,7 +283,7 @@ key if the key is EC.</p>
283
283
  <li class="public ">
284
284
  <span class="summary_signature">
285
285
 
286
- <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">- (Boolean) <strong>dsa?</strong> </a>
286
+ <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">#<strong>dsa?</strong> &#x21d2; Boolean </a>
287
287
 
288
288
 
289
289
 
@@ -307,7 +307,7 @@ key if the key is EC.</p>
307
307
  <li class="public ">
308
308
  <span class="summary_signature">
309
309
 
310
- <a href="#ec%3F-instance_method" title="#ec? (instance method)">- (Boolean) <strong>ec?</strong> </a>
310
+ <a href="#ec%3F-instance_method" title="#ec? (instance method)">#<strong>ec?</strong> &#x21d2; Boolean </a>
311
311
 
312
312
 
313
313
 
@@ -331,7 +331,7 @@ key if the key is EC.</p>
331
331
  <li class="public ">
332
332
  <span class="summary_signature">
333
333
 
334
- <a href="#in_hardware%3F-instance_method" title="#in_hardware? (instance method)">- (Boolean) <strong>in_hardware?</strong> </a>
334
+ <a href="#in_hardware%3F-instance_method" title="#in_hardware? (instance method)">#<strong>in_hardware?</strong> &#x21d2; Boolean </a>
335
335
 
336
336
 
337
337
 
@@ -355,7 +355,7 @@ key if the key is EC.</p>
355
355
  <li class="public ">
356
356
  <span class="summary_signature">
357
357
 
358
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (PrivateKey) <strong>initialize</strong>(opts = {}) </a>
358
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) &#x21d2; PrivateKey </a>
359
359
 
360
360
 
361
361
 
@@ -381,7 +381,7 @@ key if the key is EC.</p>
381
381
  <li class="public ">
382
382
  <span class="summary_signature">
383
383
 
384
- <a href="#key-instance_method" title="#key (instance method)">- (OpenSSL::PKey::RSA, ...) <strong>key</strong> </a>
384
+ <a href="#key-instance_method" title="#key (instance method)">#<strong>key</strong> &#x21d2; OpenSSL::PKey::RSA, ... </a>
385
385
 
386
386
 
387
387
 
@@ -406,7 +406,7 @@ key in the HSM (which will not show the private key, just public).</p>
406
406
  <li class="public ">
407
407
  <span class="summary_signature">
408
408
 
409
- <a href="#public_key-instance_method" title="#public_key (instance method)">- (OpenSSL::PKey::RSA, ...) <strong>public_key</strong> </a>
409
+ <a href="#public_key-instance_method" title="#public_key (instance method)">#<strong>public_key</strong> &#x21d2; OpenSSL::PKey::RSA, ... </a>
410
410
 
411
411
 
412
412
 
@@ -432,7 +432,7 @@ key in the HSM (which will not show the private key, just public).</p>
432
432
  <li class="public ">
433
433
  <span class="summary_signature">
434
434
 
435
- <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">- (Boolean) <strong>rsa?</strong> </a>
435
+ <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">#<strong>rsa?</strong> &#x21d2; Boolean </a>
436
436
 
437
437
 
438
438
 
@@ -456,7 +456,7 @@ key in the HSM (which will not show the private key, just public).</p>
456
456
  <li class="public ">
457
457
  <span class="summary_signature">
458
458
 
459
- <a href="#to_der-instance_method" title="#to_der (instance method)">- (String) <strong>to_der</strong> </a>
459
+ <a href="#to_der-instance_method" title="#to_der (instance method)">#<strong>to_der</strong> &#x21d2; String </a>
460
460
 
461
461
 
462
462
 
@@ -480,7 +480,7 @@ key in the HSM (which will not show the private key, just public).</p>
480
480
  <li class="public ">
481
481
  <span class="summary_signature">
482
482
 
483
- <a href="#to_encrypted_pem-instance_method" title="#to_encrypted_pem (instance method)">- (String) <strong>to_encrypted_pem</strong>(cipher, password) </a>
483
+ <a href="#to_encrypted_pem-instance_method" title="#to_encrypted_pem (instance method)">#<strong>to_encrypted_pem</strong>(cipher, password) &#x21d2; String </a>
484
484
 
485
485
 
486
486
 
@@ -504,7 +504,7 @@ key in the HSM (which will not show the private key, just public).</p>
504
504
  <li class="public ">
505
505
  <span class="summary_signature">
506
506
 
507
- <a href="#to_pem-instance_method" title="#to_pem (instance method)">- (String) <strong>to_pem</strong> </a>
507
+ <a href="#to_pem-instance_method" title="#to_pem (instance method)">#<strong>to_pem</strong> &#x21d2; String </a>
508
508
 
509
509
 
510
510
 
@@ -528,7 +528,7 @@ key in the HSM (which will not show the private key, just public).</p>
528
528
  <li class="public ">
529
529
  <span class="summary_signature">
530
530
 
531
- <a href="#write_der-instance_method" title="#write_der (instance method)">- (Object) <strong>write_der</strong>(filename_or_io) </a>
531
+ <a href="#write_der-instance_method" title="#write_der (instance method)">#<strong>write_der</strong>(filename_or_io) &#x21d2; Object </a>
532
532
 
533
533
 
534
534
 
@@ -552,7 +552,7 @@ key in the HSM (which will not show the private key, just public).</p>
552
552
  <li class="public ">
553
553
  <span class="summary_signature">
554
554
 
555
- <a href="#write_encrypted_pem-instance_method" title="#write_encrypted_pem (instance method)">- (Object) <strong>write_encrypted_pem</strong>(filename_or_io, cipher, password) </a>
555
+ <a href="#write_encrypted_pem-instance_method" title="#write_encrypted_pem (instance method)">#<strong>write_encrypted_pem</strong>(filename_or_io, cipher, password) &#x21d2; Object </a>
556
556
 
557
557
 
558
558
 
@@ -576,7 +576,7 @@ key in the HSM (which will not show the private key, just public).</p>
576
576
  <li class="public ">
577
577
  <span class="summary_signature">
578
578
 
579
- <a href="#write_pem-instance_method" title="#write_pem (instance method)">- (Object) <strong>write_pem</strong>(filename_or_io) </a>
579
+ <a href="#write_pem-instance_method" title="#write_pem (instance method)">#<strong>write_pem</strong>(filename_or_io) &#x21d2; Object </a>
580
580
 
581
581
 
582
582
 
@@ -608,7 +608,7 @@ key in the HSM (which will not show the private key, just public).</p>
608
608
  <div class="method_details first">
609
609
  <h3 class="signature first" id="initialize-instance_method">
610
610
 
611
- - (<tt><span class='object_link'><a href="" title="R509::PrivateKey (class)">PrivateKey</a></span></tt>) <strong>initialize</strong>(opts = {})
611
+ #<strong>initialize</strong>(opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="R509::PrivateKey (class)">PrivateKey</a></span></tt>
612
612
 
613
613
 
614
614
 
@@ -617,7 +617,7 @@ key in the HSM (which will not show the private key, just public).</p>
617
617
  </h3><div class="docstring">
618
618
  <div class="discussion">
619
619
 
620
- <p>A new instance of PrivateKey</p>
620
+ <p>Returns a new instance of PrivateKey</p>
621
621
 
622
622
 
623
623
  </div>
@@ -779,13 +779,13 @@ R509::PrivateKey::KNOWN_TYPES.</p>
779
779
  <td>
780
780
  <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 27</span>
781
781
 
782
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
783
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
782
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
783
+ <span class='kw'>unless</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
784
784
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>&#39;</span></span>
785
785
  <span class='kw'>end</span>
786
786
  <span class='id identifier rubyid_validate_engine'>validate_engine</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
787
787
 
788
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span>
788
+ <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span>
789
789
  <span class='id identifier rubyid_validate_key'>validate_key</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
790
790
  <span class='kw'>else</span>
791
791
  <span class='id identifier rubyid_generate_key'>generate_key</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
@@ -806,7 +806,7 @@ R509::PrivateKey::KNOWN_TYPES.</p>
806
806
  <div class="method_details first">
807
807
  <h3 class="signature first" id="load_from_file-class_method">
808
808
 
809
- + (<tt><span class='object_link'><a href="" title="R509::PrivateKey (class)">R509::PrivateKey</a></span></tt>) <strong>load_from_file</strong>(filename, password = nil)
809
+ .<strong>load_from_file</strong>(filename, password = nil) &#x21d2; <tt><span class='object_link'><a href="" title="R509::PrivateKey (class)">R509::PrivateKey</a></span></tt>
810
810
 
811
811
 
812
812
 
@@ -874,8 +874,8 @@ R509::PrivateKey::KNOWN_TYPES.</p>
874
874
  <td>
875
875
  <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 44</span>
876
876
 
877
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_file'>load_from_file</span><span class='lparen'>(</span> <span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
878
- <span class='kw'>return</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>PrivateKey</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:key</span> <span class='op'>=&gt;</span> <span class='const'>IOHelpers</span><span class='period'>.</span><span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:password</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_password'>password</span> <span class='rparen'>)</span>
877
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_from_file'>load_from_file</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
878
+ <span class='const'>R509</span><span class='op'>::</span><span class='const'>PrivateKey</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:key</span> <span class='op'>=&gt;</span> <span class='const'>IOHelpers</span><span class='period'>.</span><span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:password</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
879
879
  <span class='kw'>end</span></pre>
880
880
  </td>
881
881
  </tr>
@@ -891,7 +891,7 @@ R509::PrivateKey::KNOWN_TYPES.</p>
891
891
  <div class="method_details first">
892
892
  <h3 class="signature first" id="bit_length-instance_method">
893
893
 
894
- - (<tt>Integer</tt>) <strong>bit_length</strong>
894
+ #<strong>bit_length</strong> &#x21d2; <tt>Integer</tt>
895
895
 
896
896
 
897
897
 
@@ -931,6 +931,7 @@ R509::PrivateKey::KNOWN_TYPES.</p>
931
931
  <pre class="lines">
932
932
 
933
933
 
934
+ 51
934
935
  52
935
936
  53
936
937
  54
@@ -938,11 +939,10 @@ R509::PrivateKey::KNOWN_TYPES.</p>
938
939
  56
939
940
  57
940
941
  58
941
- 59
942
- 60</pre>
942
+ 59</pre>
943
943
  </td>
944
944
  <td>
945
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 52</span>
945
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 51</span>
946
946
 
947
947
  <span class='kw'>def</span> <span class='id identifier rubyid_bit_length'>bit_length</span>
948
948
  <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rsa?'>rsa?</span>
@@ -961,7 +961,7 @@ R509::PrivateKey::KNOWN_TYPES.</p>
961
961
  <div class="method_details ">
962
962
  <h3 class="signature " id="curve_name-instance_method">
963
963
 
964
- - (<tt>String</tt>) <strong>curve_name</strong>
964
+ #<strong>curve_name</strong> &#x21d2; <tt>String</tt>
965
965
 
966
966
 
967
967
 
@@ -1003,16 +1003,16 @@ key if the key is EC. If not, raises an error.</p>
1003
1003
  <pre class="lines">
1004
1004
 
1005
1005
 
1006
+ 66
1006
1007
  67
1007
1008
  68
1008
1009
  69
1009
1010
  70
1010
1011
  71
1011
- 72
1012
- 73</pre>
1012
+ 72</pre>
1013
1013
  </td>
1014
1014
  <td>
1015
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 67</span>
1015
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 66</span>
1016
1016
 
1017
1017
  <span class='kw'>def</span> <span class='id identifier rubyid_curve_name'>curve_name</span>
1018
1018
  <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ec?'>ec?</span>
@@ -1029,7 +1029,7 @@ key if the key is EC. If not, raises an error.</p>
1029
1029
  <div class="method_details ">
1030
1030
  <h3 class="signature " id="dsa?-instance_method">
1031
1031
 
1032
- - (<tt>Boolean</tt>) <strong>dsa?</strong>
1032
+ #<strong>dsa?</strong> &#x21d2; <tt>Boolean</tt>
1033
1033
 
1034
1034
 
1035
1035
 
@@ -1070,15 +1070,15 @@ key if the key is EC. If not, raises an error.</p>
1070
1070
  <pre class="lines">
1071
1071
 
1072
1072
 
1073
- 187
1074
- 188
1075
- 189</pre>
1073
+ 183
1074
+ 184
1075
+ 185</pre>
1076
1076
  </td>
1077
1077
  <td>
1078
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 187</span>
1078
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 183</span>
1079
1079
 
1080
1080
  <span class='kw'>def</span> <span class='id identifier rubyid_dsa?'>dsa?</span>
1081
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>DSA</span><span class='rparen'>)</span>
1081
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>DSA</span><span class='rparen'>)</span>
1082
1082
  <span class='kw'>end</span></pre>
1083
1083
  </td>
1084
1084
  </tr>
@@ -1088,7 +1088,7 @@ key if the key is EC. If not, raises an error.</p>
1088
1088
  <div class="method_details ">
1089
1089
  <h3 class="signature " id="ec?-instance_method">
1090
1090
 
1091
- - (<tt>Boolean</tt>) <strong>ec?</strong>
1091
+ #<strong>ec?</strong> &#x21d2; <tt>Boolean</tt>
1092
1092
 
1093
1093
 
1094
1094
 
@@ -1129,15 +1129,15 @@ key if the key is EC. If not, raises an error.</p>
1129
1129
  <pre class="lines">
1130
1130
 
1131
1131
 
1132
- 194
1133
- 195
1134
- 196</pre>
1132
+ 190
1133
+ 191
1134
+ 192</pre>
1135
1135
  </td>
1136
1136
  <td>
1137
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 194</span>
1137
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 190</span>
1138
1138
 
1139
1139
  <span class='kw'>def</span> <span class='id identifier rubyid_ec?'>ec?</span>
1140
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='rparen'>)</span>
1140
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='rparen'>)</span>
1141
1141
  <span class='kw'>end</span></pre>
1142
1142
  </td>
1143
1143
  </tr>
@@ -1147,7 +1147,7 @@ key if the key is EC. If not, raises an error.</p>
1147
1147
  <div class="method_details ">
1148
1148
  <h3 class="signature " id="in_hardware?-instance_method">
1149
1149
 
1150
- - (<tt>Boolean</tt>) <strong>in_hardware?</strong>
1150
+ #<strong>in_hardware?</strong> &#x21d2; <tt>Boolean</tt>
1151
1151
 
1152
1152
 
1153
1153
 
@@ -1156,7 +1156,7 @@ key if the key is EC. If not, raises an error.</p>
1156
1156
  </h3><div class="docstring">
1157
1157
  <div class="discussion">
1158
1158
 
1159
- <p>Whether the key is resident in hardware or not</p>
1159
+ <p>Returns whether the key is resident in hardware or not</p>
1160
1160
 
1161
1161
 
1162
1162
  </div>
@@ -1188,19 +1188,19 @@ key if the key is EC. If not, raises an error.</p>
1188
1188
  <pre class="lines">
1189
1189
 
1190
1190
 
1191
+ 84
1191
1192
  85
1192
1193
  86
1193
1194
  87
1194
1195
  88
1195
1196
  89
1196
- 90
1197
- 91</pre>
1197
+ 90</pre>
1198
1198
  </td>
1199
1199
  <td>
1200
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 85</span>
1200
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 84</span>
1201
1201
 
1202
1202
  <span class='kw'>def</span> <span class='id identifier rubyid_in_hardware?'>in_hardware?</span>
1203
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='ivar'>@engine</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1203
+ <span class='kw'>if</span> <span class='ivar'>@engine</span>
1204
1204
  <span class='kw'>true</span>
1205
1205
  <span class='kw'>else</span>
1206
1206
  <span class='kw'>false</span>
@@ -1214,7 +1214,7 @@ key if the key is EC. If not, raises an error.</p>
1214
1214
  <div class="method_details ">
1215
1215
  <h3 class="signature " id="key-instance_method">
1216
1216
 
1217
- - (<tt>OpenSSL::PKey::RSA</tt>, ...) <strong>key</strong>
1217
+ #<strong>key</strong> &#x21d2; <tt>OpenSSL::PKey::RSA</tt>, ...
1218
1218
 
1219
1219
 
1220
1220
 
@@ -1223,8 +1223,8 @@ key if the key is EC. If not, raises an error.</p>
1223
1223
  </h3><div class="docstring">
1224
1224
  <div class="discussion">
1225
1225
 
1226
- <p>This method may return the PKey object itself or a handle to the private
1227
- key in the HSM (which will not show the private key, just public)</p>
1226
+ <p>Returns this method may return the PKey object itself or a handle to the
1227
+ private key in the HSM (which will not show the private key, just public)</p>
1228
1228
 
1229
1229
 
1230
1230
  </div>
@@ -1257,16 +1257,16 @@ key in the HSM (which will not show the private key, just public)</p>
1257
1257
  <pre class="lines">
1258
1258
 
1259
1259
 
1260
+ 75
1260
1261
  76
1261
1262
  77
1262
1263
  78
1263
1264
  79
1264
1265
  80
1265
- 81
1266
- 82</pre>
1266
+ 81</pre>
1267
1267
  </td>
1268
1268
  <td>
1269
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 76</span>
1269
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 75</span>
1270
1270
 
1271
1271
  <span class='kw'>def</span> <span class='id identifier rubyid_key'>key</span>
1272
1272
  <span class='kw'>if</span> <span class='id identifier rubyid_in_hardware?'>in_hardware?</span>
@@ -1283,7 +1283,7 @@ key in the HSM (which will not show the private key, just public)</p>
1283
1283
  <div class="method_details ">
1284
1284
  <h3 class="signature " id="public_key-instance_method">
1285
1285
 
1286
- - (<tt>OpenSSL::PKey::RSA</tt>, ...) <strong>public_key</strong>
1286
+ #<strong>public_key</strong> &#x21d2; <tt>OpenSSL::PKey::RSA</tt>, ...
1287
1287
 
1288
1288
 
1289
1289
 
@@ -1296,7 +1296,7 @@ key in the HSM (which will not show the private key, just public)</p>
1296
1296
  </h3><div class="docstring">
1297
1297
  <div class="discussion">
1298
1298
 
1299
- <p>Public key</p>
1299
+ <p>Returns public key</p>
1300
1300
 
1301
1301
 
1302
1302
  </div>
@@ -1328,6 +1328,7 @@ key in the HSM (which will not show the private key, just public)</p>
1328
1328
  <pre class="lines">
1329
1329
 
1330
1330
 
1331
+ 93
1331
1332
  94
1332
1333
  95
1333
1334
  96
@@ -1340,11 +1341,10 @@ key in the HSM (which will not show the private key, just public)</p>
1340
1341
  103
1341
1342
  104
1342
1343
  105
1343
- 106
1344
- 107</pre>
1344
+ 106</pre>
1345
1345
  </td>
1346
1346
  <td>
1347
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 94</span>
1347
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 93</span>
1348
1348
 
1349
1349
  <span class='kw'>def</span> <span class='id identifier rubyid_public_key'>public_key</span>
1350
1350
  <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ec?'>ec?</span>
@@ -1354,7 +1354,7 @@ key in the HSM (which will not show the private key, just public)</p>
1354
1354
  </span> <span class='comment'># We have to supply the curve name to the temporary key object or else #public_key= fails
1355
1355
  </span> <span class='id identifier rubyid_curve_name'>curve_name</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_group'>group</span><span class='period'>.</span><span class='id identifier rubyid_curve_name'>curve_name</span>
1356
1356
  <span class='id identifier rubyid_temp_key'>temp_key</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>EC</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_curve_name'>curve_name</span><span class='rparen'>)</span>
1357
- <span class='id identifier rubyid_temp_key'>temp_key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span><span class='op'>=</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
1357
+ <span class='id identifier rubyid_temp_key'>temp_key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
1358
1358
  <span class='id identifier rubyid_temp_key'>temp_key</span>
1359
1359
  <span class='kw'>else</span>
1360
1360
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_public_key'>public_key</span>
@@ -1368,7 +1368,7 @@ key in the HSM (which will not show the private key, just public)</p>
1368
1368
  <div class="method_details ">
1369
1369
  <h3 class="signature " id="rsa?-instance_method">
1370
1370
 
1371
- - (<tt>Boolean</tt>) <strong>rsa?</strong>
1371
+ #<strong>rsa?</strong> &#x21d2; <tt>Boolean</tt>
1372
1372
 
1373
1373
 
1374
1374
 
@@ -1409,15 +1409,15 @@ key in the HSM (which will not show the private key, just public)</p>
1409
1409
  <pre class="lines">
1410
1410
 
1411
1411
 
1412
- 180
1413
- 181
1414
- 182</pre>
1412
+ 176
1413
+ 177
1414
+ 178</pre>
1415
1415
  </td>
1416
1416
  <td>
1417
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 180</span>
1417
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 176</span>
1418
1418
 
1419
1419
  <span class='kw'>def</span> <span class='id identifier rubyid_rsa?'>rsa?</span>
1420
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>RSA</span><span class='rparen'>)</span>
1420
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>RSA</span><span class='rparen'>)</span>
1421
1421
  <span class='kw'>end</span></pre>
1422
1422
  </td>
1423
1423
  </tr>
@@ -1427,7 +1427,7 @@ key in the HSM (which will not show the private key, just public)</p>
1427
1427
  <div class="method_details ">
1428
1428
  <h3 class="signature " id="to_der-instance_method">
1429
1429
 
1430
- - (<tt>String</tt>) <strong>to_der</strong>
1430
+ #<strong>to_der</strong> &#x21d2; <tt>String</tt>
1431
1431
 
1432
1432
 
1433
1433
 
@@ -1468,15 +1468,15 @@ key in the HSM (which will not show the private key, just public)</p>
1468
1468
  <pre class="lines">
1469
1469
 
1470
1470
 
1471
+ 138
1472
+ 139
1471
1473
  140
1472
1474
  141
1473
1475
  142
1474
- 143
1475
- 144
1476
- 145</pre>
1476
+ 143</pre>
1477
1477
  </td>
1478
1478
  <td>
1479
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 140</span>
1479
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 138</span>
1480
1480
 
1481
1481
  <span class='kw'>def</span> <span class='id identifier rubyid_to_der'>to_der</span>
1482
1482
  <span class='kw'>if</span> <span class='id identifier rubyid_in_hardware?'>in_hardware?</span>
@@ -1492,7 +1492,7 @@ key in the HSM (which will not show the private key, just public)</p>
1492
1492
  <div class="method_details ">
1493
1493
  <h3 class="signature " id="to_encrypted_pem-instance_method">
1494
1494
 
1495
- - (<tt>String</tt>) <strong>to_encrypted_pem</strong>(cipher, password)
1495
+ #<strong>to_encrypted_pem</strong>(cipher, password) &#x21d2; <tt>String</tt>
1496
1496
 
1497
1497
 
1498
1498
 
@@ -1572,23 +1572,23 @@ key in the HSM (which will not show the private key, just public)</p>
1572
1572
  <pre class="lines">
1573
1573
 
1574
1574
 
1575
+ 127
1575
1576
  128
1576
1577
  129
1577
1578
  130
1578
1579
  131
1579
1580
  132
1580
- 133
1581
- 134</pre>
1581
+ 133</pre>
1582
1582
  </td>
1583
1583
  <td>
1584
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 128</span>
1584
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 127</span>
1585
1585
 
1586
- <span class='kw'>def</span> <span class='id identifier rubyid_to_encrypted_pem'>to_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span><span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1586
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_encrypted_pem'>to_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1587
1587
  <span class='kw'>if</span> <span class='id identifier rubyid_in_hardware?'>in_hardware?</span>
1588
1588
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>R509Error</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>This method cannot be called when using keys in hardware</span><span class='tstring_end'>&quot;</span></span>
1589
1589
  <span class='kw'>end</span>
1590
1590
  <span class='id identifier rubyid_cipher'>cipher</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>Cipher</span><span class='op'>::</span><span class='const'>Cipher</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='rparen'>)</span>
1591
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_pem'>to_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span><span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1591
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_pem'>to_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1592
1592
  <span class='kw'>end</span></pre>
1593
1593
  </td>
1594
1594
  </tr>
@@ -1598,7 +1598,7 @@ key in the HSM (which will not show the private key, just public)</p>
1598
1598
  <div class="method_details ">
1599
1599
  <h3 class="signature " id="to_pem-instance_method">
1600
1600
 
1601
- - (<tt>String</tt>) <strong>to_pem</strong>
1601
+ #<strong>to_pem</strong> &#x21d2; <tt>String</tt>
1602
1602
 
1603
1603
 
1604
1604
 
@@ -1639,15 +1639,15 @@ key in the HSM (which will not show the private key, just public)</p>
1639
1639
  <pre class="lines">
1640
1640
 
1641
1641
 
1642
+ 113
1642
1643
  114
1643
1644
  115
1644
1645
  116
1645
1646
  117
1646
- 118
1647
- 119</pre>
1647
+ 118</pre>
1648
1648
  </td>
1649
1649
  <td>
1650
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 114</span>
1650
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 113</span>
1651
1651
 
1652
1652
  <span class='kw'>def</span> <span class='id identifier rubyid_to_pem'>to_pem</span>
1653
1653
  <span class='kw'>if</span> <span class='id identifier rubyid_in_hardware?'>in_hardware?</span>
@@ -1663,7 +1663,7 @@ key in the HSM (which will not show the private key, just public)</p>
1663
1663
  <div class="method_details ">
1664
1664
  <h3 class="signature " id="write_der-instance_method">
1665
1665
 
1666
- - (<tt>Object</tt>) <strong>write_der</strong>(filename_or_io)
1666
+ #<strong>write_der</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
1667
1667
 
1668
1668
 
1669
1669
 
@@ -1707,12 +1707,12 @@ an IO-like object.</p>
1707
1707
  <pre class="lines">
1708
1708
 
1709
1709
 
1710
- 172
1711
- 173
1712
- 174</pre>
1710
+ 169
1711
+ 170
1712
+ 171</pre>
1713
1713
  </td>
1714
1714
  <td>
1715
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 172</span>
1715
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 169</span>
1716
1716
 
1717
1717
  <span class='kw'>def</span> <span class='id identifier rubyid_write_der'>write_der</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='rparen'>)</span>
1718
1718
  <span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span><span class='rparen'>)</span>
@@ -1725,7 +1725,7 @@ an IO-like object.</p>
1725
1725
  <div class="method_details ">
1726
1726
  <h3 class="signature " id="write_encrypted_pem-instance_method">
1727
1727
 
1728
- - (<tt>Object</tt>) <strong>write_encrypted_pem</strong>(filename_or_io, cipher, password)
1728
+ #<strong>write_encrypted_pem</strong>(filename_or_io, cipher, password) &#x21d2; <tt>Object</tt>
1729
1729
 
1730
1730
 
1731
1731
 
@@ -1804,15 +1804,15 @@ an IO-like object.</p>
1804
1804
  <pre class="lines">
1805
1805
 
1806
1806
 
1807
- 164
1808
- 165
1809
- 166</pre>
1807
+ 161
1808
+ 162
1809
+ 163</pre>
1810
1810
  </td>
1811
1811
  <td>
1812
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 164</span>
1812
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 161</span>
1813
1813
 
1814
- <span class='kw'>def</span> <span class='id identifier rubyid_write_encrypted_pem'>write_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span><span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1815
- <span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_to_encrypted_pem'>to_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span><span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span><span class='rparen'>)</span>
1814
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_encrypted_pem'>write_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
1815
+ <span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='id identifier rubyid_to_encrypted_pem'>to_encrypted_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_cipher'>cipher</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span><span class='rparen'>)</span>
1816
1816
  <span class='kw'>end</span></pre>
1817
1817
  </td>
1818
1818
  </tr>
@@ -1822,7 +1822,7 @@ an IO-like object.</p>
1822
1822
  <div class="method_details ">
1823
1823
  <h3 class="signature " id="write_pem-instance_method">
1824
1824
 
1825
- - (<tt>Object</tt>) <strong>write_pem</strong>(filename_or_io)
1825
+ #<strong>write_pem</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
1826
1826
 
1827
1827
 
1828
1828
 
@@ -1866,12 +1866,12 @@ an IO-like object.</p>
1866
1866
  <pre class="lines">
1867
1867
 
1868
1868
 
1869
- 151
1870
- 152
1871
- 153</pre>
1869
+ 149
1870
+ 150
1871
+ 151</pre>
1872
1872
  </td>
1873
1873
  <td>
1874
- <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 151</span>
1874
+ <pre class="code"><span class="info file"># File 'lib/r509/private_key.rb', line 149</span>
1875
1875
 
1876
1876
  <span class='kw'>def</span> <span class='id identifier rubyid_write_pem'>write_pem</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='rparen'>)</span>
1877
1877
  <span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='id identifier rubyid_filename_or_io'>filename_or_io</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_pem'>to_pem</span><span class='rparen'>)</span>
@@ -1885,11 +1885,12 @@ an IO-like object.</p>
1885
1885
 
1886
1886
  </div>
1887
1887
 
1888
- <div id="footer">
1889
- Generated on Sun Jan 26 13:37:27 2014 by
1888
+ <div id="footer">
1889
+ Generated on Tue Dec 6 17:27:40 2016 by
1890
1890
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1891
- 0.8.6.1 (ruby-2.0.0).
1891
+ 0.9.5 (ruby-2.4.0).
1892
1892
  </div>
1893
1893
 
1894
+ </div>
1894
1895
  </body>
1895
1896
  </html>