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
@@ -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::ASN1::GeneralNames
|
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::ASN1::GeneralNames";
|
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 (G)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> » <span class='title'><span class='object_link'><a href="../ASN1.html" title="R509::ASN1 (module)">ASN1</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">GeneralNames</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::ASN1::GeneralNames
|
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,25 +81,30 @@
|
|
83
81
|
</ul>
|
84
82
|
<a href="#" class="inheritanceTree">show all</a>
|
85
83
|
|
86
|
-
|
87
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
88
86
|
|
87
|
+
|
89
88
|
|
90
|
-
|
91
89
|
|
92
|
-
|
93
|
-
<dt class="r2">Includes:</dt>
|
94
|
-
<dd class="r2"><span class='object_link'><a href="../Cert/Extensions/ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">Cert::Extensions::ValidationMixin</a></span></dd>
|
95
|
-
|
96
|
-
|
97
90
|
|
98
91
|
|
92
|
+
<dl>
|
93
|
+
<dt>Includes:</dt>
|
94
|
+
<dd><span class='object_link'><a href="../Cert/Extensions/ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">Cert::Extensions::ValidationMixin</a></span></dd>
|
95
|
+
</dl>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
99
101
|
|
100
|
-
|
101
|
-
<
|
102
|
+
<dl>
|
103
|
+
<dt>Defined in:</dt>
|
104
|
+
<dd>lib/r509/asn1.rb</dd>
|
105
|
+
</dl>
|
102
106
|
|
103
|
-
</
|
104
|
-
<div class="clear"></div>
|
107
|
+
</div>
|
105
108
|
|
106
109
|
<h2>Overview</h2><div class="docstring">
|
107
110
|
<div class="discussion">
|
@@ -119,13 +122,49 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
119
122
|
|
120
123
|
|
121
124
|
|
125
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#ordered_names-instance_method" title="#ordered_names (instance method)">#<strong>ordered_names</strong> ⇒ Object </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
(also: #names)
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="note title readonly">readonly</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="summary_desc"><div class='inline'>
|
153
|
+
<p>Returns the value of attribute ordered_names.</p>
|
154
|
+
</div></span>
|
155
|
+
|
156
|
+
</li>
|
157
|
+
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
|
122
161
|
|
123
162
|
|
124
163
|
|
125
164
|
|
126
165
|
<h2>
|
127
166
|
Instance Method Summary
|
128
|
-
<small
|
167
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
129
168
|
</h2>
|
130
169
|
|
131
170
|
<ul class="summary">
|
@@ -133,7 +172,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
133
172
|
<li class="public ">
|
134
173
|
<span class="summary_signature">
|
135
174
|
|
136
|
-
<a href="#add_item-instance_method" title="#add_item (instance method)"
|
175
|
+
<a href="#add_item-instance_method" title="#add_item (instance method)">#<strong>add_item</strong>(asn) ⇒ Object </a>
|
137
176
|
|
138
177
|
|
139
178
|
|
@@ -155,7 +194,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
155
194
|
<li class="public ">
|
156
195
|
<span class="summary_signature">
|
157
196
|
|
158
|
-
<a href="#create_item-instance_method" title="#create_item (instance method)"
|
197
|
+
<a href="#create_item-instance_method" title="#create_item (instance method)">#<strong>create_item</strong>(hash) ⇒ Object </a>
|
159
198
|
|
160
199
|
|
161
200
|
|
@@ -177,7 +216,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
177
216
|
<li class="public ">
|
178
217
|
<span class="summary_signature">
|
179
218
|
|
180
|
-
<a href="#directory_names-instance_method" title="#directory_names (instance method)"
|
219
|
+
<a href="#directory_names-instance_method" title="#directory_names (instance method)">#<strong>directory_names</strong> ⇒ Array </a>
|
181
220
|
|
182
221
|
|
183
222
|
|
@@ -203,7 +242,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
203
242
|
<li class="public ">
|
204
243
|
<span class="summary_signature">
|
205
244
|
|
206
|
-
<a href="#dns_names-instance_method" title="#dns_names (instance method)"
|
245
|
+
<a href="#dns_names-instance_method" title="#dns_names (instance method)">#<strong>dns_names</strong> ⇒ Array </a>
|
207
246
|
|
208
247
|
|
209
248
|
|
@@ -227,7 +266,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
227
266
|
<li class="public ">
|
228
267
|
<span class="summary_signature">
|
229
268
|
|
230
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
269
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(data = nil) ⇒ GeneralNames </a>
|
231
270
|
|
232
271
|
|
233
272
|
|
@@ -253,7 +292,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
253
292
|
<li class="public ">
|
254
293
|
<span class="summary_signature">
|
255
294
|
|
256
|
-
<a href="#ip_addresses-instance_method" title="#ip_addresses (instance method)"
|
295
|
+
<a href="#ip_addresses-instance_method" title="#ip_addresses (instance method)">#<strong>ip_addresses</strong> ⇒ Array </a>
|
257
296
|
|
258
297
|
|
259
298
|
|
@@ -279,31 +318,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
279
318
|
<li class="public ">
|
280
319
|
<span class="summary_signature">
|
281
320
|
|
282
|
-
<a href="#
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
</span>
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
<span class="summary_desc"><div class='inline'>
|
297
|
-
<p>order found in the extension.</p>
|
298
|
-
</div></span>
|
299
|
-
|
300
|
-
</li>
|
301
|
-
|
302
|
-
|
303
|
-
<li class="public ">
|
304
|
-
<span class="summary_signature">
|
305
|
-
|
306
|
-
<a href="#rfc_822_names-instance_method" title="#rfc_822_names (instance method)">- (Array) <strong>rfc_822_names</strong> </a>
|
321
|
+
<a href="#rfc_822_names-instance_method" title="#rfc_822_names (instance method)">#<strong>rfc_822_names</strong> ⇒ Array </a>
|
307
322
|
|
308
323
|
|
309
324
|
|
@@ -329,7 +344,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
329
344
|
<li class="public ">
|
330
345
|
<span class="summary_signature">
|
331
346
|
|
332
|
-
<a href="#serialize_names-instance_method" title="#serialize_names (instance method)"
|
347
|
+
<a href="#serialize_names-instance_method" title="#serialize_names (instance method)">#<strong>serialize_names</strong> ⇒ Array </a>
|
333
348
|
|
334
349
|
|
335
350
|
|
@@ -353,7 +368,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
353
368
|
<li class="public ">
|
354
369
|
<span class="summary_signature">
|
355
370
|
|
356
|
-
<a href="#to_h-instance_method" title="#to_h (instance method)"
|
371
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
357
372
|
|
358
373
|
|
359
374
|
|
@@ -375,7 +390,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
375
390
|
<li class="public ">
|
376
391
|
<span class="summary_signature">
|
377
392
|
|
378
|
-
<a href="#uniform_resource_identifiers-instance_method" title="#uniform_resource_identifiers (instance method)"
|
393
|
+
<a href="#uniform_resource_identifiers-instance_method" title="#uniform_resource_identifiers (instance method)">#<strong>uniform_resource_identifiers</strong> ⇒ Array </a>
|
379
394
|
|
380
395
|
|
381
396
|
|
@@ -409,7 +424,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
409
424
|
<div class="method_details first">
|
410
425
|
<h3 class="signature first" id="initialize-instance_method">
|
411
426
|
|
412
|
-
|
427
|
+
#<strong>initialize</strong>(data = nil) ⇒ <tt><span class='object_link'><a href="" title="R509::ASN1::GeneralNames (class)">GeneralNames</a></span></tt>
|
413
428
|
|
414
429
|
|
415
430
|
|
@@ -418,7 +433,7 @@ in SubjectAlternativeName, AuthorityInfoAccess, CRLDistributionPoints, etc</p>
|
|
418
433
|
</h3><div class="docstring">
|
419
434
|
<div class="discussion">
|
420
435
|
|
421
|
-
<p>
|
436
|
+
<p>Returns a new instance of GeneralNames</p>
|
422
437
|
|
423
438
|
|
424
439
|
</div>
|
@@ -455,22 +470,6 @@ existing R509::ASN1::GeneralNames object</p>
|
|
455
470
|
<pre class="lines">
|
456
471
|
|
457
472
|
|
458
|
-
235
|
459
|
-
236
|
460
|
-
237
|
461
|
-
238
|
462
|
-
239
|
463
|
-
240
|
464
|
-
241
|
465
|
-
242
|
466
|
-
243
|
467
|
-
244
|
468
|
-
245
|
469
|
-
246
|
470
|
-
247
|
471
|
-
248
|
472
|
-
249
|
473
|
-
250
|
474
473
|
251
|
475
474
|
252
|
476
475
|
253
|
@@ -478,12 +477,28 @@ existing R509::ASN1::GeneralNames object</p>
|
|
478
477
|
255
|
479
478
|
256
|
480
479
|
257
|
481
|
-
258
|
480
|
+
258
|
481
|
+
259
|
482
|
+
260
|
483
|
+
261
|
484
|
+
262
|
485
|
+
263
|
486
|
+
264
|
487
|
+
265
|
488
|
+
266
|
489
|
+
267
|
490
|
+
268
|
491
|
+
269
|
492
|
+
270
|
493
|
+
271
|
494
|
+
272
|
495
|
+
273
|
496
|
+
274</pre>
|
482
497
|
</td>
|
483
498
|
<td>
|
484
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
499
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 251</span>
|
485
500
|
|
486
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span
|
501
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
487
502
|
<span class='ivar'>@types</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
488
503
|
<span class='symbol'>:otherName</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='comment'># unimplemented
|
489
504
|
</span> <span class='symbol'>:rfc822Name</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
@@ -496,8 +511,8 @@ existing R509::ASN1::GeneralNames object</p>
|
|
496
511
|
<span class='symbol'>:registeredID</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='comment'># unimplemented
|
497
512
|
</span> <span class='rbrace'>}</span>
|
498
513
|
<span class='ivar'>@ordered_names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
499
|
-
<span class='kw'>
|
500
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier
|
514
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
515
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rparen'>)</span>
|
501
516
|
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='id identifier rubyid_add_item'>add_item</span><span class='lparen'>(</span><span class='id identifier rubyid_n'>n</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
502
517
|
<span class='kw'>else</span>
|
503
518
|
<span class='id identifier rubyid_validate_general_name_hash_array'>validate_general_name_hash_array</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
@@ -514,6 +529,58 @@ existing R509::ASN1::GeneralNames object</p>
|
|
514
529
|
|
515
530
|
</div>
|
516
531
|
|
532
|
+
<div id="instance_attr_details" class="attr_details">
|
533
|
+
<h2>Instance Attribute Details</h2>
|
534
|
+
|
535
|
+
|
536
|
+
<span id=""></span>
|
537
|
+
<div class="method_details first">
|
538
|
+
<h3 class="signature first" id="ordered_names-instance_method">
|
539
|
+
|
540
|
+
#<strong>ordered_names</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
<span class="aliases">Also known as:
|
545
|
+
<span class="names"><span id='names-instance_method'>names</span></span>
|
546
|
+
</span>
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
</h3><div class="docstring">
|
551
|
+
<div class="discussion">
|
552
|
+
|
553
|
+
<p>Returns the value of attribute ordered_names</p>
|
554
|
+
|
555
|
+
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
<div class="tags">
|
559
|
+
|
560
|
+
|
561
|
+
</div><table class="source_code">
|
562
|
+
<tr>
|
563
|
+
<td>
|
564
|
+
<pre class="lines">
|
565
|
+
|
566
|
+
|
567
|
+
248
|
568
|
+
249
|
569
|
+
250</pre>
|
570
|
+
</td>
|
571
|
+
<td>
|
572
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 248</span>
|
573
|
+
|
574
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ordered_names'>ordered_names</span>
|
575
|
+
<span class='ivar'>@ordered_names</span>
|
576
|
+
<span class='kw'>end</span></pre>
|
577
|
+
</td>
|
578
|
+
</tr>
|
579
|
+
</table>
|
580
|
+
</div>
|
581
|
+
|
582
|
+
</div>
|
583
|
+
|
517
584
|
|
518
585
|
<div id="instance_method_details" class="method_details_list">
|
519
586
|
<h2>Instance Method Details</h2>
|
@@ -522,7 +589,7 @@ existing R509::ASN1::GeneralNames object</p>
|
|
522
589
|
<div class="method_details first">
|
523
590
|
<h3 class="signature first" id="add_item-instance_method">
|
524
591
|
|
525
|
-
|
592
|
+
#<strong>add_item</strong>(asn) ⇒ <tt>Object</tt>
|
526
593
|
|
527
594
|
|
528
595
|
|
@@ -563,24 +630,24 @@ existing R509::ASN1::GeneralNames object</p>
|
|
563
630
|
<pre class="lines">
|
564
631
|
|
565
632
|
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
633
|
+
277
|
634
|
+
278
|
635
|
+
279
|
636
|
+
280
|
637
|
+
281
|
638
|
+
282
|
639
|
+
283
|
640
|
+
284
|
641
|
+
285
|
642
|
+
286
|
643
|
+
287</pre>
|
577
644
|
</td>
|
578
645
|
<td>
|
579
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
646
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 277</span>
|
580
647
|
|
581
648
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_item'>add_item</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
|
582
649
|
<span class='comment'># map general names into our hash of arrays
|
583
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier
|
650
|
+
</span> <span class='kw'>if</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>GeneralName</span><span class='rparen'>)</span>
|
584
651
|
<span class='ivar'>@ordered_names</span> <span class='op'><<</span> <span class='id identifier rubyid_asn'>asn</span>
|
585
652
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span> <span class='op'><<</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
586
653
|
<span class='kw'>else</span>
|
@@ -597,7 +664,7 @@ existing R509::ASN1::GeneralNames object</p>
|
|
597
664
|
<div class="method_details ">
|
598
665
|
<h3 class="signature " id="create_item-instance_method">
|
599
666
|
|
600
|
-
|
667
|
+
#<strong>create_item</strong>(hash) ⇒ <tt>Object</tt>
|
601
668
|
|
602
669
|
|
603
670
|
|
@@ -639,19 +706,19 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
639
706
|
<pre class="lines">
|
640
707
|
|
641
708
|
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
709
|
+
291
|
710
|
+
292
|
711
|
+
293
|
712
|
+
294
|
713
|
+
295
|
714
|
+
296
|
715
|
+
297</pre>
|
649
716
|
</td>
|
650
717
|
<td>
|
651
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
718
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 291</span>
|
652
719
|
|
653
720
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
654
|
-
<span class='kw'>if</span> <span class='
|
721
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:has_key?</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:tag</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:type</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:value</span><span class='rparen'>)</span>
|
655
722
|
<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 be a hash with (:tag or :type) and :value nodes</span><span class='tstring_end'>"</span></span>
|
656
723
|
<span class='kw'>end</span>
|
657
724
|
<span class='id identifier rubyid_gn'>gn</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>GeneralName</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:tag</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:type</span> <span class='op'>=></span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -665,7 +732,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
665
732
|
<div class="method_details ">
|
666
733
|
<h3 class="signature " id="directory_names-instance_method">
|
667
734
|
|
668
|
-
|
735
|
+
#<strong>directory_names</strong> ⇒ <tt>Array</tt>
|
669
736
|
|
670
737
|
|
671
738
|
|
@@ -678,7 +745,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
678
745
|
</h3><div class="docstring">
|
679
746
|
<div class="discussion">
|
680
747
|
|
681
|
-
<p>Array of directoryNames (R509::Subject objects)</p>
|
748
|
+
<p>Returns Array of directoryNames (R509::Subject objects)</p>
|
682
749
|
|
683
750
|
|
684
751
|
</div>
|
@@ -710,12 +777,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
710
777
|
<pre class="lines">
|
711
778
|
|
712
779
|
|
713
|
-
|
714
|
-
|
715
|
-
|
780
|
+
332
|
781
|
+
333
|
782
|
+
334</pre>
|
716
783
|
</td>
|
717
784
|
<td>
|
718
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
785
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 332</span>
|
719
786
|
|
720
787
|
<span class='kw'>def</span> <span class='id identifier rubyid_directory_names'>directory_names</span>
|
721
788
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='symbol'>:directoryName</span><span class='rbracket'>]</span>
|
@@ -728,7 +795,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
728
795
|
<div class="method_details ">
|
729
796
|
<h3 class="signature " id="dns_names-instance_method">
|
730
797
|
|
731
|
-
|
798
|
+
#<strong>dns_names</strong> ⇒ <tt>Array</tt>
|
732
799
|
|
733
800
|
|
734
801
|
|
@@ -737,7 +804,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
737
804
|
</h3><div class="docstring">
|
738
805
|
<div class="discussion">
|
739
806
|
|
740
|
-
<p>Array of dnsName strings</p>
|
807
|
+
<p>Returns Array of dnsName strings</p>
|
741
808
|
|
742
809
|
|
743
810
|
</div>
|
@@ -769,12 +836,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
769
836
|
<pre class="lines">
|
770
837
|
|
771
838
|
|
772
|
-
|
773
|
-
|
774
|
-
|
839
|
+
315
|
840
|
+
316
|
841
|
+
317</pre>
|
775
842
|
</td>
|
776
843
|
<td>
|
777
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
844
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 315</span>
|
778
845
|
|
779
846
|
<span class='kw'>def</span> <span class='id identifier rubyid_dns_names'>dns_names</span>
|
780
847
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='symbol'>:dNSName</span><span class='rbracket'>]</span>
|
@@ -787,7 +854,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
787
854
|
<div class="method_details ">
|
788
855
|
<h3 class="signature " id="ip_addresses-instance_method">
|
789
856
|
|
790
|
-
|
857
|
+
#<strong>ip_addresses</strong> ⇒ <tt>Array</tt>
|
791
858
|
|
792
859
|
|
793
860
|
|
@@ -800,7 +867,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
800
867
|
</h3><div class="docstring">
|
801
868
|
<div class="discussion">
|
802
869
|
|
803
|
-
<p>Array of IP address strings</p>
|
870
|
+
<p>Returns Array of IP address strings</p>
|
804
871
|
|
805
872
|
|
806
873
|
</div>
|
@@ -832,12 +899,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
832
899
|
<pre class="lines">
|
833
900
|
|
834
901
|
|
835
|
-
|
836
|
-
|
837
|
-
|
902
|
+
326
|
903
|
+
327
|
904
|
+
328</pre>
|
838
905
|
</td>
|
839
906
|
<td>
|
840
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
907
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 326</span>
|
841
908
|
|
842
909
|
<span class='kw'>def</span> <span class='id identifier rubyid_ip_addresses'>ip_addresses</span>
|
843
910
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='symbol'>:iPAddress</span><span class='rbracket'>]</span>
|
@@ -845,71 +912,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
845
912
|
</td>
|
846
913
|
</tr>
|
847
914
|
</table>
|
848
|
-
</div>
|
849
|
-
|
850
|
-
<div class="method_details ">
|
851
|
-
<h3 class="signature " id="names-instance_method">
|
852
|
-
|
853
|
-
- (<tt>Array</tt>) <strong>names</strong>
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
</h3><div class="docstring">
|
860
|
-
<div class="discussion">
|
861
|
-
|
862
|
-
<p>order found in the extension</p>
|
863
|
-
|
864
|
-
|
865
|
-
</div>
|
866
|
-
</div>
|
867
|
-
<div class="tags">
|
868
|
-
|
869
|
-
<p class="tag_title">Returns:</p>
|
870
|
-
<ul class="return">
|
871
|
-
|
872
|
-
<li>
|
873
|
-
|
874
|
-
|
875
|
-
<span class='type'>(<tt>Array</tt>)</span>
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
—
|
880
|
-
<div class='inline'>
|
881
|
-
<p>array of GeneralName objects</p>
|
882
|
-
</div>
|
883
|
-
|
884
|
-
</li>
|
885
|
-
|
886
|
-
</ul>
|
887
|
-
|
888
|
-
</div><table class="source_code">
|
889
|
-
<tr>
|
890
|
-
<td>
|
891
|
-
<pre class="lines">
|
892
|
-
|
893
|
-
|
894
|
-
290
|
895
|
-
291
|
896
|
-
292</pre>
|
897
|
-
</td>
|
898
|
-
<td>
|
899
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 290</span>
|
900
|
-
|
901
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_names'>names</span>
|
902
|
-
<span class='ivar'>@ordered_names</span>
|
903
|
-
<span class='kw'>end</span></pre>
|
904
|
-
</td>
|
905
|
-
</tr>
|
906
|
-
</table>
|
907
915
|
</div>
|
908
916
|
|
909
917
|
<div class="method_details ">
|
910
918
|
<h3 class="signature " id="rfc_822_names-instance_method">
|
911
919
|
|
912
|
-
|
920
|
+
#<strong>rfc_822_names</strong> ⇒ <tt>Array</tt>
|
913
921
|
|
914
922
|
|
915
923
|
|
@@ -922,7 +930,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
922
930
|
</h3><div class="docstring">
|
923
931
|
<div class="discussion">
|
924
932
|
|
925
|
-
<p>Array of rfc822name strings</p>
|
933
|
+
<p>Returns Array of rfc822name strings</p>
|
926
934
|
|
927
935
|
|
928
936
|
</div>
|
@@ -954,12 +962,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
954
962
|
<pre class="lines">
|
955
963
|
|
956
964
|
|
957
|
-
|
958
|
-
|
959
|
-
|
965
|
+
309
|
966
|
+
310
|
967
|
+
311</pre>
|
960
968
|
</td>
|
961
969
|
<td>
|
962
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
970
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 309</span>
|
963
971
|
|
964
972
|
<span class='kw'>def</span> <span class='id identifier rubyid_rfc_822_names'>rfc_822_names</span>
|
965
973
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='symbol'>:rfc822Name</span><span class='rbracket'>]</span>
|
@@ -972,7 +980,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
972
980
|
<div class="method_details ">
|
973
981
|
<h3 class="signature " id="serialize_names-instance_method">
|
974
982
|
|
975
|
-
|
983
|
+
#<strong>serialize_names</strong> ⇒ <tt>Array</tt>
|
976
984
|
|
977
985
|
|
978
986
|
|
@@ -981,7 +989,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
981
989
|
</h3><div class="docstring">
|
982
990
|
<div class="discussion">
|
983
991
|
|
984
|
-
<p>
|
992
|
+
<p>Returns string of serialized names for OpenSSL extension creation</p>
|
985
993
|
|
986
994
|
|
987
995
|
</div>
|
@@ -1013,28 +1021,28 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1013
1021
|
<pre class="lines">
|
1014
1022
|
|
1015
1023
|
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1024
|
+
338
|
1025
|
+
339
|
1026
|
+
340
|
1027
|
+
341
|
1028
|
+
342
|
1029
|
+
343
|
1030
|
+
344
|
1031
|
+
345
|
1032
|
+
346
|
1033
|
+
347</pre>
|
1026
1034
|
</td>
|
1027
1035
|
<td>
|
1028
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
1036
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 338</span>
|
1029
1037
|
|
1030
1038
|
<span class='kw'>def</span> <span class='id identifier rubyid_serialize_names'>serialize_names</span>
|
1031
1039
|
<span class='id identifier rubyid_confs'>confs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1032
1040
|
<span class='id identifier rubyid_extension_strings'>extension_strings</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
1033
|
-
<span class='ivar'>@ordered_names</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='
|
1041
|
+
<span class='ivar'>@ordered_names</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_item'>item</span><span class='op'>|</span>
|
1034
1042
|
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_serialize_name'>serialize_name</span>
|
1035
1043
|
<span class='id identifier rubyid_confs'>confs</span> <span class='op'><<</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:conf</span><span class='rbracket'>]</span>
|
1036
1044
|
<span class='id identifier rubyid_extension_strings'>extension_strings</span> <span class='op'><<</span> <span class='id identifier rubyid_data'>data</span><span class='lbracket'>[</span><span class='symbol'>:extension_string</span><span class='rbracket'>]</span>
|
1037
|
-
<span class='
|
1045
|
+
<span class='kw'>end</span>
|
1038
1046
|
<span class='lbrace'>{</span> <span class='symbol'>:conf</span> <span class='op'>=></span> <span class='id identifier rubyid_confs'>confs</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:extension_string</span> <span class='op'>=></span> <span class='id identifier rubyid_extension_strings'>extension_strings</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1039
1047
|
<span class='kw'>end</span></pre>
|
1040
1048
|
</td>
|
@@ -1045,7 +1053,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1045
1053
|
<div class="method_details ">
|
1046
1054
|
<h3 class="signature " id="to_h-instance_method">
|
1047
1055
|
|
1048
|
-
|
1056
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
1049
1057
|
|
1050
1058
|
|
1051
1059
|
|
@@ -1079,12 +1087,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1079
1087
|
<pre class="lines">
|
1080
1088
|
|
1081
1089
|
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1090
|
+
300
|
1091
|
+
301
|
1092
|
+
302</pre>
|
1085
1093
|
</td>
|
1086
1094
|
<td>
|
1087
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
1095
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 300</span>
|
1088
1096
|
|
1089
1097
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
1090
1098
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_n'>n</span><span class='op'>|</span> <span class='id identifier rubyid_n'>n</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='rbrace'>}</span>
|
@@ -1097,7 +1105,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1097
1105
|
<div class="method_details ">
|
1098
1106
|
<h3 class="signature " id="uniform_resource_identifiers-instance_method">
|
1099
1107
|
|
1100
|
-
|
1108
|
+
#<strong>uniform_resource_identifiers</strong> ⇒ <tt>Array</tt>
|
1101
1109
|
|
1102
1110
|
|
1103
1111
|
|
@@ -1110,7 +1118,7 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1110
1118
|
</h3><div class="docstring">
|
1111
1119
|
<div class="discussion">
|
1112
1120
|
|
1113
|
-
<p>Array of uri strings</p>
|
1121
|
+
<p>Returns Array of uri strings</p>
|
1114
1122
|
|
1115
1123
|
|
1116
1124
|
</div>
|
@@ -1142,12 +1150,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1142
1150
|
<pre class="lines">
|
1143
1151
|
|
1144
1152
|
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1153
|
+
320
|
1154
|
+
321
|
1155
|
+
322</pre>
|
1148
1156
|
</td>
|
1149
1157
|
<td>
|
1150
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
1158
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 320</span>
|
1151
1159
|
|
1152
1160
|
<span class='kw'>def</span> <span class='id identifier rubyid_uniform_resource_identifiers'>uniform_resource_identifiers</span>
|
1153
1161
|
<span class='ivar'>@types</span><span class='lbracket'>[</span><span class='symbol'>:uniformResourceIdentifier</span><span class='rbracket'>]</span>
|
@@ -1161,11 +1169,12 @@ GeneralName objects and add them to the GeneralNames object</p>
|
|
1161
1169
|
|
1162
1170
|
</div>
|
1163
1171
|
|
1164
|
-
|
1165
|
-
Generated on
|
1172
|
+
<div id="footer">
|
1173
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
1166
1174
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1167
|
-
0.
|
1175
|
+
0.9.5 (ruby-2.4.0).
|
1168
1176
|
</div>
|
1169
1177
|
|
1178
|
+
</div>
|
1170
1179
|
</body>
|
1171
1180
|
</html>
|