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
  Exception: R509::R509Error
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::R509Error";
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 (R)</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">R509Error</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>Exception: R509::R509Error
64
+ <div id="content"><h1>Exception: R509::R509Error
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">StandardError</span>
77
75
 
78
76
  <ul class="fullTree">
@@ -85,21 +83,25 @@
85
83
  </ul>
86
84
  <a href="#" class="inheritanceTree">show all</a>
87
85
 
88
- </dd>
89
-
86
+ </dd>
87
+ </dl>
88
+
89
+
90
90
 
91
91
 
92
-
93
92
 
94
-
95
93
 
96
94
 
95
+
96
+
97
+
97
98
 
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/r509/exceptions.rb</dd>
99
+ <dl>
100
+ <dt>Defined in:</dt>
101
+ <dd>lib/r509/exceptions.rb</dd>
102
+ </dl>
100
103
 
101
- </dl>
102
- <div class="clear"></div>
104
+ </div>
103
105
 
104
106
  <h2>Overview</h2><div class="docstring">
105
107
  <div class="discussion">
@@ -124,11 +126,12 @@
124
126
 
125
127
  </div>
126
128
 
127
- <div id="footer">
128
- Generated on Sun Jan 26 13:37:26 2014 by
129
+ <div id="footer">
130
+ Generated on Tue Dec 6 17:27:40 2016 by
129
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.8.6.1 (ruby-2.0.0).
132
+ 0.9.5 (ruby-2.4.0).
131
133
  </div>
132
134
 
135
+ </div>
133
136
  </body>
134
137
  </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::SPKI
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::SPKI";
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 (S)</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">SPKI</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::SPKI
64
+ <div id="content"><h1>Class: R509::SPKI
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,25 +81,30 @@
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
- <dt class="r2">Includes:</dt>
94
- <dd class="r2"><span class='object_link'><a href="Helpers.html" title="R509::Helpers (module)">Helpers</a></span></dd>
95
-
96
-
97
90
 
98
91
 
92
+ <dl>
93
+ <dt>Includes:</dt>
94
+ <dd><span class='object_link'><a href="Helpers.html" title="R509::Helpers (module)">Helpers</a></span></dd>
95
+ </dl>
99
96
 
100
- <dt class="r1 last">Defined in:</dt>
101
- <dd class="r1 last">lib/r509/spki.rb</dd>
102
97
 
103
- </dl>
104
- <div class="clear"></div>
98
+
99
+
100
+
101
+
102
+ <dl>
103
+ <dt>Defined in:</dt>
104
+ <dd>lib/r509/spki.rb</dd>
105
+ </dl>
106
+
107
+ </div>
105
108
 
106
109
  <h2>Overview</h2><div class="docstring">
107
110
  <div class="discussion">
@@ -119,13 +122,13 @@ the &lt;keygen&gt; tag</p>
119
122
 
120
123
 
121
124
 
122
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
125
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
123
126
  <ul class="summary">
124
127
 
125
128
  <li class="public ">
126
129
  <span class="summary_signature">
127
130
 
128
- <a href="#key-instance_method" title="#key (instance method)">- (Object) <strong>key</strong> </a>
131
+ <a href="#key-instance_method" title="#key (instance method)">#<strong>key</strong> &#x21d2; Object </a>
129
132
 
130
133
 
131
134
 
@@ -154,10 +157,12 @@ the &lt;keygen&gt; tag</p>
154
157
  <li class="public ">
155
158
  <span class="summary_signature">
156
159
 
157
- <a href="#spki-instance_method" title="#spki (instance method)">- (Object) <strong>spki</strong> </a>
160
+ <a href="#spki-instance_method" title="#spki (instance method)">#<strong>spki</strong> &#x21d2; Object </a>
158
161
 
159
162
 
160
163
 
