r509 0.10.0 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.mdown +2 -2
  5. data/Rakefile +2 -3
  6. data/bin/r509 +77 -80
  7. data/bin/r509-parse +4 -4
  8. data/doc/R509.html +60 -60
  9. data/doc/R509/ASN1.html +158 -48
  10. data/doc/R509/ASN1/GeneralName.html +157 -154
  11. data/doc/R509/ASN1/GeneralNames.html +246 -237
  12. data/doc/R509/CRL.html +41 -39
  13. data/doc/R509/CRL/Administrator.html +105 -100
  14. data/doc/R509/CRL/FileReaderWriter.html +146 -98
  15. data/doc/R509/CRL/ReaderWriter.html +57 -54
  16. data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
  17. data/doc/R509/CRL/SignedList.html +83 -80
  18. data/doc/R509/CSR.html +184 -162
  19. data/doc/R509/Cert.html +271 -269
  20. data/doc/R509/Cert/Extensions.html +62 -63
  21. data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
  22. data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
  23. data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
  24. data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
  25. data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
  26. data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
  27. data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
  28. data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
  29. data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
  30. data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
  31. data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
  32. data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
  33. data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
  34. data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
  35. data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
  36. data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
  37. data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
  38. data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
  39. data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
  40. data/doc/R509/CertificateAuthority.html +39 -37
  41. data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
  42. data/doc/R509/CertificateAuthority/Signer.html +277 -60
  43. data/doc/R509/Config.html +40 -38
  44. data/doc/R509/Config/CAConfig.html +255 -188
  45. data/doc/R509/Config/CAConfigPool.html +64 -61
  46. data/doc/R509/Config/CertProfile.html +119 -116
  47. data/doc/R509/Config/SubjectItemPolicy.html +94 -93
  48. data/doc/R509/Engine.html +60 -56
  49. data/doc/R509/Helpers.html +99 -96
  50. data/doc/R509/MessageDigest.html +69 -68
  51. data/doc/R509/NameSanitizer.html +51 -48
  52. data/doc/R509/OCSP.html +39 -37
  53. data/doc/R509/OCSP/Request.html +39 -37
  54. data/doc/R509/OCSP/Request/Nonce.html +67 -67
  55. data/doc/R509/OCSP/Response.html +93 -90
  56. data/doc/R509/OIDMapper.html +48 -46
  57. data/doc/R509/PrivateKey.html +170 -169
  58. data/doc/R509/R509Error.html +45 -42
  59. data/doc/R509/SPKI.html +99 -89
  60. data/doc/R509/Subject.html +86 -83
  61. data/doc/R509/Validity.html +57 -57
  62. data/doc/R509/Validity/Checker.html +63 -93
  63. data/doc/R509/Validity/DefaultChecker.html +58 -55
  64. data/doc/R509/Validity/DefaultWriter.html +62 -59
  65. data/doc/R509/Validity/Status.html +77 -74
  66. data/doc/R509/Validity/Writer.html +75 -123
  67. data/doc/_index.html +37 -31
  68. data/doc/class_list.html +25 -27
  69. data/doc/css/full_list.css +32 -31
  70. data/doc/css/style.css +221 -78
  71. data/doc/file.CONTRIBUTING.html +29 -30
  72. data/doc/file.LICENSE.html +29 -30
  73. data/doc/file.README.html +31 -32
  74. data/doc/file.YAML.html +33 -34
  75. data/doc/file.r509.html +39 -48
  76. data/doc/file_list.html +39 -30
  77. data/doc/frames.html +10 -21
  78. data/doc/index.html +31 -32
  79. data/doc/js/app.js +100 -71
  80. data/doc/js/full_list.js +168 -130
  81. data/doc/method_list.html +1788 -1119
  82. data/doc/top-level-namespace.html +45 -49
  83. data/lib/r509.rb +21 -7
  84. data/lib/r509/asn1.rb +45 -32
  85. data/lib/r509/cert.rb +45 -51
  86. data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
  87. data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
  88. data/lib/r509/cert/extensions/base.rb +22 -23
  89. data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
  90. data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
  91. data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
  92. data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
  93. data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
  94. data/lib/r509/cert/extensions/key_usage.rb +5 -5
  95. data/lib/r509/cert/extensions/name_constraints.rb +16 -16
  96. data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
  97. data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
  98. data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
  99. data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
  100. data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
  101. data/lib/r509/certificate_authority/options_builder.rb +19 -21
  102. data/lib/r509/certificate_authority/signer.rb +26 -27
  103. data/lib/r509/config.rb +1 -0
  104. data/lib/r509/config/ca_config.rb +70 -75
  105. data/lib/r509/config/cert_profile.rb +9 -8
  106. data/lib/r509/config/subject_item_policy.rb +25 -28
  107. data/lib/r509/crl/administrator.rb +19 -20
  108. data/lib/r509/crl/reader_writer.rb +10 -8
  109. data/lib/r509/crl/signed_list.rb +4 -4
  110. data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
  111. data/lib/r509/csr.rb +54 -60
  112. data/lib/r509/ec-hack.rb +3 -2
  113. data/lib/r509/engine.rb +5 -6
  114. data/lib/r509/exceptions.rb +1 -1
  115. data/lib/r509/helpers.rb +11 -14
  116. data/lib/r509/io_helpers.rb +7 -7
  117. data/lib/r509/message_digest.rb +5 -6
  118. data/lib/r509/ocsp.rb +11 -13
  119. data/lib/r509/oid_mapper.rb +2 -2
  120. data/lib/r509/private_key.rb +28 -32
  121. data/lib/r509/spki.rb +17 -20
  122. data/lib/r509/subject.rb +26 -27
  123. data/lib/r509/trollop.rb +1 -0
  124. data/lib/r509/validity.rb +30 -21
  125. data/lib/r509/version.rb +4 -2
  126. data/r509.yaml +9 -17
  127. data/spec/asn1_spec.rb +145 -146
  128. data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
  129. data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
  130. data/spec/cert/extensions/base_spec.rb +38 -34
  131. data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
  132. data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
  133. data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
  134. data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
  135. data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
  136. data/spec/cert/extensions/key_usage_spec.rb +44 -39
  137. data/spec/cert/extensions/name_constraints_spec.rb +83 -83
  138. data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
  139. data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
  140. data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
  141. data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
  142. data/spec/cert_spec.rb +105 -101
  143. data/spec/certificate_authority/options_builder_spec.rb +90 -90
  144. data/spec/certificate_authority/signer_spec.rb +41 -41
  145. data/spec/config/ca_config_spec.rb +169 -119
  146. data/spec/config/cert_profile_spec.rb +33 -33
  147. data/spec/config/subject_item_policy_spec.rb +22 -22
  148. data/spec/crl/administrator_spec.rb +65 -65
  149. data/spec/crl/reader_writer_spec.rb +20 -19
  150. data/spec/crl/signed_list_spec.rb +26 -26
  151. data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
  152. data/spec/csr_spec.rb +149 -145
  153. data/spec/engine_spec.rb +14 -14
  154. data/spec/fixtures.rb +56 -39
  155. data/spec/fixtures/crl_list.sql +13 -0
  156. data/spec/fixtures/csr1.der +0 -0
  157. data/spec/fixtures/csr1.pem +6 -6
  158. data/spec/message_digest_spec.rb +43 -43
  159. data/spec/ocsp_spec.rb +25 -25
  160. data/spec/oid_mapper_spec.rb +18 -19
  161. data/spec/private_key_spec.rb +79 -81
  162. data/spec/r509_spec.rb +16 -16
  163. data/spec/spec_helper.rb +3 -3
  164. data/spec/spki_spec.rb +94 -94
  165. data/spec/subject_spec.rb +107 -107
  166. data/spec/validity_spec.rb +25 -25
  167. metadata +113 -111
  168. metadata.gz.sig +0 -0
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Module: R509::ASN1
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.9.5
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "R509::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 id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../_index.html">Index (A)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../R509.html" title="R509 (module)">R509</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">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
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="../class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Module: R509::ASN1
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
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/r509/asn1.rb</dd>
79
+
80
+
81
+ <dl>
82
+ <dt>Defined in:</dt>
83
+ <dd>lib/r509/asn1.rb</dd>
84
+ </dl>
83
85
 
