r509 0.10.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.mdown +2 -2
- data/Rakefile +2 -3
- data/bin/r509 +77 -80
- data/bin/r509-parse +4 -4
- data/doc/R509.html +60 -60
- data/doc/R509/ASN1.html +158 -48
- data/doc/R509/ASN1/GeneralName.html +157 -154
- data/doc/R509/ASN1/GeneralNames.html +246 -237
- data/doc/R509/CRL.html +41 -39
- data/doc/R509/CRL/Administrator.html +105 -100
- data/doc/R509/CRL/FileReaderWriter.html +146 -98
- data/doc/R509/CRL/ReaderWriter.html +57 -54
- data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
- data/doc/R509/CRL/SignedList.html +83 -80
- data/doc/R509/CSR.html +184 -162
- data/doc/R509/Cert.html +271 -269
- data/doc/R509/Cert/Extensions.html +62 -63
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
- data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
- data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
- data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
- data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
- data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
- data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
- data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
- data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
- data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
- data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
- data/doc/R509/CertificateAuthority.html +39 -37
- data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
- data/doc/R509/CertificateAuthority/Signer.html +277 -60
- data/doc/R509/Config.html +40 -38
- data/doc/R509/Config/CAConfig.html +255 -188
- data/doc/R509/Config/CAConfigPool.html +64 -61
- data/doc/R509/Config/CertProfile.html +119 -116
- data/doc/R509/Config/SubjectItemPolicy.html +94 -93
- data/doc/R509/Engine.html +60 -56
- data/doc/R509/Helpers.html +99 -96
- data/doc/R509/MessageDigest.html +69 -68
- data/doc/R509/NameSanitizer.html +51 -48
- data/doc/R509/OCSP.html +39 -37
- data/doc/R509/OCSP/Request.html +39 -37
- data/doc/R509/OCSP/Request/Nonce.html +67 -67
- data/doc/R509/OCSP/Response.html +93 -90
- data/doc/R509/OIDMapper.html +48 -46
- data/doc/R509/PrivateKey.html +170 -169
- data/doc/R509/R509Error.html +45 -42
- data/doc/R509/SPKI.html +99 -89
- data/doc/R509/Subject.html +86 -83
- data/doc/R509/Validity.html +57 -57
- data/doc/R509/Validity/Checker.html +63 -93
- data/doc/R509/Validity/DefaultChecker.html +58 -55
- data/doc/R509/Validity/DefaultWriter.html +62 -59
- data/doc/R509/Validity/Status.html +77 -74
- data/doc/R509/Validity/Writer.html +75 -123
- data/doc/_index.html +37 -31
- data/doc/class_list.html +25 -27
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +221 -78
- data/doc/file.CONTRIBUTING.html +29 -30
- data/doc/file.LICENSE.html +29 -30
- data/doc/file.README.html +31 -32
- data/doc/file.YAML.html +33 -34
- data/doc/file.r509.html +39 -48
- data/doc/file_list.html +39 -30
- data/doc/frames.html +10 -21
- data/doc/index.html +31 -32
- data/doc/js/app.js +100 -71
- data/doc/js/full_list.js +168 -130
- data/doc/method_list.html +1788 -1119
- data/doc/top-level-namespace.html +45 -49
- data/lib/r509.rb +21 -7
- data/lib/r509/asn1.rb +45 -32
- data/lib/r509/cert.rb +45 -51
- data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
- data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
- data/lib/r509/cert/extensions/base.rb +22 -23
- data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
- data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
- data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
- data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
- data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
- data/lib/r509/cert/extensions/key_usage.rb +5 -5
- data/lib/r509/cert/extensions/name_constraints.rb +16 -16
- data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
- data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
- data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
- data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
- data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
- data/lib/r509/certificate_authority/options_builder.rb +19 -21
- data/lib/r509/certificate_authority/signer.rb +26 -27
- data/lib/r509/config.rb +1 -0
- data/lib/r509/config/ca_config.rb +70 -75
- data/lib/r509/config/cert_profile.rb +9 -8
- data/lib/r509/config/subject_item_policy.rb +25 -28
- data/lib/r509/crl/administrator.rb +19 -20
- data/lib/r509/crl/reader_writer.rb +10 -8
- data/lib/r509/crl/signed_list.rb +4 -4
- data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
- data/lib/r509/csr.rb +54 -60
- data/lib/r509/ec-hack.rb +3 -2
- data/lib/r509/engine.rb +5 -6
- data/lib/r509/exceptions.rb +1 -1
- data/lib/r509/helpers.rb +11 -14
- data/lib/r509/io_helpers.rb +7 -7
- data/lib/r509/message_digest.rb +5 -6
- data/lib/r509/ocsp.rb +11 -13
- data/lib/r509/oid_mapper.rb +2 -2
- data/lib/r509/private_key.rb +28 -32
- data/lib/r509/spki.rb +17 -20
- data/lib/r509/subject.rb +26 -27
- data/lib/r509/trollop.rb +1 -0
- data/lib/r509/validity.rb +30 -21
- data/lib/r509/version.rb +4 -2
- data/r509.yaml +9 -17
- data/spec/asn1_spec.rb +145 -146
- data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
- data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
- data/spec/cert/extensions/base_spec.rb +38 -34
- data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
- data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
- data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
- data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
- data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
- data/spec/cert/extensions/key_usage_spec.rb +44 -39
- data/spec/cert/extensions/name_constraints_spec.rb +83 -83
- data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
- data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
- data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
- data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
- data/spec/cert_spec.rb +105 -101
- data/spec/certificate_authority/options_builder_spec.rb +90 -90
- data/spec/certificate_authority/signer_spec.rb +41 -41
- data/spec/config/ca_config_spec.rb +169 -119
- data/spec/config/cert_profile_spec.rb +33 -33
- data/spec/config/subject_item_policy_spec.rb +22 -22
- data/spec/crl/administrator_spec.rb +65 -65
- data/spec/crl/reader_writer_spec.rb +20 -19
- data/spec/crl/signed_list_spec.rb +26 -26
- data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
- data/spec/csr_spec.rb +149 -145
- data/spec/engine_spec.rb +14 -14
- data/spec/fixtures.rb +56 -39
- data/spec/fixtures/crl_list.sql +13 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +6 -6
- data/spec/message_digest_spec.rb +43 -43
- data/spec/ocsp_spec.rb +25 -25
- data/spec/oid_mapper_spec.rb +18 -19
- data/spec/private_key_spec.rb +79 -81
- data/spec/r509_spec.rb +16 -16
- data/spec/spec_helper.rb +3 -3
- data/spec/spki_spec.rb +94 -94
- data/spec/subject_spec.rb +107 -107
- data/spec/validity_spec.rb +25 -25
- metadata +113 -111
- metadata.gz.sig +0 -0
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Module: R509::Cert::Extensions
|
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::Cert::Extensions";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,63 +27,65 @@
|
|
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 (E)</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="../Cert.html" title="R509::Cert (class)">Cert</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Extensions</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::Cert::Extensions
|
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
|
-
|
83
|
-
|
79
|
+
|
80
|
+
|
81
|
+
<dl>
|
82
|
+
<dt>Defined in:</dt>
|
83
|
+
<dd>lib/r509/cert/extensions/base.rb<span class="defines">,<br />
|
84
|
+
lib/r509/cert/extensions/key_usage.rb,<br /> lib/r509/cert/extensions/ocsp_no_check.rb,<br /> lib/r509/cert/extensions/name_constraints.rb,<br /> lib/r509/cert/extensions/validation_mixin.rb,<br /> lib/r509/cert/extensions/basic_constraints.rb,<br /> lib/r509/cert/extensions/policy_constraints.rb,<br /> lib/r509/cert/extensions/inhibit_any_policy.rb,<br /> lib/r509/cert/extensions/extended_key_usage.rb,<br /> lib/r509/cert/extensions/certificate_policies.rb,<br /> lib/r509/cert/extensions/authority_info_access.rb,<br /> lib/r509/cert/extensions/subject_key_identifier.rb,<br /> lib/r509/cert/extensions/crl_distribution_points.rb,<br /> lib/r509/cert/extensions/authority_key_identifier.rb,<br /> lib/r509/cert/extensions/subject_alternative_name.rb</span>
|
84
85
|
</dd>
|
86
|
+
</dl>
|
85
87
|
|
86
|
-
</
|
87
|
-
<div class="clear"></div>
|
88
|
+
</div>
|
88
89
|
|
89
90
|
<h2>Overview</h2><div class="docstring">
|
90
91
|
<div class="discussion">
|
@@ -110,9 +111,6 @@
|
|
110
111
|
|
111
112
|
</p>
|
112
113
|
|
113
|
-
<h2>Constant Summary</h2>
|
114
|
-
|
115
|
-
|
116
114
|
|
117
115
|
|
118
116
|
|
@@ -122,7 +120,7 @@
|
|
122
120
|
|
123
121
|
<h2>
|
124
122
|
Class Method Summary
|
125
|
-
<small
|
123
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
126
124
|
</h2>
|
127
125
|
|
128
126
|
<ul class="summary">
|
@@ -130,7 +128,7 @@
|
|
130
128
|
<li class="public ">
|
131
129
|
<span class="summary_signature">
|
132
130
|
|
133
|
-
<a href="#get_unknown_extensions-class_method" title="get_unknown_extensions (class method)"
|
131
|
+
<a href="#get_unknown_extensions-class_method" title="get_unknown_extensions (class method)">.<strong>get_unknown_extensions</strong>(extensions) ⇒ Object </a>
|
134
132
|
|
135
133
|
|
136
134
|
|
@@ -155,7 +153,7 @@ R509 implementation.</p>
|
|
155
153
|
<li class="public ">
|
156
154
|
<span class="summary_signature">
|
157
155
|
|
158
|
-
<a href="#names_to_h-class_method" title="names_to_h (class method)"
|
156
|
+
<a href="#names_to_h-class_method" title="names_to_h (class method)">.<strong>names_to_h</strong>(array) ⇒ Object </a>
|
159
157
|
|
160
158
|
|
161
159
|
|
@@ -180,7 +178,7 @@ can be encoded to YAML (used by #to_yaml methods).</p>
|
|
180
178
|
<li class="public ">
|
181
179
|
<span class="summary_signature">
|
182
180
|
|
183
|
-
<a href="#wrap_openssl_extensions-class_method" title="wrap_openssl_extensions (class method)"
|
181
|
+
<a href="#wrap_openssl_extensions-class_method" title="wrap_openssl_extensions (class method)">.<strong>wrap_openssl_extensions</strong>(extensions) ⇒ Object </a>
|
184
182
|
|
185
183
|
|
186
184
|
|
@@ -214,7 +212,7 @@ R509::Cert::Extensions object, and returns them in a hash.</p>
|
|
214
212
|
<div class="method_details first">
|
215
213
|
<h3 class="signature first" id="get_unknown_extensions-class_method">
|
216
214
|
|
217
|
-
|
215
|
+
.<strong>get_unknown_extensions</strong>(extensions) ⇒ <tt>Object</tt>
|
218
216
|
|
219
217
|
|
220
218
|
|
@@ -258,12 +256,12 @@ R509 implementation.</p>
|
|
258
256
|
<td>
|
259
257
|
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 37</span>
|
260
258
|
|
261
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_unknown_extensions'>get_unknown_extensions</span><span class='lparen'>(</span
|
259
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_unknown_extensions'>get_unknown_extensions</span><span class='lparen'>(</span><span class='id identifier rubyid_extensions'>extensions</span><span class='rparen'>)</span>
|
262
260
|
<span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
263
261
|
<span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='op'>|</span>
|
264
262
|
<span class='id identifier rubyid_match_found'>match_found</span> <span class='op'>=</span> <span class='kw'>false</span>
|
265
263
|
<span class='const'>R509_EXTENSION_CLASSES</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>|</span>
|
266
|
-
<span class='kw'>if</span>
|
264
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>::</span><span class='const'>OID</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='period'>.</span><span class='id identifier rubyid_oid'>oid</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
|
267
265
|
<span class='id identifier rubyid_match_found'>match_found</span> <span class='op'>=</span> <span class='kw'>true</span>
|
268
266
|
<span class='kw'>break</span>
|
269
267
|
<span class='kw'>end</span>
|
@@ -272,7 +270,7 @@ R509 implementation.</p>
|
|
272
270
|
</span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='op'><<</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span> <span class='kw'>unless</span> <span class='id identifier rubyid_match_found'>match_found</span>
|
273
271
|
<span class='kw'>end</span>
|
274
272
|
|
275
|
-
<span class='
|
273
|
+
<span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span>
|
276
274
|
<span class='kw'>end</span></pre>
|
277
275
|
</td>
|
278
276
|
</tr>
|
@@ -282,7 +280,7 @@ R509 implementation.</p>
|
|
282
280
|
<div class="method_details ">
|
283
281
|
<h3 class="signature " id="names_to_h-class_method">
|
284
282
|
|
285
|
-
|
283
|
+
.<strong>names_to_h</strong>(array) ⇒ <tt>Object</tt>
|
286
284
|
|
287
285
|
|
288
286
|
|
@@ -306,6 +304,7 @@ can be encoded to YAML (used by #to_yaml methods)</p>
|
|
306
304
|
<pre class="lines">
|
307
305
|
|
308
306
|
|
307
|
+
56
|
309
308
|
57
|
310
309
|
58
|
311
310
|
59
|
@@ -317,21 +316,20 @@ can be encoded to YAML (used by #to_yaml methods)</p>
|
|
317
316
|
65
|
318
317
|
66
|
319
318
|
67
|
320
|
-
68
|
321
|
-
69</pre>
|
319
|
+
68</pre>
|
322
320
|
</td>
|
323
321
|
<td>
|
324
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line
|
322
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 56</span>
|
325
323
|
|
326
324
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_names_to_h'>names_to_h</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='rparen'>)</span>
|
327
325
|
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
328
326
|
<span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
|
329
|
-
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier
|
327
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>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='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
330
328
|
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span>
|
331
|
-
|
329
|
+
|
332
330
|
<span class='symbol'>:type</span> <span class='op'>=></span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_short_type'>short_type</span><span class='comma'>,</span>
|
333
331
|
<span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_value'>value</span>
|
334
|
-
|
332
|
+
|
335
333
|
<span class='rparen'>)</span>
|
336
334
|
<span class='kw'>end</span>
|
337
335
|
<span class='id identifier rubyid_data'>data</span>
|
@@ -344,7 +342,7 @@ can be encoded to YAML (used by #to_yaml methods)</p>
|
|
344
342
|
<div class="method_details ">
|
345
343
|
<h3 class="signature " id="wrap_openssl_extensions-class_method">
|
346
344
|
|
347
|
-
|
345
|
+
.<strong>wrap_openssl_extensions</strong>(extensions) ⇒ <tt>Object</tt>
|
348
346
|
|
349
347
|
|
350
348
|
|
@@ -391,22 +389,22 @@ implementation are ignored (see #get_unknown_extensions).</p>
|
|
391
389
|
<td>
|
392
390
|
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 17</span>
|
393
391
|
|
394
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_wrap_openssl_extensions'>wrap_openssl_extensions</span><span class='lparen'>(</span
|
392
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_wrap_openssl_extensions'>wrap_openssl_extensions</span><span class='lparen'>(</span><span class='id identifier rubyid_extensions'>extensions</span><span class='rparen'>)</span>
|
395
393
|
<span class='id identifier rubyid_r509_extensions'>r509_extensions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
396
394
|
<span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='op'>|</span>
|
397
395
|
<span class='const'>R509_EXTENSION_CLASSES</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>|</span>
|
398
|
-
<span class='kw'>if</span>
|
399
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='period'>.</span><span class='id identifier
|
400
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='
|
396
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>::</span><span class='const'>OID</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='period'>.</span><span class='id identifier rubyid_oid'>oid</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
|
397
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rparen'>)</span>
|
398
|
+
<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'>Only one extension object allowed per OID</span><span class='tstring_end'>"</span></span>
|
401
399
|
<span class='kw'>end</span>
|
402
400
|
|
403
|
-
<span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span
|
401
|
+
<span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='rparen'>)</span>
|
404
402
|
<span class='kw'>break</span>
|
405
403
|
<span class='kw'>end</span>
|
406
404
|
<span class='kw'>end</span>
|
407
405
|
<span class='kw'>end</span>
|
408
406
|
|
409
|
-
<span class='
|
407
|
+
<span class='id identifier rubyid_r509_extensions'>r509_extensions</span>
|
410
408
|
<span class='kw'>end</span></pre>
|
411
409
|
</td>
|
412
410
|
</tr>
|
@@ -417,11 +415,12 @@ implementation are ignored (see #get_unknown_extensions).</p>
|
|
417
415
|
|
418
416
|
</div>
|
419
417
|
|
420
|
-
|
421
|
-
Generated on
|
418
|
+
<div id="footer">
|
419
|
+
Generated on Tue Dec 6 17:27:39 2016 by
|
422
420
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
423
|
-
0.
|
421
|
+
0.9.5 (ruby-2.4.0).
|
424
422
|
</div>
|
425
423
|
|
424
|
+
</div>
|
426
425
|
</body>
|
427
426
|
</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::Cert::Extensions::AuthorityInfoAccess
|
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::Cert::Extensions::AuthorityInfoAccess";
|
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 (A)</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="../../Cert.html" title="R509::Cert (class)">Cert</a></span></span> » <span class='title'><span class='object_link'><a href="../Extensions.html" title="R509::Cert::Extensions (module)">Extensions</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">AuthorityInfoAccess</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::Cert::Extensions::AuthorityInfoAccess
|
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">OpenSSL::X509::Extension</span>
|
77
75
|
|
78
76
|
<ul class="fullTree">
|
@@ -85,25 +83,30 @@
|
|
85
83
|
</ul>
|
86
84
|
<a href="#" class="inheritanceTree">show all</a>
|
87
85
|
|
88
|
-
|
89
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
90
88
|
|
89
|
+
|
91
90
|
|
92
|
-
|
93
91
|
|
94
|
-
|
95
|
-
<dt class="r2">Includes:</dt>
|
96
|
-
<dd class="r2"><span class='object_link'><a href="ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">ValidationMixin</a></span></dd>
|
97
|
-
|
98
|
-
|
99
92
|
|
100
93
|
|
94
|
+
<dl>
|
95
|
+
<dt>Includes:</dt>
|
96
|
+
<dd><span class='object_link'><a href="ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">ValidationMixin</a></span></dd>
|
97
|
+
</dl>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
101
103
|
|
102
|
-
|
103
|
-
<
|
104
|
+
<dl>
|
105
|
+
<dt>Defined in:</dt>
|
106
|
+
<dd>lib/r509/cert/extensions/authority_info_access.rb</dd>
|
107
|
+
</dl>
|
104
108
|
|
105
|
-
</
|
106
|
-
<div class="clear"></div>
|
109
|
+
</div>
|
107
110
|
|
108
111
|
<h2>Overview</h2><div class="docstring">
|
109
112
|
<div class="discussion">
|
@@ -129,11 +132,10 @@ the contents or create a new one.</p>
|
|
129
132
|
|
130
133
|
</div>
|
131
134
|
<h2>Constant Summary</h2>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
<
|
136
|
-
<div class="docstring">
|
135
|
+
<dl class="constants">
|
136
|
+
|
137
|
+
<dt id="OID-constant" class="">OID =
|
138
|
+
<div class="docstring">
|
137
139
|
<div class="discussion">
|
138
140
|
|
139
141
|
<p>friendly name for AIA OID</p>
|
@@ -145,22 +147,21 @@ the contents or create a new one.</p>
|
|
145
147
|
|
146
148
|
|
147
149
|
</div>
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
</dt>
|
151
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>authorityInfoAccess</span><span class='tstring_end'>"</span></span></pre></dd>
|
152
|
+
|
153
|
+
</dl>
|
153
154
|
|
154
155
|
|
155
156
|
|
156
157
|
|
157
|
-
<h2>Instance Attribute Summary <small
|
158
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
158
159
|
<ul class="summary">
|
159
160
|
|
160
161
|
<li class="public ">
|
161
162
|
<span class="summary_signature">
|
162
163
|
|
163
|
-
<a href="#ca_issuers-instance_method" title="#ca_issuers (instance method)"
|
164
|
+
<a href="#ca_issuers-instance_method" title="#ca_issuers (instance method)">#<strong>ca_issuers</strong> ⇒ R509::ASN1::GeneralNames<sup>?</sup> </a>
|
164
165
|
|
165
166
|
|
166
167
|
|
@@ -180,7 +181,7 @@ the contents or create a new one.</p>
|
|
180
181
|
|
181
182
|
|
182
183
|
<span class="summary_desc"><div class='inline'>
|
183
|
-
<p>An R509::ASN1::GeneralNames object of CA Issuers (or nil if not
|
184
|
+
<p>An R509::ASN1::GeneralNames object of CA Issuers (or nil if not present).</p>
|
184
185
|
</div></span>
|
185
186
|
|
186
187
|
</li>
|
@@ -189,7 +190,7 @@ the contents or create a new one.</p>
|
|
189
190
|
<li class="public ">
|
190
191
|
<span class="summary_signature">
|
191
192
|
|
192
|
-
<a href="#ocsp-instance_method" title="#ocsp (instance method)"
|
193
|
+
<a href="#ocsp-instance_method" title="#ocsp (instance method)">#<strong>ocsp</strong> ⇒ R509::ASN1::GeneralNames<sup>?</sup> </a>
|
193
194
|
|
194
195
|
|
195
196
|
|
@@ -209,7 +210,7 @@ the contents or create a new one.</p>
|
|
209
210
|
|
210
211
|
|
211
212
|
<span class="summary_desc"><div class='inline'>
|
212
|
-
<p>An R509::ASN1::GeneralNames object of OCSP endpoints (or nil if not
|
213
|
+
<p>An R509::ASN1::GeneralNames object of OCSP endpoints (or nil if not
|
213
214
|
present).</p>
|
214
215
|
</div></span>
|
215
216
|
|
@@ -224,7 +225,7 @@ present).</p>
|
|
224
225
|
|
225
226
|
<h2>
|
226
227
|
Instance Method Summary
|
227
|
-
<small
|
228
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
228
229
|
</h2>
|
229
230
|
|
230
231
|
<ul class="summary">
|
@@ -232,7 +233,7 @@ present).</p>
|
|
232
233
|
<li class="public ">
|
233
234
|
<span class="summary_signature">
|
234
235
|
|
235
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
236
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(arg) ⇒ AuthorityInfoAccess </a>
|
236
237
|
|
237
238
|
|
238
239
|
|
@@ -258,7 +259,7 @@ present).</p>
|
|
258
259
|
<li class="public ">
|
259
260
|
<span class="summary_signature">
|
260
261
|
|
261
|
-
<a href="#to_h-instance_method" title="#to_h (instance method)"
|
262
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
262
263
|
|
263
264
|
|
264
265
|
|
@@ -280,7 +281,7 @@ present).</p>
|
|
280
281
|
<li class="public ">
|
281
282
|
<span class="summary_signature">
|
282
283
|
|
283
|
-
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)"
|
284
|
+
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)">#<strong>to_yaml</strong> ⇒ YAML </a>
|
284
285
|
|
285
286
|
|
286
287
|
|
@@ -311,7 +312,7 @@ present).</p>
|
|
311
312
|
<div class="method_details first">
|
312
313
|
<h3 class="signature first" id="initialize-instance_method">
|
313
314
|
|
314
|
-
|
315
|
+
#<strong>initialize</strong>(arg) ⇒ <tt><span class='object_link'><a href="" title="R509::Cert::Extensions::AuthorityInfoAccess (class)">AuthorityInfoAccess</a></span></tt>
|
315
316
|
|
316
317
|
|
317
318
|
|
@@ -333,13 +334,22 @@ These values must be in the form seen in the examples below.</p>
|
|
333
334
|
<p class="tag_title">Examples:</p>
|
334
335
|
|
335
336
|
|
336
|
-
<pre class="example code"><code>R509
|
337
|
-
|
338
|
-
|
339
|
-
|
337
|
+
<pre class="example code"><code><span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityInfoAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
338
|
+
<span class='symbol'>:ocsp_location</span> <span class='op'>=></span> <span class='lbracket'>[</span>
|
339
|
+
<span class='lbrace'>{</span> <span class='symbol'>:type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>URI</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>http://ocsp.domain.com</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
340
|
+
<span class='rbracket'>]</span><span class='comma'>,</span>
|
341
|
+
<span class='symbol'>:ca_issuers_location</span> <span class='op'>=></span> <span class='lbracket'>[</span>
|
342
|
+
<span class='lbrace'>{</span>
|
343
|
+
<span class='symbol'>:type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>dirName</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
344
|
+
<span class='symbol'>:value</span> <span class='op'>=></span> <span class='lbrace'>{</span> <span class='symbol'>:CN</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>myCN</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:O</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>some Org</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
345
|
+
<span class='rbrace'>}</span>
|
346
|
+
<span class='rbracket'>]</span>
|
347
|
+
<span class='rparen'>)</span></code></pre>
|
340
348
|
|
341
349
|
|
342
|
-
<pre class="example code"><code><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>GeneralName</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span
|
350
|
+
<pre class="example code"><code><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='op'>::</span><span class='const'>GeneralName</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
351
|
+
<span class='symbol'>:type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>IP</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>"</span></span>
|
352
|
+
<span class='rparen'>)</span>
|
343
353
|
<span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='op'>::</span><span class='const'>AuthorityInfoAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
344
354
|
<span class='symbol'>:ca_issuers_location</span> <span class='op'>=></span> <span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span>
|
345
355
|
<span class='rparen'>)</span></code></pre>
|
@@ -420,20 +430,20 @@ These values must be in the form seen in the examples below.</p>
|
|
420
430
|
<pre class="lines">
|
421
431
|
|
422
432
|
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
433
|
+
64
|
434
|
+
65
|
435
|
+
66
|
436
|
+
67
|
437
|
+
68
|
438
|
+
69
|
439
|
+
70
|
440
|
+
71</pre>
|
431
441
|
</td>
|
432
442
|
<td>
|
433
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line
|
443
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line 64</span>
|
434
444
|
|
435
445
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span>
|
436
|
-
<span class='kw'>
|
446
|
+
<span class='kw'>unless</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_is_extension?'>is_extension?</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span>
|
437
447
|
<span class='id identifier rubyid_arg'>arg</span> <span class='op'>=</span> <span class='id identifier rubyid_build_extension'>build_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span>
|
438
448
|
<span class='kw'>end</span>
|
439
449
|
|
@@ -455,7 +465,7 @@ These values must be in the form seen in the examples below.</p>
|
|
455
465
|
<div class="method_details first">
|
456
466
|
<h3 class="signature first" id="ca_issuers-instance_method">
|
457
467
|
|
458
|
-
|
468
|
+
#<strong>ca_issuers</strong> ⇒ <tt><span class='object_link'><a href="../../ASN1/GeneralNames.html" title="R509::ASN1::GeneralNames (class)">R509::ASN1::GeneralNames</a></span></tt><sup>?</sup> <span class="extras">(readonly)</span>
|
459
469
|
|
460
470
|
|
461
471
|
|
@@ -464,7 +474,9 @@ These values must be in the form seen in the examples below.</p>
|
|
464
474
|
</h3><div class="docstring">
|
465
475
|
<div class="discussion">
|
466
476
|
|
467
|
-
<p>An R509::ASN1::GeneralNames object of CA Issuers (or nil if not
|
477
|
+
<p>An R509::ASN1::GeneralNames object of CA Issuers (or nil if not</p>
|
478
|
+
|
479
|
+
<pre class="code ruby"><code class="ruby">present)</code></pre>
|
468
480
|
|
469
481
|
|
470
482
|
</div>
|
@@ -491,12 +503,12 @@ These values must be in the form seen in the examples below.</p>
|
|
491
503
|
<pre class="lines">
|
492
504
|
|
493
505
|
|
494
|
-
|
495
|
-
|
496
|
-
|
506
|
+
33
|
507
|
+
34
|
508
|
+
35</pre>
|
497
509
|
</td>
|
498
510
|
<td>
|
499
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line 33</span>
|
500
512
|
|
501
513
|
<span class='kw'>def</span> <span class='id identifier rubyid_ca_issuers'>ca_issuers</span>
|
502
514
|
<span class='ivar'>@ca_issuers</span>
|
@@ -511,7 +523,7 @@ These values must be in the form seen in the examples below.</p>
|
|
511
523
|
<div class="method_details ">
|
512
524
|
<h3 class="signature " id="ocsp-instance_method">
|
513
525
|
|
514
|
-
|
526
|
+
#<strong>ocsp</strong> ⇒ <tt><span class='object_link'><a href="../../ASN1/GeneralNames.html" title="R509::ASN1::GeneralNames (class)">R509::ASN1::GeneralNames</a></span></tt><sup>?</sup> <span class="extras">(readonly)</span>
|
515
527
|
|
516
528
|
|
517
529
|
|
@@ -520,8 +532,9 @@ These values must be in the form seen in the examples below.</p>
|
|
520
532
|
</h3><div class="docstring">
|
521
533
|
<div class="discussion">
|
522
534
|
|
523
|
-
<p>An R509::ASN1::GeneralNames object of OCSP endpoints (or nil if not
|
524
|
-
|
535
|
+
<p>An R509::ASN1::GeneralNames object of OCSP endpoints (or nil if not</p>
|
536
|
+
|
537
|
+
<pre class="code ruby"><code class="ruby">present)</code></pre>
|
525
538
|
|
526
539
|
|
527
540
|
</div>
|
@@ -548,12 +561,12 @@ present)</p>
|
|
548
561
|
<pre class="lines">
|
549
562
|
|
550
563
|
|
551
|
-
28
|
552
564
|
29
|
553
|
-
30
|
565
|
+
30
|
566
|
+
31</pre>
|
554
567
|
</td>
|
555
568
|
<td>
|
556
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line
|
569
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line 29</span>
|
557
570
|
|
558
571
|
<span class='kw'>def</span> <span class='id identifier rubyid_ocsp'>ocsp</span>
|
559
572
|
<span class='ivar'>@ocsp</span>
|
@@ -573,7 +586,7 @@ present)</p>
|
|
573
586
|
<div class="method_details first">
|
574
587
|
<h3 class="signature first" id="to_h-instance_method">
|
575
588
|
|
576
|
-
|
589
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
577
590
|
|
578
591
|
|
579
592
|
|
@@ -607,20 +620,36 @@ present)</p>
|
|
607
620
|
<pre class="lines">
|
608
621
|
|
609
622
|
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
623
|
+
74
|
624
|
+
75
|
625
|
+
76
|
626
|
+
77
|
627
|
+
78
|
628
|
+
79
|
629
|
+
80
|
630
|
+
81
|
631
|
+
82
|
632
|
+
83
|
633
|
+
84
|
634
|
+
85
|
635
|
+
86
|
636
|
+
87</pre>
|
616
637
|
</td>
|
617
638
|
<td>
|
618
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line
|
639
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line 74</span>
|
619
640
|
|
620
641
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
621
642
|
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:critical</span> <span class='op'>=></span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_critical?'>critical?</span> <span class='rbrace'>}</span>
|
622
|
-
<span class='
|
623
|
-
|
643
|
+
<span class='kw'>unless</span> <span class='ivar'>@ocsp</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
644
|
+
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:ocsp_location</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_names_to_h'>names_to_h</span><span class='lparen'>(</span>
|
645
|
+
<span class='ivar'>@ocsp</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span>
|
646
|
+
<span class='rparen'>)</span>
|
647
|
+
<span class='kw'>end</span>
|
648
|
+
<span class='kw'>unless</span> <span class='ivar'>@ca_issuers</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
649
|
+
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:ca_issuers_location</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>Cert</span><span class='op'>::</span><span class='const'>Extensions</span><span class='period'>.</span><span class='id identifier rubyid_names_to_h'>names_to_h</span><span class='lparen'>(</span>
|
650
|
+
<span class='ivar'>@ca_issuers</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span>
|
651
|
+
<span class='rparen'>)</span>
|
652
|
+
<span class='kw'>end</span>
|
624
653
|
<span class='id identifier rubyid_hash'>hash</span>
|
625
654
|
<span class='kw'>end</span></pre>
|
626
655
|
</td>
|
@@ -631,7 +660,7 @@ present)</p>
|
|
631
660
|
<div class="method_details ">
|
632
661
|
<h3 class="signature " id="to_yaml-instance_method">
|
633
662
|
|
634
|
-
|
663
|
+
#<strong>to_yaml</strong> ⇒ <tt>YAML</tt>
|
635
664
|
|
636
665
|
|
637
666
|
|
@@ -665,12 +694,12 @@ present)</p>
|
|
665
694
|
<pre class="lines">
|
666
695
|
|
667
696
|
|
668
|
-
|
669
|
-
|
670
|
-
|
697
|
+
90
|
698
|
+
91
|
699
|
+
92</pre>
|
671
700
|
</td>
|
672
701
|
<td>
|
673
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line
|
702
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/authority_info_access.rb', line 90</span>
|
674
703
|
|
675
704
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_yaml'>to_yaml</span>
|
676
705
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span>
|
@@ -684,11 +713,12 @@ present)</p>
|
|
684
713
|
|
685
714
|
</div>
|
686
715
|
|
687
|
-
|
688
|
-
Generated on
|
716
|
+
<div id="footer">
|
717
|
+
Generated on Tue Dec 6 17:27:42 2016 by
|
689
718
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
690
|
-
0.
|
719
|
+
0.9.5 (ruby-2.4.0).
|
691
720
|
</div>
|
692
721
|
|
722
|
+
</div>
|
693
723
|
</body>
|
694
724
|
</html>
|