164
+ (also: #internal_obj)
165
+
161
166
  </span>
162
167
 
163
168
 
@@ -188,7 +193,7 @@ the &lt;keygen&gt; tag</p>
188
193
 
189
194
  <h2>
190
195
  Instance Method Summary
191
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
196
+ <small><a href="#" class="summary_toggle">collapse</a></small>
192
197
  </h2>
193
198
 
194
199
  <ul class="summary">
@@ -196,7 +201,7 @@ the &lt;keygen&gt; tag</p>
196
201
  <li class="public ">
197
202
  <span class="summary_signature">
198
203
 
199
- <a href="#bit_length-instance_method" title="#bit_length (instance method)">- (Integer) <strong>bit_length</strong> </a>
204
+ <a href="#bit_length-instance_method" title="#bit_length (instance method)">#<strong>bit_length</strong> &#x21d2; Integer </a>
200
205
 
201
206
 
202
207
 
@@ -227,7 +232,7 @@ the &lt;keygen&gt; tag</p>
227
232
  <li class="public ">
228
233
  <span class="summary_signature">
229
234
 
230
- <a href="#curve_name-instance_method" title="#curve_name (instance method)">- (String) <strong>curve_name</strong> </a>
235
+ <a href="#curve_name-instance_method" title="#curve_name (instance method)">#<strong>curve_name</strong> &#x21d2; String </a>
231
236
 
232
237
 
233
238
 
@@ -257,7 +262,7 @@ key if the key is EC.</p>
257
262
  <li class="public ">
258
263
  <span class="summary_signature">
259
264
 
260
- <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">- (Boolean) <strong>dsa?</strong> </a>
265
+ <a href="#dsa%3F-instance_method" title="#dsa? (instance method)">#<strong>dsa?</strong> &#x21d2; Boolean </a>
261
266
 
262
267
 
263
268
 
@@ -286,7 +291,7 @@ key if the key is EC.</p>
286
291
  <li class="public ">
287
292
  <span class="summary_signature">
288
293
 
289
- <a href="#ec%3F-instance_method" title="#ec? (instance method)">- (Boolean) <strong>ec?</strong> </a>
294
+ <a href="#ec%3F-instance_method" title="#ec? (instance method)">#<strong>ec?</strong> &#x21d2; Boolean </a>
290
295
 
291
296
 
292
297
 
@@ -315,7 +320,7 @@ key if the key is EC.</p>
315
320
  <li class="public ">
316
321
  <span class="summary_signature">
317
322
 
318
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (SPKI) <strong>initialize</strong>(opts = {}) </a>
323
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) &#x21d2; SPKI </a>
319
324
 
320
325
 
321
326
 
@@ -341,7 +346,7 @@ key if the key is EC.</p>
341
346
  <li class="public ">
342
347
  <span class="summary_signature">
343
348
 
344
- <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">- (String) <strong>key_algorithm</strong> </a>
349
+ <a href="#key_algorithm-instance_method" title="#key_algorithm (instance method)">#<strong>key_algorithm</strong> &#x21d2; String </a>
345
350
 
346
351
 
347
352
 
@@ -370,7 +375,7 @@ key if the key is EC.</p>
370
375
  <li class="public ">
371
376
  <span class="summary_signature">
372
377
 
373
- <a href="#public_key-instance_method" title="#public_key (instance method)">- (OpenSSL::PKey::RSA) <strong>public_key</strong> </a>
378
+ <a href="#public_key-instance_method" title="#public_key (instance method)">#<strong>public_key</strong> &#x21d2; OpenSSL::PKey::RSA </a>
374
379
 
375
380
 
376
381
 
@@ -394,7 +399,7 @@ key if the key is EC.</p>
394
399
  <li class="public ">
395
400
  <span class="summary_signature">
396
401
 
397
- <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">- (Boolean) <strong>rsa?</strong> </a>
402
+ <a href="#rsa%3F-instance_method" title="#rsa? (instance method)">#<strong>rsa?</strong> &#x21d2; Boolean </a>
398
403
 
399
404
 
400
405
 
@@ -423,7 +428,7 @@ key if the key is EC.</p>
423
428
  <li class="public ">
424
429
  <span class="summary_signature">
425
430
 
426
- <a href="#signature_algorithm-instance_method" title="#signature_algorithm (instance method)">- (String) <strong>signature_algorithm</strong> </a>
431
+ <a href="#signature_algorithm-instance_method" title="#signature_algorithm (instance method)">#<strong>signature_algorithm</strong> &#x21d2; String </a>
427
432
 
428
433
 
429
434
 
@@ -447,7 +452,7 @@ key if the key is EC.</p>
447
452
  <li class="public ">
448
453
  <span class="summary_signature">
449
454
 
450
- <a href="#to_der-instance_method" title="#to_der (instance method)">- (String) <strong>to_der</strong> </a>
455
+ <a href="#to_der-instance_method" title="#to_der (instance method)">#<strong>to_der</strong> &#x21d2; String </a>
451
456
 
452
457
 
453
458
 
@@ -476,7 +481,7 @@ key if the key is EC.</p>
476
481
  <li class="public ">
477
482
  <span class="summary_signature">
478
483
 