84
- </dl>
85
- <div class="clear"></div>
86
+ </div>
86
87
 
87
88
  <h2>Overview</h2><div class="docstring">
88
89
  <div class="discussion">
@@ -115,7 +116,7 @@
115
116
 
116
117
  <h2>
117
118
  Class Method Summary
118
- <small>(<a href="#" class="summary_toggle">collapse</a>)</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)">+ (R509::ASN1::GeneralNames) <strong>general_name_parser</strong>(names) </a>
127
+ <a href="#general_name_parser-class_method" title="general_name_parser (class method)">.<strong>general_name_parser</strong>(names) &#x21d2; 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)">+ (Object) <strong>get_extension_payload</strong>(ext) </a>
149
+ <a href="#get_extension_payload-class_method" title="get_extension_payload (class method)">.<strong>get_extension_payload</strong>(ext) &#x21d2; 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) &#x21d2; 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
- + (<tt><span class='object_link'><a href="ASN1/GeneralNames.html" title="R509::ASN1::GeneralNames (class)">R509::ASN1::GeneralNames</a></span></tt>) <strong>general_name_parser</strong>(names)
207
+ .<strong>general_name_parser</strong>(names) &#x21d2; <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='kw'>or</span> <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</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>
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='kw'>not</span> <span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
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'>&quot;</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'>&quot;</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='op'>!</span><span class='lparen'>(</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> <span class='kw'>rescue</span> <span class='kw'>nil</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
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'>=&gt;</span> <span class='int'>7</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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'>=&gt;</span> <span class='int'>4</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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'>=&gt;</span> <span class='int'>6</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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'>=&gt;</span> <span class='int'>1</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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'>=&gt;</span> <span class='int'>2</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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
- + (<tt>Object</tt>) <strong>get_extension_payload</strong>(ext)
331
+ .<strong>get_extension_payload</strong>(ext) &#x21d2; <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) &#x21d2; <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
+ &mdash;
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
- <div id="footer">
370
- Generated on Sun Jan 26 13:37:25 2014 by
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.8.6.1 (ruby-2.0.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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Class: R509::ASN1::GeneralName
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.9.5
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "R509::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 id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../../_index.html">Index (G)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../ASN1.html" title="R509::ASN1 (module)">ASN1</a></span></span>
36
41
  &raquo;
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
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="../../class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Class: R509::ASN1::GeneralName
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
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
76
74
  <span class="inheritName">Object</span>
77
75
 
78
76
  <ul class="fullTree">
@@ -83,21 +81,25 @@
83
81
  </ul>
84
82
  <a href="#" class="inheritanceTree">show all</a>
85
83
 
86
- </dd>
87
-
84
+ </dd>
85
+ </dl>
88
86
 
87
+
89
88
 
90
-
91
89
 
92
-
93
90
 
94
91
 
95
92
 
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/r509/asn1.rb</dd>
93
+
98
94
 
99
- </dl>
100
- <div class="clear"></div>
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>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
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)">- (Object) <strong>short_type</strong> </a>
138
+ <a href="#short_type-instance_method" title="#short_type (instance method)">#<strong>short_type</strong> &#x21d2; 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)">- (Object) <strong>tag</strong> </a>
167
+ <a href="#tag-instance_method" title="#tag (instance method)">#<strong>tag</strong> &#x21d2; 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)">- (Object) <strong>type</strong> </a>
196
+ <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> &#x21d2; 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)">- (Object) <strong>value</strong> </a>
226
+ <a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> &#x21d2; 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>(<a href="#" class="summary_toggle">collapse</a>)</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)">+ (String) <strong>map_tag_to_short_type</strong>(tag) </a>
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) &#x21d2; 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)">+ (Symbol) <strong>map_tag_to_type</strong>(tag) </a>
292
+ <a href="#map_tag_to_type-class_method" title="map_tag_to_type (class method)">.<strong>map_tag_to_type</strong>(tag) &#x21d2; 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)">+ (Integer) <strong>map_type_to_tag</strong>(type) </a>
316
+ <a href="#map_type_to_tag-class_method" title="map_type_to_tag (class method)">.<strong>map_type_to_tag</strong>(type) &#x21d2; 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>(<a href="#" class="summary_toggle">collapse</a>)</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)">- (GeneralName) <strong>initialize</strong>(asn) </a>
349
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(asn) &#x21d2; 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)">- (Hash) <strong>serialize_name</strong> </a>
375
+ <a href="#serialize_name-instance_method" title="#serialize_name (instance method)">#<strong>serialize_name</strong> &#x21d2; 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)">- (Hash) <strong>to_h</strong> </a>
400
+ <a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> &#x21d2; 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
- - (<tt><span class='object_link'><a href="" title="R509::ASN1::GeneralName (class)">GeneralName</a></span></tt>) <strong>initialize</strong>(asn)
428
+ #<strong>initialize</strong>(asn) &#x21d2; <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>A new instance of GeneralName</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
- 79
470
- 80
471
- 81
472
- 82
473
- 83
474
- 84
475
- 85
476
- 86</pre>
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 79</span>
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 rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
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
- - (<tt>Object</tt>) <strong>short_type</strong> <span class="extras">(readonly)</span>
506
+ #<strong>short_type</strong> &#x21d2; <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
- 72
529
- 73
530
- 74</pre>
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 72</span>
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
- - (<tt>Object</tt>) <strong>tag</strong> <span class="extras">(readonly)</span>
550
+ #<strong>tag</strong> &#x21d2; <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
- 76
572
- 77
573
- 78</pre>
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 76</span>
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
- - (<tt>Object</tt>) <strong>type</strong> <span class="extras">(readonly)</span>
593
+ #<strong>type</strong> &#x21d2; <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
- 69
616
- 70
617
- 71</pre>
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 69</span>
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
- - (<tt>Object</tt>) <strong>value</strong> <span class="extras">(readonly)</span>
637
+ #<strong>value</strong> &#x21d2; <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
- 74
659
- 75
660
- 76</pre>
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 74</span>
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
- + (<tt>String</tt>) <strong>map_tag_to_short_type</strong>(tag)
685
+ .<strong>map_tag_to_short_type</strong>(tag) &#x21d2; <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>Serial prefix</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
- 116
740
- 117
741
- 118
742
- 119
743
- 120
744
- 121
745
- 122
746
- 123
747
- 124
748
- 125
749
- 126</pre>
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 116</span>
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
- + (<tt>Symbol</tt>) <strong>map_tag_to_type</strong>(tag)
775
+ .<strong>map_tag_to_type</strong>(tag) &#x21d2; <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>Symbol type</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
- 130
830
- 131
831
- 132
832
- 133
833
- 134
834
- 135
835
- 136
836
- 137
837
- 138
838
- 139
839
- 140
840
- 141
841
- 142
842
- 143
843
- 144</pre>
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 130</span>
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
- + (<tt>Integer</tt>) <strong>map_type_to_tag</strong>(type)
873
+ .<strong>map_type_to_tag</strong>(type) &#x21d2; <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</pre>
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 91</span>
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
- - (<tt>Hash</tt>) <strong>serialize_name</strong>
996
+ #<strong>serialize_name</strong> &#x21d2; <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
- 169
1037
- 170
1038
- 171
1039
- 172
1040
- 173
1041
- 174
1042
- 175
1043
- 176</pre>
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 169</span>
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
- - (<tt>Hash</tt>) <strong>to_h</strong>
1066
+ #<strong>to_h</strong> &#x21d2; <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
- 147
1099
- 148
1100
- 149
1101
- 150
1102
- 151</pre>
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 147</span>
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 rubyid_kind_of?'>kind_of?</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>
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'>=&gt;</span> <span class='ivar'>@short_type</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=&gt;</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
- <div id="footer">
1122
- Generated on Sun Jan 26 13:37:26 2014 by
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.8.6.1 (ruby-2.0.0).
1126
+ 0.9.5 (ruby-2.4.0).
1125
1127
  </div>
1126
1128
 
1129
+ </div>
1127
1130
  </body>
1128
1131
  </html>