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/ASN1.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::ASN1
|
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";
|
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 (A)</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">ASN1</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::ASN1
|
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
|
+
|
80
78
|
|
81
|
-
|
82
|
-
|
79
|
+
|
80
|
+
|
81
|
+
<dl>
|
82
|
+
<dt>Defined in:</dt>
|
83
|
+
<dd>lib/r509/asn1.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">
|
@@ -115,7 +116,7 @@
|
|
115
116
|
|
116
117
|
<h2>
|
117
118
|
Class Method Summary
|
118
|
-
<small
|
119
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
119
120
|
</h2>
|
120
121
|
|
121
122
|
<ul class="summary">
|
@@ -123,7 +124,7 @@
|
|
123
124
|
<li class="public ">
|
124
125
|
<span class="summary_signature">
|
125
126
|
|
126
|
-
<a href="#general_name_parser-class_method" title="general_name_parser (class method)"
|
127
|
+
<a href="#general_name_parser-class_method" title="general_name_parser (class method)">.<strong>general_name_parser</strong>(names) ⇒ R509::ASN1::GeneralNames </a>
|
127
128
|
|
128
129
|
|
129
130
|
|
@@ -145,7 +146,7 @@
|
|
145
146
|
<li class="public ">
|
146
147
|
<span class="summary_signature">
|
147
148
|
|
148
|
-
<a href="#get_extension_payload-class_method" title="get_extension_payload (class method)"
|
149
|
+
<a href="#get_extension_payload-class_method" title="get_extension_payload (class method)">.<strong>get_extension_payload</strong>(ext) ⇒ Object </a>
|
149
150
|
|
150
151
|
|
151
152
|
|
@@ -164,6 +165,30 @@
|
|
164
165
|
processing by the subclasses.</p>
|
165
166
|
</div></span>
|
166
167
|
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
<li class="public ">
|
172
|
+
<span class="summary_signature">
|
173
|
+
|
174
|
+
<a href="#ip_check-class_method" title="ip_check (class method)">.<strong>ip_check</strong>(domain) ⇒ Boolean </a>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</span>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<span class="summary_desc"><div class='inline'>
|
189
|
+
<p>Checks if a given string is an IP or not.</p>
|
190
|
+
</div></span>
|
191
|
+
|
167
192
|
</li>
|
168
193
|
|
169
194
|
|
@@ -179,7 +204,7 @@ processing by the subclasses.</p>
|
|
179
204
|
<div class="method_details first">
|
180
205
|
<h3 class="signature first" id="general_name_parser-class_method">
|
181
206
|
|
182
|
-
|
207
|
+
.<strong>general_name_parser</strong>(names) ⇒ <tt><span class='object_link'><a href="ASN1/GeneralNames.html" title="R509::ASN1::GeneralNames (class)">R509::ASN1::GeneralNames</a></span></tt>
|
183
208
|
|
184
209
|
|
185
210
|
|
@@ -268,15 +293,15 @@ arrays</p>
|
|
268
293
|
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 26</span>
|
269
294
|
|
270
295
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_general_name_parser'>general_name_parser</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span><span class='rparen'>)</span>
|
271
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='
|
296
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_names'>names</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'>GeneralNames</span><span class='rparen'>)</span>
|
272
297
|
<span class='kw'>return</span> <span class='id identifier rubyid_names'>names</span>
|
273
|
-
<span class='kw'>elsif</span> <span class='
|
298
|
+
<span class='kw'>elsif</span> <span class='op'>!</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
274
299
|
<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'>You must supply an array or existing R509::ASN1 GeneralNames object to general_name_parser</span><span class='tstring_end'>"</span></span>
|
275
300
|
<span class='kw'>end</span>
|
276
301
|
<span class='id identifier rubyid_general_names'>general_names</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'>GeneralNames</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
277
302
|
<span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span>
|
278
303
|
<span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_domain'>domain</span><span class='op'>|</span>
|
279
|
-
<span class='kw'>if</span> <span class='
|
304
|
+
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ip_check'>ip_check</span><span class='lparen'>(</span><span class='id identifier rubyid_domain'>domain</span><span class='rparen'>)</span>
|
280
305
|
<span class='id identifier rubyid_ip'>ip</span> <span class='op'>=</span> <span class='const'>IPAddr</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
281
306
|
<span class='id identifier rubyid_general_names'>general_names</span><span class='period'>.</span><span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='int'>7</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_ip'>ip</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
|
282
307
|
<span class='kw'>else</span>
|
@@ -284,11 +309,11 @@ arrays</p>
|
|
284
309
|
<span class='kw'>when</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='comma'>,</span> <span class='const'>Array</span>
|
285
310
|
<span class='id identifier rubyid_subject'>subject</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_domain'>domain</span><span class='rparen'>)</span>
|
286
311
|
<span class='id identifier rubyid_general_names'>general_names</span><span class='period'>.</span><span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='int'>4</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_subject'>subject</span><span class='rparen'>)</span>
|
287
|
-
<span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>:\/\/</span><span class='regexp_end'>/</span></span> <span class='comment'>#URI
|
312
|
+
<span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>:\/\/</span><span class='regexp_end'>/</span></span> <span class='comment'># URI
|
288
313
|
</span> <span class='id identifier rubyid_general_names'>general_names</span><span class='period'>.</span><span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='int'>6</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
289
|
-
<span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>@</span><span class='regexp_end'>/</span></span> <span class='comment'>#rfc822Name
|
314
|
+
<span class='kw'>when</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>@</span><span class='regexp_end'>/</span></span> <span class='comment'># rfc822Name
|
290
315
|
</span> <span class='id identifier rubyid_general_names'>general_names</span><span class='period'>.</span><span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='int'>1</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
291
|
-
<span class='kw'>else</span> <span class='comment'>#dNSName
|
316
|
+
<span class='kw'>else</span> <span class='comment'># dNSName
|
292
317
|
</span> <span class='id identifier rubyid_general_names'>general_names</span><span class='period'>.</span><span class='id identifier rubyid_create_item'>create_item</span><span class='lparen'>(</span><span class='symbol'>:tag</span> <span class='op'>=></span> <span class='int'>2</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
293
318
|
<span class='kw'>end</span>
|
294
319
|
<span class='kw'>end</span>
|
@@ -303,7 +328,7 @@ arrays</p>
|
|
303
328
|
<div class="method_details ">
|
304
329
|
<h3 class="signature " id="get_extension_payload-class_method">
|
305
330
|
|
306
|
-
|
331
|
+
.<strong>get_extension_payload</strong>(ext) ⇒ <tt>Object</tt>
|
307
332
|
|
308
333
|
|
309
334
|
|
@@ -360,17 +385,102 @@ processing by the subclasses</p>
|
|
360
385
|
</td>
|
361
386
|
</tr>
|
362
387
|
</table>
|
388
|
+
</div>
|
389
|
+
|
390
|
+
<div class="method_details ">
|
391
|
+
<h3 class="signature " id="ip_check-class_method">
|
392
|
+
|
393
|
+
.<strong>ip_check</strong>(domain) ⇒ <tt>Boolean</tt>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</h3><div class="docstring">
|
400
|
+
<div class="discussion">
|
401
|
+
|
402
|
+
<p>Checks if a given string is an IP or not.</p>
|
403
|
+
|
404
|
+
|
405
|
+
</div>
|
406
|
+
</div>
|
407
|
+
<div class="tags">
|
408
|
+
<p class="tag_title">Parameters:</p>
|
409
|
+
<ul class="param">
|
410
|
+
|
411
|
+
<li>
|
412
|
+
|
413
|
+
<span class='name'>domain</span>
|
414
|
+
|
415
|
+
|
416
|
+
<span class='type'>(<tt>String</tt>)</span>
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
—
|
421
|
+
<div class='inline'>
|
422
|
+
<p>The string to check</p>
|
423
|
+
</div>
|
424
|
+
|
425
|
+
</li>
|
426
|
+
|
427
|
+
</ul>
|
428
|
+
|
429
|
+
<p class="tag_title">Returns:</p>
|
430
|
+
<ul class="return">
|
431
|
+
|
432
|
+
<li>
|
433
|
+
|
434
|
+
|
435
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
</li>
|
440
|
+
|
441
|
+
</ul>
|
442
|
+
|
443
|
+
</div><table class="source_code">
|
444
|
+
<tr>
|
445
|
+
<td>
|
446
|
+
<pre class="lines">
|
447
|
+
|
448
|
+
|
449
|
+
60
|
450
|
+
61
|
451
|
+
62
|
452
|
+
63
|
453
|
+
64
|
454
|
+
65
|
455
|
+
66
|
456
|
+
67</pre>
|
457
|
+
</td>
|
458
|
+
<td>
|
459
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 60</span>
|
460
|
+
|
461
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ip_check'>ip_check</span><span class='lparen'>(</span><span class='id identifier rubyid_domain'>domain</span><span class='rparen'>)</span>
|
462
|
+
<span class='kw'>begin</span>
|
463
|
+
<span class='const'>IPAddr</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_domain'>domain</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
464
|
+
<span class='kw'>true</span>
|
465
|
+
<span class='kw'>rescue</span>
|
466
|
+
<span class='kw'>false</span>
|
467
|
+
<span class='kw'>end</span>
|
468
|
+
<span class='kw'>end</span></pre>
|
469
|
+
</td>
|
470
|
+
</tr>
|
471
|
+
</table>
|
363
472
|
</div>
|
364
473
|
|
365
474
|
</div>
|
366
475
|
|
367
476
|
</div>
|
368
477
|
|
369
|
-
|
370
|
-
Generated on
|
478
|
+
<div id="footer">
|
479
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
371
480
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
372
|
-
0.
|
481
|
+
0.9.5 (ruby-2.4.0).
|
373
482
|
</div>
|
374
483
|
|
484
|
+
</div>
|
375
485
|
</body>
|
376
486
|
</html>
|
@@ -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::GeneralName
|
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::GeneralName";
|
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">GeneralName</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::GeneralName
|
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>
|
88
86
|
|
87
|
+
|
89
88
|
|
90
|
-
|
91
89
|
|
92
|
-
|
93
90
|
|
94
91
|
|
95
92
|
|
96
|
-
|
97
|
-
<dd class="r2 last">lib/r509/asn1.rb</dd>
|
93
|
+
|
98
94
|
|
99
|
-
|
100
|
-
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/r509/asn1.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
101
103
|
|
102
104
|
<h2>Overview</h2><div class="docstring">
|
103
105
|
<div class="discussion">
|
@@ -127,13 +129,13 @@ iPAddress</p>
|
|
127
129
|
|
128
130
|
|
129
131
|
|
130
|
-
<h2>Instance Attribute Summary <small
|
132
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
131
133
|
<ul class="summary">
|
132
134
|
|
133
135
|
<li class="public ">
|
134
136
|
<span class="summary_signature">
|
135
137
|
|
136
|
-
<a href="#short_type-instance_method" title="#short_type (instance method)"
|
138
|
+
<a href="#short_type-instance_method" title="#short_type (instance method)">#<strong>short_type</strong> ⇒ Object </a>
|
137
139
|
|
138
140
|
|
139
141
|
|
@@ -162,7 +164,7 @@ iPAddress</p>
|
|
162
164
|
<li class="public ">
|
163
165
|
<span class="summary_signature">
|
164
166
|
|
165
|
-
<a href="#tag-instance_method" title="#tag (instance method)"
|
167
|
+
<a href="#tag-instance_method" title="#tag (instance method)">#<strong>tag</strong> ⇒ Object </a>
|
166
168
|
|
167
169
|
|
168
170
|
|
@@ -191,7 +193,7 @@ iPAddress</p>
|
|
191
193
|
<li class="public ">
|
192
194
|
<span class="summary_signature">
|
193
195
|
|
194
|
-
<a href="#type-instance_method" title="#type (instance method)"
|
196
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Object </a>
|
195
197
|
|
196
198
|
|
197
199
|
|
@@ -221,7 +223,7 @@ iPAddress</p>
|
|
221
223
|
<li class="public ">
|
222
224
|
<span class="summary_signature">
|
223
225
|
|
224
|
-
<a href="#value-instance_method" title="#value (instance method)"
|
226
|
+
<a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ Object </a>
|
225
227
|
|
226
228
|
|
227
229
|
|
@@ -255,7 +257,7 @@ iPAddress</p>
|
|
255
257
|
|
256
258
|
<h2>
|
257
259
|
Class Method Summary
|
258
|
-
<small
|
260
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
259
261
|
</h2>
|
260
262
|
|
261
263
|
<ul class="summary">
|
@@ -263,7 +265,7 @@ iPAddress</p>
|
|
263
265
|
<li class="public ">
|
264
266
|
<span class="summary_signature">
|
265
267
|
|
266
|
-
<a href="#map_tag_to_short_type-class_method" title="map_tag_to_short_type (class method)"
|
268
|
+
<a href="#map_tag_to_short_type-class_method" title="map_tag_to_short_type (class method)">.<strong>map_tag_to_short_type</strong>(tag) ⇒ String </a>
|
267
269
|
|
268
270
|
|
269
271
|
|
@@ -287,7 +289,7 @@ iPAddress</p>
|
|
287
289
|
<li class="public ">
|
288
290
|
<span class="summary_signature">
|
289
291
|
|
290
|
-
<a href="#map_tag_to_type-class_method" title="map_tag_to_type (class method)"
|
292
|
+
<a href="#map_tag_to_type-class_method" title="map_tag_to_type (class method)">.<strong>map_tag_to_type</strong>(tag) ⇒ Symbol </a>
|
291
293
|
|
292
294
|
|
293
295
|
|
@@ -311,7 +313,7 @@ iPAddress</p>
|
|
311
313
|
<li class="public ">
|
312
314
|
<span class="summary_signature">
|
313
315
|
|
314
|
-
<a href="#map_type_to_tag-class_method" title="map_type_to_tag (class method)"
|
316
|
+
<a href="#map_type_to_tag-class_method" title="map_type_to_tag (class method)">.<strong>map_type_to_tag</strong>(type) ⇒ Integer </a>
|
315
317
|
|
316
318
|
|
317
319
|
|
@@ -336,7 +338,7 @@ iPAddress</p>
|
|
336
338
|
|
337
339
|
<h2>
|
338
340
|
Instance Method Summary
|
339
|
-
<small
|
341
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
340
342
|
</h2>
|
341
343
|
|
342
344
|
<ul class="summary">
|
@@ -344,7 +346,7 @@ iPAddress</p>
|
|
344
346
|
<li class="public ">
|
345
347
|
<span class="summary_signature">
|
346
348
|
|
347
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
349
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(asn) ⇒ GeneralName </a>
|
348
350
|
|
349
351
|
|
350
352
|
|
@@ -370,7 +372,7 @@ iPAddress</p>
|
|
370
372
|
<li class="public ">
|
371
373
|
<span class="summary_signature">
|
372
374
|
|
373
|
-
<a href="#serialize_name-instance_method" title="#serialize_name (instance method)"
|
375
|
+
<a href="#serialize_name-instance_method" title="#serialize_name (instance method)">#<strong>serialize_name</strong> ⇒ Hash </a>
|
374
376
|
|
375
377
|
|
376
378
|
|
@@ -395,7 +397,7 @@ R509::CertificateAuthority::Signer.</p>
|
|
395
397
|
<li class="public ">
|
396
398
|
<span class="summary_signature">
|
397
399
|
|
398
|
-
<a href="#to_h-instance_method" title="#to_h (instance method)"
|
400
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
399
401
|
|
400
402
|
|
401
403
|
|
@@ -423,7 +425,7 @@ R509::CertificateAuthority::Signer.</p>
|
|
423
425
|
<div class="method_details first">
|
424
426
|
<h3 class="signature first" id="initialize-instance_method">
|
425
427
|
|
426
|
-
|
428
|
+
#<strong>initialize</strong>(asn) ⇒ <tt><span class='object_link'><a href="" title="R509::ASN1::GeneralName (class)">GeneralName</a></span></tt>
|
427
429
|
|
428
430
|
|
429
431
|
|
@@ -432,7 +434,7 @@ R509::CertificateAuthority::Signer.</p>
|
|
432
434
|
</h3><div class="docstring">
|
433
435
|
<div class="discussion">
|
434
436
|
|
435
|
-
<p>
|
437
|
+
<p>Returns a new instance of GeneralName</p>
|
436
438
|
|
437
439
|
|
438
440
|
</div>
|
@@ -466,20 +468,20 @@ R509::CertificateAuthority::Signer.</p>
|
|
466
468
|
<pre class="lines">
|
467
469
|
|
468
470
|
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
471
|
+
93
|
472
|
+
94
|
473
|
+
95
|
474
|
+
96
|
475
|
+
97
|
476
|
+
98
|
477
|
+
99
|
478
|
+
100</pre>
|
477
479
|
</td>
|
478
480
|
<td>
|
479
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
481
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 93</span>
|
480
482
|
|
481
483
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
|
482
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_asn'>asn</span><span class='period'>.</span><span class='id identifier
|
484
|
+
<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'>Hash</span><span class='rparen'>)</span>
|
483
485
|
<span class='comment'># this is added via create_item
|
484
486
|
</span> <span class='id identifier rubyid_parse_hash'>parse_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_asn'>asn</span><span class='rparen'>)</span>
|
485
487
|
<span class='kw'>else</span>
|
@@ -501,7 +503,7 @@ R509::CertificateAuthority::Signer.</p>
|
|
501
503
|
<div class="method_details first">
|
502
504
|
<h3 class="signature first" id="short_type-instance_method">
|
503
505
|
|
504
|
-
|
506
|
+
#<strong>short_type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
505
507
|
|
506
508
|
|
507
509
|
|
@@ -525,12 +527,12 @@ Also used by the YAML serialization in the extensions</p>
|
|
525
527
|
<pre class="lines">
|
526
528
|
|
527
529
|
|
528
|
-
|
529
|
-
|
530
|
-
|
530
|
+
86
|
531
|
+
87
|
532
|
+
88</pre>
|
531
533
|
</td>
|
532
534
|
<td>
|
533
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
535
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 86</span>
|
534
536
|
|
535
537
|
<span class='kw'>def</span> <span class='id identifier rubyid_short_type'>short_type</span>
|
536
538
|
<span class='ivar'>@short_type</span>
|
@@ -545,7 +547,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
545
547
|
<div class="method_details ">
|
546
548
|
<h3 class="signature " id="tag-instance_method">
|
547
549
|
|
548
|
-
|
550
|
+
#<strong>tag</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
549
551
|
|
550
552
|
|
551
553
|
|
@@ -568,12 +570,12 @@ Also used by the YAML serialization in the extensions</p>
|
|
568
570
|
<pre class="lines">
|
569
571
|
|
570
572
|
|
571
|
-
|
572
|
-
|
573
|
-
|
573
|
+
90
|
574
|
+
91
|
575
|
+
92</pre>
|
574
576
|
</td>
|
575
577
|
<td>
|
576
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
578
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 90</span>
|
577
579
|
|
578
580
|
<span class='kw'>def</span> <span class='id identifier rubyid_tag'>tag</span>
|
579
581
|
<span class='ivar'>@tag</span>
|
@@ -588,7 +590,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
588
590
|
<div class="method_details ">
|
589
591
|
<h3 class="signature " id="type-instance_method">
|
590
592
|
|
591
|
-
|
593
|
+
#<strong>type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
592
594
|
|
593
595
|
|
594
596
|
|
@@ -612,12 +614,12 @@ Also used by the YAML serialization in the extensions</p>
|
|
612
614
|
<pre class="lines">
|
613
615
|
|
614
616
|
|
615
|
-
|
616
|
-
|
617
|
-
|
617
|
+
83
|
618
|
+
84
|
619
|
+
85</pre>
|
618
620
|
</td>
|
619
621
|
<td>
|
620
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
622
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 83</span>
|
621
623
|
|
622
624
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
623
625
|
<span class='ivar'>@type</span>
|
@@ -632,7 +634,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
632
634
|
<div class="method_details ">
|
633
635
|
<h3 class="signature " id="value-instance_method">
|
634
636
|
|
635
|
-
|
637
|
+
#<strong>value</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
636
638
|
|
637
639
|
|
638
640
|
|
@@ -655,12 +657,12 @@ Also used by the YAML serialization in the extensions</p>
|
|
655
657
|
<pre class="lines">
|
656
658
|
|
657
659
|
|
658
|
-
|
659
|
-
|
660
|
-
|
660
|
+
88
|
661
|
+
89
|
662
|
+
90</pre>
|
661
663
|
</td>
|
662
664
|
<td>
|
663
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 88</span>
|
664
666
|
|
665
667
|
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
666
668
|
<span class='ivar'>@value</span>
|
@@ -680,7 +682,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
680
682
|
<div class="method_details first">
|
681
683
|
<h3 class="signature first" id="map_tag_to_short_type-class_method">
|
682
684
|
|
683
|
-
|
685
|
+
.<strong>map_tag_to_short_type</strong>(tag) ⇒ <tt>String</tt>
|
684
686
|
|
685
687
|
|
686
688
|
|
@@ -689,7 +691,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
689
691
|
</h3><div class="docstring">
|
690
692
|
<div class="discussion">
|
691
693
|
|
692
|
-
<p>
|
694
|
+
<p>Returns serial prefix</p>
|
693
695
|
|
694
696
|
|
695
697
|
</div>
|
@@ -736,20 +738,20 @@ Also used by the YAML serialization in the extensions</p>
|
|
736
738
|
<pre class="lines">
|
737
739
|
|
738
740
|
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
741
|
+
130
|
742
|
+
131
|
743
|
+
132
|
744
|
+
133
|
745
|
+
134
|
746
|
+
135
|
747
|
+
136
|
748
|
+
137
|
749
|
+
138
|
750
|
+
139
|
751
|
+
140</pre>
|
750
752
|
</td>
|
751
753
|
<td>
|
752
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
754
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 130</span>
|
753
755
|
|
754
756
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_tag_to_short_type'>map_tag_to_short_type</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
|
755
757
|
<span class='kw'>case</span> <span class='id identifier rubyid_tag'>tag</span>
|
@@ -770,7 +772,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
770
772
|
<div class="method_details ">
|
771
773
|
<h3 class="signature " id="map_tag_to_type-class_method">
|
772
774
|
|
773
|
-
|
775
|
+
.<strong>map_tag_to_type</strong>(tag) ⇒ <tt>Symbol</tt>
|
774
776
|
|
775
777
|
|
776
778
|
|
@@ -779,7 +781,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
779
781
|
</h3><div class="docstring">
|
780
782
|
<div class="discussion">
|
781
783
|
|
782
|
-
<p>
|
784
|
+
<p>Returns symbol type</p>
|
783
785
|
|
784
786
|
|
785
787
|
</div>
|
@@ -826,24 +828,24 @@ Also used by the YAML serialization in the extensions</p>
|
|
826
828
|
<pre class="lines">
|
827
829
|
|
828
830
|
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
831
|
+
144
|
832
|
+
145
|
833
|
+
146
|
834
|
+
147
|
835
|
+
148
|
836
|
+
149
|
837
|
+
150
|
838
|
+
151
|
839
|
+
152
|
840
|
+
153
|
841
|
+
154
|
842
|
+
155
|
843
|
+
156
|
844
|
+
157
|
845
|
+
158</pre>
|
844
846
|
</td>
|
845
847
|
<td>
|
846
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
848
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 144</span>
|
847
849
|
|
848
850
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_tag_to_type'>map_tag_to_type</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
|
849
851
|
<span class='kw'>case</span> <span class='id identifier rubyid_tag'>tag</span>
|
@@ -868,7 +870,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
868
870
|
<div class="method_details ">
|
869
871
|
<h3 class="signature " id="map_type_to_tag-class_method">
|
870
872
|
|
871
|
-
|
873
|
+
.<strong>map_type_to_tag</strong>(type) ⇒ <tt>Integer</tt>
|
872
874
|
|
873
875
|
|
874
876
|
|
@@ -929,20 +931,6 @@ Also used by the YAML serialization in the extensions</p>
|
|
929
931
|
<pre class="lines">
|
930
932
|
|
931
933
|
|
932
|
-
91
|
933
|
-
92
|
934
|
-
93
|
935
|
-
94
|
936
|
-
95
|
937
|
-
96
|
938
|
-
97
|
939
|
-
98
|
940
|
-
99
|
941
|
-
100
|
942
|
-
101
|
943
|
-
102
|
944
|
-
103
|
945
|
-
104
|
946
934
|
105
|
947
935
|
106
|
948
936
|
107
|
@@ -950,10 +938,24 @@ Also used by the YAML serialization in the extensions</p>
|
|
950
938
|
109
|
951
939
|
110
|
952
940
|
111
|
953
|
-
112
|
941
|
+
112
|
942
|
+
113
|
943
|
+
114
|
944
|
+
115
|
945
|
+
116
|
946
|
+
117
|
947
|
+
118
|
948
|
+
119
|
949
|
+
120
|
950
|
+
121
|
951
|
+
122
|
952
|
+
123
|
953
|
+
124
|
954
|
+
125
|
955
|
+
126</pre>
|
954
956
|
</td>
|
955
957
|
<td>
|
956
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
958
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 105</span>
|
957
959
|
|
958
960
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_map_type_to_tag'>map_type_to_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
959
961
|
<span class='comment'># otherName [0] OtherName,
|
@@ -991,7 +993,7 @@ Also used by the YAML serialization in the extensions</p>
|
|
991
993
|
<div class="method_details first">
|
992
994
|
<h3 class="signature first" id="serialize_name-instance_method">
|
993
995
|
|
994
|
-
|
996
|
+
#<strong>serialize_name</strong> ⇒ <tt>Hash</tt>
|
995
997
|
|
996
998
|
|
997
999
|
|
@@ -1033,17 +1035,17 @@ R509::CertificateAuthority::Signer</p>
|
|
1033
1035
|
<pre class="lines">
|
1034
1036
|
|
1035
1037
|
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1038
|
+
183
|
1039
|
+
184
|
1040
|
+
185
|
1041
|
+
186
|
1042
|
+
187
|
1043
|
+
188
|
1044
|
+
189
|
1045
|
+
190</pre>
|
1044
1046
|
</td>
|
1045
1047
|
<td>
|
1046
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
1048
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 183</span>
|
1047
1049
|
|
1048
1050
|
<span class='kw'>def</span> <span class='id identifier rubyid_serialize_name'>serialize_name</span>
|
1049
1051
|
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='symbol'>:directoryName</span>
|
@@ -1061,7 +1063,7 @@ R509::CertificateAuthority::Signer</p>
|
|
1061
1063
|
<div class="method_details ">
|
1062
1064
|
<h3 class="signature " id="to_h-instance_method">
|
1063
1065
|
|
1064
|
-
|
1066
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
1065
1067
|
|
1066
1068
|
|
1067
1069
|
|
@@ -1095,17 +1097,17 @@ R509::CertificateAuthority::Signer</p>
|
|
1095
1097
|
<pre class="lines">
|
1096
1098
|
|
1097
1099
|
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1100
|
+
161
|
1101
|
+
162
|
1102
|
+
163
|
1103
|
+
164
|
1104
|
+
165</pre>
|
1103
1105
|
</td>
|
1104
1106
|
<td>
|
1105
|
-
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line
|
1107
|
+
<pre class="code"><span class="info file"># File 'lib/r509/asn1.rb', line 161</span>
|
1106
1108
|
|
1107
1109
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
1108
|
-
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier
|
1110
|
+
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@value</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'>Subject</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='ivar'>@value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='ivar'>@value</span>
|
1109
1111
|
|
1110
1112
|
<span class='lbrace'>{</span> <span class='symbol'>:type</span> <span class='op'>=></span> <span class='ivar'>@short_type</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_val'>val</span> <span class='rbrace'>}</span>
|
1111
1113
|
<span class='kw'>end</span></pre>
|
@@ -1118,11 +1120,12 @@ R509::CertificateAuthority::Signer</p>
|
|
1118
1120
|
|
1119
1121
|
</div>
|
1120
1122
|
|
1121
|
-
|
1122
|
-
Generated on
|
1123
|
+
<div id="footer">
|
1124
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
1123
1125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1124
|
-
0.
|
1126
|
+
0.9.5 (ruby-2.4.0).
|
1125
1127
|
</div>
|
1126
1128
|
|
1129
|
+
</div>
|
1127
1130
|
</body>
|
1128
1131
|
</html>
|