479
- <a href="#to_pem-instance_method" title="#to_pem (instance method)">- (String) <strong>to_pem</strong> </a>
484
+ <a href="#to_pem-instance_method" title="#to_pem (instance method)">#<strong>to_pem</strong> &#x21d2; String </a>
480
485
 
481
486
 
482
487
 
@@ -505,7 +510,7 @@ key if the key is EC.</p>
505
510
  <li class="public ">
506
511
  <span class="summary_signature">
507
512
 
508
- <a href="#verify_signature-instance_method" title="#verify_signature (instance method)">- (Boolean) <strong>verify_signature</strong> </a>
513
+ <a href="#verify_signature-instance_method" title="#verify_signature (instance method)">#<strong>verify_signature</strong> &#x21d2; Boolean </a>
509
514
 
510
515
 
511
516
 
@@ -529,7 +534,7 @@ key if the key is EC.</p>
529
534
  <li class="public ">
530
535
  <span class="summary_signature">
531
536
 
532
- <a href="#write_der-instance_method" title="#write_der (instance method)">- (Object) <strong>write_der</strong>(filename_or_io) </a>
537
+ <a href="#write_der-instance_method" title="#write_der (instance method)">#<strong>write_der</strong>(filename_or_io) &#x21d2; Object </a>
533
538
 
534
539
 
535
540
 
@@ -558,7 +563,7 @@ key if the key is EC.</p>
558
563
  <li class="public ">
559
564
  <span class="summary_signature">
560
565
 
561
- <a href="#write_pem-instance_method" title="#write_pem (instance method)">- (Object) <strong>write_pem</strong>(filename_or_io) </a>
566
+ <a href="#write_pem-instance_method" title="#write_pem (instance method)">#<strong>write_pem</strong>(filename_or_io) &#x21d2; Object </a>
562
567
 
563
568
 
564
569
 
@@ -597,7 +602,7 @@ key if the key is EC.</p>
597
602
  <div class="method_details first">
598
603
  <h3 class="signature first" id="initialize-instance_method">
599
604
 
600
- - (<tt><span class='object_link'><a href="" title="R509::SPKI (class)">SPKI</a></span></tt>) <strong>initialize</strong>(opts = {})
605
+ #<strong>initialize</strong>(opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="R509::SPKI (class)">SPKI</a></span></tt>
601
606
 
602
607
 
603
608
 
@@ -606,7 +611,7 @@ key if the key is EC.</p>
606
611
  </h3><div class="docstring">
607
612
  <div class="discussion">
608
613
 
609
- <p>A new instance of SPKI</p>
614
+ <p>Returns a new instance of SPKI</p>
610
615
 
611
616
 
612
617
  </div>
@@ -678,7 +683,7 @@ support). if supplied you do not need to pass an spki.</p>
678
683
 
679
684
  &mdash; <div class='inline'>
680
685
  <p>Optional digest. sha1, sha224, sha256, sha384, sha512, md5. Defaults to
681
- sha1. Only used if you supply a :key and no :spki</p>
686
+ sha256. Only used if you supply a :key and no :spki</p>
682
687
  </div>
683
688
 
684
689
  </li>
@@ -713,19 +718,19 @@ sha1. Only used if you supply a :key and no :spki</p>
713
718
  <td>
714
719
  <pre class="code"><span class="info file"># File 'lib/r509/spki.rb', line 16</span>
715
720
 
716
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
717
- <span class='kw'>if</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
721
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
722
+ <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
718
723
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Must provide a hash of options</span><span class='tstring_end'>&#39;</span></span>
719
- <span class='kw'>elsif</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:spki</span><span class='rparen'>)</span> <span class='kw'>and</span> <span class='kw'>not</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span>
724
+ <span class='kw'>elsif</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:spki</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span>
720
725
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Must provide either :spki or :key</span><span class='tstring_end'>&#39;</span></span>
721
726
  <span class='kw'>end</span>
722
727
 
723
728
  <span class='ivar'>@key</span> <span class='op'>=</span> <span class='id identifier rubyid_load_private_key'>load_private_key</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
724
729
 
725
- <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='symbol'>:spki</span><span class='rparen'>)</span>
730
+ <span class='kw'>if</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:spki</span><span class='rparen'>)</span>
726
731
  <span class='ivar'>@spki</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_spki'>parse_spki</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:spki</span><span class='rbracket'>]</span><span class='rparen'>)</span>
727
732
  <span class='kw'>else</span>
