r509 0.10.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.mdown +2 -2
- data/Rakefile +2 -3
- data/bin/r509 +77 -80
- data/bin/r509-parse +4 -4
- data/doc/R509.html +60 -60
- data/doc/R509/ASN1.html +158 -48
- data/doc/R509/ASN1/GeneralName.html +157 -154
- data/doc/R509/ASN1/GeneralNames.html +246 -237
- data/doc/R509/CRL.html +41 -39
- data/doc/R509/CRL/Administrator.html +105 -100
- data/doc/R509/CRL/FileReaderWriter.html +146 -98
- data/doc/R509/CRL/ReaderWriter.html +57 -54
- data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
- data/doc/R509/CRL/SignedList.html +83 -80
- data/doc/R509/CSR.html +184 -162
- data/doc/R509/Cert.html +271 -269
- data/doc/R509/Cert/Extensions.html +62 -63
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
- data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
- data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
- data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
- data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
- data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
- data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
- data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
- data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
- data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
- data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
- data/doc/R509/CertificateAuthority.html +39 -37
- data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
- data/doc/R509/CertificateAuthority/Signer.html +277 -60
- data/doc/R509/Config.html +40 -38
- data/doc/R509/Config/CAConfig.html +255 -188
- data/doc/R509/Config/CAConfigPool.html +64 -61
- data/doc/R509/Config/CertProfile.html +119 -116
- data/doc/R509/Config/SubjectItemPolicy.html +94 -93
- data/doc/R509/Engine.html +60 -56
- data/doc/R509/Helpers.html +99 -96
- data/doc/R509/MessageDigest.html +69 -68
- data/doc/R509/NameSanitizer.html +51 -48
- data/doc/R509/OCSP.html +39 -37
- data/doc/R509/OCSP/Request.html +39 -37
- data/doc/R509/OCSP/Request/Nonce.html +67 -67
- data/doc/R509/OCSP/Response.html +93 -90
- data/doc/R509/OIDMapper.html +48 -46
- data/doc/R509/PrivateKey.html +170 -169
- data/doc/R509/R509Error.html +45 -42
- data/doc/R509/SPKI.html +99 -89
- data/doc/R509/Subject.html +86 -83
- data/doc/R509/Validity.html +57 -57
- data/doc/R509/Validity/Checker.html +63 -93
- data/doc/R509/Validity/DefaultChecker.html +58 -55
- data/doc/R509/Validity/DefaultWriter.html +62 -59
- data/doc/R509/Validity/Status.html +77 -74
- data/doc/R509/Validity/Writer.html +75 -123
- data/doc/_index.html +37 -31
- data/doc/class_list.html +25 -27
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +221 -78
- data/doc/file.CONTRIBUTING.html +29 -30
- data/doc/file.LICENSE.html +29 -30
- data/doc/file.README.html +31 -32
- data/doc/file.YAML.html +33 -34
- data/doc/file.r509.html +39 -48
- data/doc/file_list.html +39 -30
- data/doc/frames.html +10 -21
- data/doc/index.html +31 -32
- data/doc/js/app.js +100 -71
- data/doc/js/full_list.js +168 -130
- data/doc/method_list.html +1788 -1119
- data/doc/top-level-namespace.html +45 -49
- data/lib/r509.rb +21 -7
- data/lib/r509/asn1.rb +45 -32
- data/lib/r509/cert.rb +45 -51
- data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
- data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
- data/lib/r509/cert/extensions/base.rb +22 -23
- data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
- data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
- data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
- data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
- data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
- data/lib/r509/cert/extensions/key_usage.rb +5 -5
- data/lib/r509/cert/extensions/name_constraints.rb +16 -16
- data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
- data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
- data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
- data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
- data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
- data/lib/r509/certificate_authority/options_builder.rb +19 -21
- data/lib/r509/certificate_authority/signer.rb +26 -27
- data/lib/r509/config.rb +1 -0
- data/lib/r509/config/ca_config.rb +70 -75
- data/lib/r509/config/cert_profile.rb +9 -8
- data/lib/r509/config/subject_item_policy.rb +25 -28
- data/lib/r509/crl/administrator.rb +19 -20
- data/lib/r509/crl/reader_writer.rb +10 -8
- data/lib/r509/crl/signed_list.rb +4 -4
- data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
- data/lib/r509/csr.rb +54 -60
- data/lib/r509/ec-hack.rb +3 -2
- data/lib/r509/engine.rb +5 -6
- data/lib/r509/exceptions.rb +1 -1
- data/lib/r509/helpers.rb +11 -14
- data/lib/r509/io_helpers.rb +7 -7
- data/lib/r509/message_digest.rb +5 -6
- data/lib/r509/ocsp.rb +11 -13
- data/lib/r509/oid_mapper.rb +2 -2
- data/lib/r509/private_key.rb +28 -32
- data/lib/r509/spki.rb +17 -20
- data/lib/r509/subject.rb +26 -27
- data/lib/r509/trollop.rb +1 -0
- data/lib/r509/validity.rb +30 -21
- data/lib/r509/version.rb +4 -2
- data/r509.yaml +9 -17
- data/spec/asn1_spec.rb +145 -146
- data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
- data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
- data/spec/cert/extensions/base_spec.rb +38 -34
- data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
- data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
- data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
- data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
- data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
- data/spec/cert/extensions/key_usage_spec.rb +44 -39
- data/spec/cert/extensions/name_constraints_spec.rb +83 -83
- data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
- data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
- data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
- data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
- data/spec/cert_spec.rb +105 -101
- data/spec/certificate_authority/options_builder_spec.rb +90 -90
- data/spec/certificate_authority/signer_spec.rb +41 -41
- data/spec/config/ca_config_spec.rb +169 -119
- data/spec/config/cert_profile_spec.rb +33 -33
- data/spec/config/subject_item_policy_spec.rb +22 -22
- data/spec/crl/administrator_spec.rb +65 -65
- data/spec/crl/reader_writer_spec.rb +20 -19
- data/spec/crl/signed_list_spec.rb +26 -26
- data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
- data/spec/csr_spec.rb +149 -145
- data/spec/engine_spec.rb +14 -14
- data/spec/fixtures.rb +56 -39
- data/spec/fixtures/crl_list.sql +13 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +6 -6
- data/spec/message_digest_spec.rb +43 -43
- data/spec/ocsp_spec.rb +25 -25
- data/spec/oid_mapper_spec.rb +18 -19
- data/spec/private_key_spec.rb +79 -81
- data/spec/r509_spec.rb +16 -16
- data/spec/spec_helper.rb +3 -3
- data/spec/spki_spec.rb +94 -94
- data/spec/subject_spec.rb +107 -107
- data/spec/validity_spec.rb +25 -25
- metadata +113 -111
- metadata.gz.sig +0 -0
data/doc/R509/OIDMapper.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
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
|
-
— Documentation by YARD 0.
|
9
|
+
— 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
|
-
|
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
|
32
|
-
<
|
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> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
|
36
41
|
»
|
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
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
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
|
-
|
82
|
-
<
|
81
|
+
<dl>
|
82
|
+
<dt>Defined in:</dt>
|
83
|
+
<dd>lib/r509/oid_mapper.rb</dd>
|
84
|
+
</dl>
|
83
85
|
|
84
|
-
</
|
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
|
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)"
|
117
|
+
<a href="#batch_register-class_method" title="batch_register (class method)">.<strong>batch_register</strong>(oids) ⇒ 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)"
|
141
|
+
<a href="#register-class_method" title="register (class method)">.<strong>register</strong>(oid, short_name, long_name = nil) ⇒ 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)"
|
165
|
+
<a href="#register_from_yaml-class_method" title="register_from_yaml (class method)">.<strong>register_from_yaml</strong>(name, yaml_data) ⇒ 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
|
-
|
198
|
+
.<strong>batch_register</strong>(oids) ⇒ <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
|
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
|
-
|
275
|
+
.<strong>register</strong>(oid, short_name, long_name = nil) ⇒ <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
|
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
|
-
|
394
|
+
.<strong>register_from_yaml</strong>(name, yaml_data) ⇒ <tt>Object</tt>
|
394
395
|
|
395
396
|
|
396
397
|
|
@@ -482,11 +483,12 @@
|
|
482
483
|
|
483
484
|
</div>
|
484
485
|
|
485
|
-
|
486
|
-
Generated on
|
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.
|
489
|
+
0.9.5 (ruby-2.4.0).
|
489
490
|
</div>
|
490
491
|
|
492
|
+
</div>
|
491
493
|
</body>
|
492
494
|
</html>
|
data/doc/R509/PrivateKey.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
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
|
-
— Documentation by YARD 0.
|
9
|
+
— 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
|
-
|
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
|
32
|
-
<
|
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> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
|
36
41
|
»
|
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
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
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
|
-
|
75
|
-
<
|
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
|
-
|
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
|
-
|
97
|
-
<
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/r509/private_key.rb</dd>
|
100
|
+
</dl>
|
98
101
|
|
99
|
-
</
|
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
|
-
|
117
|
-
|
118
|
-
<
|
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
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
132
|
+
</dt>
|
133
|
+
<dd><pre class="code"><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RSA</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>DSA</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>EC</span><span class='tstring_end'>"</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
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
148
|
+
</dt>
|
149
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RSA</span><span class='tstring_end'>"</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
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
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
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
180
|
+
</dt>
|
181
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>secp384r1</span><span class='tstring_end'>"</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
|
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)"
|
202
|
+
<a href="#load_from_file-class_method" title="load_from_file (class method)">.<strong>load_from_file</strong>(filename, password = nil) ⇒ 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
|
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)"
|
235
|
+
<a href="#bit_length-instance_method" title="#bit_length (instance method)">#<strong>bit_length</strong> ⇒ 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)"
|
261
|
+
<a href="#curve_name-instance_method" title="#curve_name (instance method)">#<strong>curve_name</strong> ⇒ 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)"
|
286
|
+
<a href="#dsa%3F-instance_method" title="#dsa? (instance method)">#<strong>dsa?</strong> ⇒ 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)"
|
310
|
+
<a href="#ec%3F-instance_method" title="#ec? (instance method)">#<strong>ec?</strong> ⇒ 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)"
|
334
|
+
<a href="#in_hardware%3F-instance_method" title="#in_hardware? (instance method)">#<strong>in_hardware?</strong> ⇒ 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)"
|
358
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ 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)"
|
384
|
+
<a href="#key-instance_method" title="#key (instance method)">#<strong>key</strong> ⇒ 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)"
|
409
|
+
<a href="#public_key-instance_method" title="#public_key (instance method)">#<strong>public_key</strong> ⇒ 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)"
|
435
|
+
<a href="#rsa%3F-instance_method" title="#rsa? (instance method)">#<strong>rsa?</strong> ⇒ 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)"
|
459
|
+
<a href="#to_der-instance_method" title="#to_der (instance method)">#<strong>to_der</strong> ⇒ 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)"
|
483
|
+
<a href="#to_encrypted_pem-instance_method" title="#to_encrypted_pem (instance method)">#<strong>to_encrypted_pem</strong>(cipher, password) ⇒ 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)"
|
507
|
+
<a href="#to_pem-instance_method" title="#to_pem (instance method)">#<strong>to_pem</strong> ⇒ 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)"
|
531
|
+
<a href="#write_der-instance_method" title="#write_der (instance method)">#<strong>write_der</strong>(filename_or_io) ⇒ 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)"
|
555
|
+
<a href="#write_encrypted_pem-instance_method" title="#write_encrypted_pem (instance method)">#<strong>write_encrypted_pem</strong>(filename_or_io, cipher, password) ⇒ 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)"
|
579
|
+
<a href="#write_pem-instance_method" title="#write_pem (instance method)">#<strong>write_pem</strong>(filename_or_io) ⇒ 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
|
-
|
611
|
+
#<strong>initialize</strong>(opts = {}) ⇒ <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>
|
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
|
783
|
-
<span class='kw'>
|
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'>'</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>'</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
|
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
|
-
|
809
|
+
.<strong>load_from_file</strong>(filename, password = nil) ⇒ <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
|
878
|
-
<span class='
|
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'>=></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'>=></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
|
-
|
894
|
+
#<strong>bit_length</strong> ⇒ <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
|
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
|
-
|
964
|
+
#<strong>curve_name</strong> ⇒ <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
|
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
|
-
|
1032
|
+
#<strong>dsa?</strong> ⇒ <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
|
-
|
1074
|
-
|
1075
|
-
|
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
|
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
|
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
|
-
|
1091
|
+
#<strong>ec?</strong> ⇒ <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
|
-
|
1133
|
-
|
1134
|
-
|
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
|
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
|
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
|
-
|
1150
|
+
#<strong>in_hardware?</strong> ⇒ <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>
|
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
|
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='
|
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
|
-
|
1217
|
+
#<strong>key</strong> ⇒ <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>
|
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
|
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
|
-
|
1286
|
+
#<strong>public_key</strong> ⇒ <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>
|
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
|
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
|
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
|
-
|
1371
|
+
#<strong>rsa?</strong> ⇒ <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
|
-
|
1413
|
-
|
1414
|
-
|
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
|
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
|
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
|
-
|
1430
|
+
#<strong>to_der</strong> ⇒ <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
|
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
|
-
|
1495
|
+
#<strong>to_encrypted_pem</strong>(cipher, password) ⇒ <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
|
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
|
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'>"</span><span class='tstring_content'>This method cannot be called when using keys in hardware</span><span class='tstring_end'>"</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
|
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
|
-
|
1601
|
+
#<strong>to_pem</strong> ⇒ <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
|
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
|
-
|
1666
|
+
#<strong>write_der</strong>(filename_or_io) ⇒ <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
|
-
|
1711
|
-
|
1712
|
-
|
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
|
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
|
-
|
1728
|
+
#<strong>write_encrypted_pem</strong>(filename_or_io, cipher, password) ⇒ <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
|
-
|
1808
|
-
|
1809
|
-
|
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
|
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
|
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
|
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
|
-
|
1825
|
+
#<strong>write_pem</strong>(filename_or_io) ⇒ <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
|
-
|
1870
|
-
|
1871
|
-
|
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
|
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
|
-
|
1889
|
-
Generated on
|
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.
|
1891
|
+
0.9.5 (ruby-2.4.0).
|
1892
1892
|
</div>
|
1893
1893
|
|
1894
|
+
</div>
|
1894
1895
|
</body>
|
1895
1896
|
</html>
|