728
- <span class='comment'># create the SPKI from the private key if it wasn&#39;t passed in
733
+ <span class='comment'># create the SPKI from the private key if it wasn&#39;t passed in
729
734
  </span> <span class='ivar'>@spki</span> <span class='op'>=</span> <span class='id identifier rubyid_build_spki'>build_spki</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:message_digest</span><span class='rbracket'>]</span><span class='rparen'>)</span>
730
735
  <span class='kw'>end</span>
731
736
  <span class='kw'>end</span></pre>
@@ -744,7 +749,7 @@ sha1. Only used if you supply a :key and no :spki</p>
744
749
  <div class="method_details first">
745
750
  <h3 class="signature first" id="key-instance_method">
746
751
 
747
- - (<tt>Object</tt>) <strong>key</strong> <span class="extras">(readonly)</span>
752
+ #<strong>key</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
748
753
 
749
754
 
750
755
 
@@ -787,10 +792,14 @@ sha1. Only used if you supply a :key and no :spki</p>
787
792
  <div class="method_details ">
788
793
  <h3 class="signature " id="spki-instance_method">
789
794
 
790
- - (<tt>Object</tt>) <strong>spki</strong> <span class="extras">(readonly)</span>
795
+ #<strong>spki</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
791
796
 
792
797
 
793
798
 
799
+ <span class="aliases">Also known as:
800
+ <span class="names"><span id='internal_obj-instance_method'>internal_obj</span></span>
801
+ </span>
802
+
794
803
 
795
804
 
796
805
  </h3><div class="docstring">
@@ -835,7 +844,7 @@ sha1. Only used if you supply a :key and no :spki</p>
835
844
  <div class="method_details first">
836
845
  <h3 class="signature first" id="bit_length-instance_method">
837
846
 
838
- - (<tt>Integer</tt>) <strong>bit_length</strong>
847
+ #<strong>bit_length</strong> &#x21d2; <tt>Integer</tt>
839
848
 
840
849
 
841
850
 
@@ -885,7 +894,7 @@ sha1. Only used if you supply a :key and no :spki</p>
885
894
  <div class="method_details ">
886
895
  <h3 class="signature " id="curve_name-instance_method">
887
896
 
888
- - (<tt>String</tt>) <strong>curve_name</strong>
897
+ #<strong>curve_name</strong> &#x21d2; <tt>String</tt>
889
898
 
890
899
 
891
900
 
@@ -932,7 +941,7 @@ key if the key is EC. If not, raises an error.</p>
932
941
  <div class="method_details ">
933
942
  <h3 class="signature " id="dsa?-instance_method">
934
943
 
935
- - (<tt>Boolean</tt>) <strong>dsa?</strong>
944
+ #<strong>dsa?</strong> &#x21d2; <tt>Boolean</tt>
936
945
 
937
946
 
938
947
 
@@ -978,7 +987,7 @@ key if the key is EC. If not, raises an error.</p>
978
987
  <div class="method_details ">
979
988
  <h3 class="signature " id="ec?-instance_method">
980
989
 
981
- - (<tt>Boolean</tt>) <strong>ec?</strong>
990
+ #<strong>ec?</strong> &#x21d2; <tt>Boolean</tt>
982
991
 
983
992
 
984
993
 
@@ -1024,7 +1033,7 @@ key if the key is EC. If not, raises an error.</p>
1024
1033
  <div class="method_details ">
1025
1034
  <h3 class="signature " id="key_algorithm-instance_method">
1026
1035
 
1027
- - (<tt>String</tt>) <strong>key_algorithm</strong>
1036
+ #<strong>key_algorithm</strong> &#x21d2; <tt>String</tt>
1028
1037
 
1029
1038
 
1030
1039
 
@@ -1070,7 +1079,7 @@ key if the key is EC. If not, raises an error.</p>
1070
1079
  <div class="method_details ">
1071
1080
  <h3 class="signature " id="public_key-instance_method">
1072
1081
 
1073
- - (<tt>OpenSSL::PKey::RSA</tt>) <strong>public_key</strong>
1082
+ #<strong>public_key</strong> &#x21d2; <tt>OpenSSL::PKey::RSA</tt>
1074
1083
 
1075
1084
 
1076
1085
 
@@ -1079,7 +1088,7 @@ key if the key is EC. If not, raises an error.</p>
1079
1088
  </h3><div class="docstring">
1080
1089
  <div class="discussion">
1081
1090
 
1082
- <p>Public key</p>
1091
+ <p>Returns public key</p>
1083
1092
 
1084
1093
 
1085
1094
  </div>
@@ -1129,7 +1138,7 @@ key if the key is EC. If not, raises an error.</p>
1129
1138
  <div class="method_details ">
1130
1139
  <h3 class="signature " id="rsa?-instance_method">
1131
1140
 
1132
- - (<tt>Boolean</tt>) <strong>rsa?</strong>
1141
+ #<strong>rsa?</strong> &#x21d2; <tt>Boolean</tt>
1133
1142
 
1134
1143
 
1135
1144
 
@@ -1175,7 +1184,7 @@ key if the key is EC. If not, raises an error.</p>
1175
1184
  <div class="method_details ">
1176
1185
  <h3 class="signature " id="signature_algorithm-instance_method">
1177
1186
 
1178
- - (<tt>String</tt>) <strong>signature_algorithm</strong>
1187
+ #<strong>signature_algorithm</strong> &#x21d2; <tt>String</tt>
1179
1188
 
1180
1189
 
1181
1190
 
@@ -1226,7 +1235,7 @@ key if the key is EC. If not, raises an error.</p>
1226
1235
 
1227
1236
  <span class='kw'>def</span> <span class='id identifier rubyid_signature_algorithm'>signature_algorithm</span>
1228
1237
  <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>ASN1</span><span class='period'>.</span><span class='id identifier rubyid_decode'>decode</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_der'>to_der</span><span class='rparen'>)</span>
1229
- <span class='kw'>return</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
1238
+ <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
1230
1239
  <span class='kw'>end</span></pre>
1231
1240
  </td>
1232
1241
  </tr>
@@ -1236,7 +1245,7 @@ key if the key is EC. If not, raises an error.</p>
1236
1245
  <div class="method_details ">
1237
1246
  <h3 class="signature " id="to_der-instance_method">
1238
1247
 
1239
- - (<tt>String</tt>) <strong>to_der</strong>
1248
+ #<strong>to_der</strong> &#x21d2; <tt>String</tt>
1240
1249
 
1241
1250
 
1242
1251
 
@@ -1282,7 +1291,7 @@ key if the key is EC. If not, raises an error.</p>
1282
1291
  <div class="method_details ">
1283
1292
  <h3 class="signature " id="to_pem-instance_method">
1284
1293
 
1285
- - (<tt>String</tt>) <strong>to_pem</strong>
1294
+ #<strong>to_pem</strong> &#x21d2; <tt>String</tt>
1286
1295
 
1287
1296
 
1288
1297
 
@@ -1328,7 +1337,7 @@ key if the key is EC. If not, raises an error.</p>
1328
1337
  <div class="method_details ">
1329
1338
  <h3 class="signature " id="verify_signature-instance_method">
1330
1339
 
1331
- - (<tt>Boolean</tt>) <strong>verify_signature</strong>
1340
+ #<strong>verify_signature</strong> &#x21d2; <tt>Boolean</tt>
1332
1341
 
1333
1342
 
1334
1343
 
@@ -1382,7 +1391,7 @@ key if the key is EC. If not, raises an error.</p>
1382
1391
  <div class="method_details ">
1383
1392
  <h3 class="signature " id="write_der-instance_method">
1384
1393
 
1385
- - (<tt>Object</tt>) <strong>write_der</strong>(filename_or_io)
1394
+ #<strong>write_der</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
1386
1395
 
1387
1396
 
1388
1397
 
@@ -1431,7 +1440,7 @@ an IO-like object.</p>
1431
1440
  <div class="method_details ">
1432
1441
  <h3 class="signature " id="write_pem-instance_method">
1433
1442
 
1434
- - (<tt>Object</tt>) <strong>write_pem</strong>(filename_or_io)
1443
+ #<strong>write_pem</strong>(filename_or_io) &#x21d2; <tt>Object</tt>
1435
1444
 
1436
1445
 
1437
1446
 
@@ -1481,11 +1490,12 @@ an IO-like object.</p>
1481
1490
 
1482
1491
  </div>
1483
1492
 
1484
- <div id="footer">
1485
- Generated on Sun Jan 26 13:37:26 2014 by
1493
+ <div id="footer">
1494
+ Generated on Tue Dec 6 17:27:39 2016 by
1486
1495
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1487
- 0.8.6.1 (ruby-2.0.0).
1496
+ 0.9.5 (ruby-2.4.0).
1488
1497
  </div>
1489
1498
 
1499
+ </div>
1490
1500
  </body>
1491
1501
  </html>