r509 0.8.1 → 0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +343 -151
- data/Rakefile +26 -23
- data/bin/r509 +126 -112
- data/bin/r509-parse +24 -24
- data/doc/R509.html +169 -7
- data/doc/R509/ASN1.html +370 -0
- data/doc/R509/ASN1/GeneralName.html +1121 -0
- data/doc/R509/ASN1/GeneralNames.html +843 -0
- data/doc/R509/ASN1/NoticeReference.html +392 -0
- data/doc/R509/ASN1/PolicyInformation.html +387 -0
- data/doc/R509/ASN1/PolicyQualifiers.html +455 -0
- data/doc/R509/ASN1/UserNotice.html +386 -0
- data/doc/R509/{Crl.html → CRL.html} +7 -7
- data/doc/R509/CRL/Administrator.html +1559 -0
- data/doc/R509/{Crl/Parser.html → CRL/SignedList.html} +501 -210
- data/doc/R509/{Csr.html → CSR.html} +444 -314
- data/doc/R509/Cert.html +866 -617
- data/doc/R509/Cert/Extensions.html +52 -41
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +70 -35
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +387 -4
- data/doc/R509/Cert/Extensions/BasicConstraints.html +61 -25
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +354 -0
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +340 -0
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +440 -49
- data/doc/R509/Cert/Extensions/{CrlDistributionPoints.html → InhibitAnyPolicy.html} +52 -35
- data/doc/R509/Cert/Extensions/KeyUsage.html +247 -121
- data/doc/R509/Cert/Extensions/NameConstraints.html +445 -0
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +239 -0
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +424 -0
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +437 -62
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +52 -10
- data/doc/R509/CertificateAuthority.html +4 -4
- data/doc/R509/CertificateAuthority/Signer.html +154 -187
- data/doc/R509/Config.html +6 -6
- data/doc/R509/Config/{CaConfig.html → CAConfig.html} +451 -348
- data/doc/R509/Config/{CaConfigPool.html → CAConfigPool.html} +47 -47
- data/doc/R509/Config/CAProfile.html +1015 -0
- data/doc/R509/Config/SubjectItemPolicy.html +86 -86
- data/doc/R509/IOHelpers.html +22 -22
- data/doc/R509/MessageDigest.html +14 -14
- data/doc/R509/NameSanitizer.html +53 -53
- data/doc/R509/{Ocsp.html → OCSP.html} +9 -9
- data/doc/R509/{Ocsp → OCSP}/Request.html +7 -7
- data/doc/R509/{Ocsp → OCSP}/Request/Nonce.html +56 -11
- data/doc/R509/{Ocsp → OCSP}/Response.html +44 -44
- data/doc/R509/{OidMapper.html → OIDMapper.html} +23 -39
- data/doc/R509/PrivateKey.html +415 -168
- data/doc/R509/R509Error.html +3 -3
- data/doc/R509/{Spki.html → SPKI.html} +354 -192
- data/doc/R509/Subject.html +224 -113
- data/doc/R509/Validity.html +27 -5
- data/doc/R509/Validity/Checker.html +13 -13
- data/doc/R509/Validity/DefaultChecker.html +13 -13
- data/doc/R509/Validity/DefaultWriter.html +14 -14
- data/doc/R509/Validity/Status.html +39 -39
- data/doc/R509/Validity/Writer.html +18 -18
- data/doc/_index.html +138 -35
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +10 -0
- data/doc/file.README.html +368 -171
- data/doc/file.r509.html +92 -69
- data/doc/frames.html +1 -1
- data/doc/index.html +368 -171
- data/doc/method_list.html +910 -390
- data/doc/top-level-namespace.html +3 -3
- data/lib/r509.rb +32 -16
- data/lib/r509/asn1.rb +375 -0
- data/lib/r509/cert.rb +381 -364
- data/lib/r509/cert/extensions.rb +443 -76
- data/lib/r509/certificate_authority.rb +407 -0
- data/lib/r509/config.rb +547 -351
- data/lib/r509/crl.rb +336 -366
- data/lib/r509/csr.rb +278 -289
- data/lib/r509/ec-hack.rb +37 -0
- data/lib/r509/exceptions.rb +3 -3
- data/lib/r509/io_helpers.rb +44 -44
- data/lib/r509/message_digest.rb +53 -0
- data/lib/r509/ocsp.rb +80 -70
- data/lib/r509/oid_mapper.rb +32 -0
- data/lib/r509/private_key.rb +228 -0
- data/lib/r509/spki.rb +145 -93
- data/lib/r509/subject.rb +203 -110
- data/lib/r509/validity.rb +70 -68
- data/lib/r509/version.rb +2 -2
- data/r509.yaml +92 -69
- data/spec/asn1_spec.rb +402 -0
- data/spec/cert/extensions_spec.rb +957 -494
- data/spec/cert_spec.rb +382 -307
- data/spec/certificate_authority_spec.rb +668 -250
- data/spec/config_spec.rb +515 -302
- data/spec/crl_spec.rb +197 -198
- data/spec/csr_spec.rb +334 -289
- data/spec/fixtures.rb +247 -171
- data/spec/fixtures/cert1.der +0 -0
- data/spec/fixtures/cert1.pem +0 -0
- data/spec/fixtures/cert1_public_key_modulus.txt +0 -0
- data/spec/fixtures/cert3.p12 +0 -0
- data/spec/fixtures/cert3.pem +0 -0
- data/spec/fixtures/cert3_key.pem +0 -0
- data/spec/fixtures/cert3_key_des3.pem +0 -0
- data/spec/fixtures/cert4.pem +0 -0
- data/spec/fixtures/cert5.pem +0 -0
- data/spec/fixtures/cert6.pem +0 -0
- data/spec/fixtures/cert_expired.pem +0 -0
- data/spec/fixtures/cert_inhibit.pem +24 -0
- data/spec/fixtures/cert_name_constraints.pem +29 -0
- data/spec/fixtures/cert_not_yet_valid.pem +0 -0
- data/spec/fixtures/cert_ocsp_no_check.pem +18 -0
- data/spec/fixtures/cert_policy_constraints.pem +31 -0
- data/spec/fixtures/cert_san.pem +0 -0
- data/spec/fixtures/cert_san2.pem +0 -0
- data/spec/fixtures/cert_unknown_extension.pem +28 -0
- data/spec/fixtures/config_pool_test_minimal.yaml +11 -11
- data/spec/fixtures/config_test.yaml +54 -36
- data/spec/fixtures/config_test_dsa.yaml +35 -0
- data/spec/fixtures/config_test_ec.yaml +35 -0
- data/spec/fixtures/config_test_engine_key.yaml +5 -5
- data/spec/fixtures/config_test_engine_no_key_name.yaml +4 -4
- data/spec/fixtures/config_test_minimal.yaml +4 -4
- data/spec/fixtures/config_test_password.yaml +5 -5
- data/spec/fixtures/config_test_various.yaml +111 -74
- data/spec/fixtures/crl_list_file.txt +0 -0
- data/spec/fixtures/crl_with_reason.pem +0 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +0 -0
- data/spec/fixtures/csr1_key.der +0 -0
- data/spec/fixtures/csr1_key.pem +0 -0
- data/spec/fixtures/csr1_key_encrypted_des3.pem +0 -0
- data/spec/fixtures/csr1_newlines.pem +0 -0
- data/spec/fixtures/csr1_no_begin_end.pem +0 -0
- data/spec/fixtures/csr1_public_key_modulus.txt +0 -0
- data/spec/fixtures/csr2.pem +0 -0
- data/spec/fixtures/csr2_key.pem +0 -0
- data/spec/fixtures/csr3.pem +0 -0
- data/spec/fixtures/csr4.pem +0 -0
- data/spec/fixtures/csr_dsa.pem +0 -0
- data/spec/fixtures/csr_invalid_signature.pem +0 -0
- data/spec/fixtures/dsa_key.pem +0 -0
- data/spec/fixtures/dsa_root.cer +28 -0
- data/spec/fixtures/dsa_root.key +20 -0
- data/spec/fixtures/ec_csr2.der +0 -0
- data/spec/fixtures/ec_csr2.pem +8 -0
- data/spec/fixtures/ec_key1.der +0 -0
- data/spec/fixtures/ec_key1.pem +6 -0
- data/spec/fixtures/ec_key1_encrypted.pem +9 -0
- data/spec/fixtures/ec_key2.pem +6 -0
- data/spec/fixtures/hmacsha1.sig +1 -0
- data/spec/fixtures/hmacsha512.sig +1 -0
- data/spec/fixtures/key4.pem +0 -0
- data/spec/fixtures/key4_encrypted_des3.pem +0 -0
- data/spec/fixtures/missing_key_identifier_ca.cer +0 -0
- data/spec/fixtures/missing_key_identifier_ca.key +0 -0
- data/spec/fixtures/ocsptest.r509.local.pem +0 -0
- data/spec/fixtures/ocsptest.r509.local_ocsp_request.der +0 -0
- data/spec/fixtures/ocsptest2.r509.local.pem +0 -0
- data/spec/fixtures/second_ca.cer +0 -0
- data/spec/fixtures/second_ca.key +0 -0
- data/spec/fixtures/spkac.der +0 -0
- data/spec/fixtures/spkac.txt +0 -0
- data/spec/fixtures/spkac_dsa.txt +1 -1
- data/spec/fixtures/spkac_dsa_no_verify.txt +1 -0
- data/spec/fixtures/spkac_ec.txt +1 -0
- data/spec/fixtures/spkac_rsa_newlines.txt +13 -0
- data/spec/fixtures/stca.pem +0 -0
- data/spec/fixtures/stca_ocsp_request.der +0 -0
- data/spec/fixtures/stca_ocsp_response.der +0 -0
- data/spec/fixtures/test1.csr +0 -0
- data/spec/fixtures/test_ca.cer +0 -0
- data/spec/fixtures/test_ca.key +0 -0
- data/spec/fixtures/test_ca.p12 +0 -0
- data/spec/fixtures/test_ca_des3.key +0 -0
- data/spec/fixtures/test_ca_ec.cer +14 -0
- data/spec/fixtures/test_ca_ec.key +6 -0
- data/spec/fixtures/test_ca_ec_ee.cer +22 -0
- data/spec/fixtures/test_ca_ec_ee.key +6 -0
- data/spec/fixtures/test_ca_ocsp.cer +0 -0
- data/spec/fixtures/test_ca_ocsp.key +0 -0
- data/spec/fixtures/test_ca_ocsp.p12 +0 -0
- data/spec/fixtures/test_ca_ocsp_chain.txt +0 -0
- data/spec/fixtures/test_ca_ocsp_response.der +0 -0
- data/spec/fixtures/test_ca_subroot.cer +0 -0
- data/spec/fixtures/test_ca_subroot.key +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp.cer +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp.key +0 -0
- data/spec/fixtures/test_ca_subroot_ocsp_response.der +0 -0
- data/spec/fixtures/unknown_oid.csr +0 -0
- data/spec/message_digest_spec.rb +104 -84
- data/spec/ocsp_spec.rb +105 -105
- data/spec/oid_mapper_spec.rb +21 -21
- data/spec/private_key_spec.rb +275 -0
- data/spec/r509_spec.rb +35 -0
- data/spec/spec_helper.rb +15 -6
- data/spec/spki_spec.rb +221 -142
- data/spec/subject_spec.rb +232 -164
- data/spec/validity_spec.rb +91 -91
- metadata +79 -25
- data/doc/R509/Config/CaProfile.html +0 -651
- data/doc/R509/Crl/Administrator.html +0 -2073
- data/lib/r509/certificateauthority.rb +0 -290
- data/lib/r509/messagedigest.rb +0 -49
- data/lib/r509/oidmapper.rb +0 -32
- data/lib/r509/privatekey.rb +0 -185
- data/spec/privatekey_spec.rb +0 -198
@@ -0,0 +1,424 @@
|
|
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">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: R509::Cert::Extensions::PolicyConstraints
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../../';
|
20
|
+
framesUrl = "../../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../../_index.html">Index (P)</a> »
|
35
|
+
<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
|
+
»
|
37
|
+
<span class="title">PolicyConstraints</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
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
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: R509::Cert::Extensions::PolicyConstraints
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">OpenSSL::X509::Extension</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">OpenSSL::X509::Extension</li>
|
82
|
+
|
83
|
+
<li class="next">R509::Cert::Extensions::PolicyConstraints</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/r509/cert/extensions.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
|
107
|
+
<p>Implements the PolicyConstraints certificate extension, with methods to
|
108
|
+
provide access to the components and meaning of the extension's contents.</p>
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
</div>
|
113
|
+
<div class="tags">
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
<h2>Constant Summary</h2>
|
118
|
+
|
119
|
+
<dl class="constants">
|
120
|
+
|
121
|
+
<dt id="OID-constant" class="">OID =
|
122
|
+
<div class="docstring">
|
123
|
+
<div class="discussion">
|
124
|
+
|
125
|
+
<p>friendly name for CP OID</p>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
<div class="tags">
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
</dt>
|
135
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>policyConstraints</span><span class='tstring_end'>"</span></span></pre></dd>
|
136
|
+
|
137
|
+
</dl>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
144
|
+
<ul class="summary">
|
145
|
+
|
146
|
+
<li class="public ">
|
147
|
+
<span class="summary_signature">
|
148
|
+
|
149
|
+
<a href="#inhibit_policy_mapping-instance_method" title="#inhibit_policy_mapping (instance method)">- (Object) <strong>inhibit_policy_mapping</strong> </a>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
</span>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
<span class="note title readonly">readonly</span>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
<span class="summary_desc"><div class='inline'>
|
169
|
+
<p>Returns the value of attribute inhibit_policy_mapping.</p>
|
170
|
+
</div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#require_explicit_policy-instance_method" title="#require_explicit_policy (instance method)">- (Object) <strong>require_explicit_policy</strong> </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="note title readonly">readonly</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<span class="summary_desc"><div class='inline'>
|
198
|
+
<p>Returns the value of attribute require_explicit_policy.</p>
|
199
|
+
</div></span>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
</ul>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
<h2>
|
211
|
+
Instance Method Summary
|
212
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
213
|
+
</h2>
|
214
|
+
|
215
|
+
<ul class="summary">
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (PolicyConstraints) <strong>initialize</strong>(*args) </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
<span class="note title constructor">constructor</span>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<span class="summary_desc"><div class='inline'>
|
237
|
+
<p>A new instance of PolicyConstraints.</p>
|
238
|
+
</div></span>
|
239
|
+
|
240
|
+
</li>
|
241
|
+
|
242
|
+
|
243
|
+
</ul>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<div id="constructor_details" class="method_details_list">
|
248
|
+
<h2>Constructor Details</h2>
|
249
|
+
|
250
|
+
<div class="method_details first">
|
251
|
+
<h3 class="signature first" id="initialize-instance_method">
|
252
|
+
|
253
|
+
- (<tt><span class='object_link'><a href="" title="R509::Cert::Extensions::PolicyConstraints (class)">PolicyConstraints</a></span></tt>) <strong>initialize</strong>(*args)
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</h3><div class="docstring">
|
260
|
+
<div class="discussion">
|
261
|
+
|
262
|
+
<p>A new instance of PolicyConstraints</p>
|
263
|
+
|
264
|
+
|
265
|
+
</div>
|
266
|
+
</div>
|
267
|
+
<div class="tags">
|
268
|
+
|
269
|
+
|
270
|
+
</div><table class="source_code">
|
271
|
+
<tr>
|
272
|
+
<td>
|
273
|
+
<pre class="lines">
|
274
|
+
|
275
|
+
|
276
|
+
559
|
277
|
+
560
|
278
|
+
561
|
279
|
+
562
|
280
|
+
563
|
281
|
+
564
|
282
|
+
565
|
283
|
+
566
|
284
|
+
567
|
285
|
+
568
|
286
|
+
569
|
287
|
+
570
|
288
|
+
571
|
289
|
+
572
|
290
|
+
573
|
291
|
+
574
|
292
|
+
575
|
293
|
+
576</pre>
|
294
|
+
</td>
|
295
|
+
<td>
|
296
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 559</span>
|
297
|
+
|
298
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
299
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
300
|
+
|
301
|
+
<span class='comment'># id-ce-policyConstraints OBJECT IDENTIFIER ::= { id-ce 36 }
|
302
|
+
</span> <span class='comment'># PolicyConstraints ::= SEQUENCE {
|
303
|
+
</span> <span class='comment'># requireExplicitPolicy [0] SkipCerts OPTIONAL,
|
304
|
+
</span> <span class='comment'># inhibitPolicyMapping [1] SkipCerts OPTIONAL }
|
305
|
+
</span> <span class='comment'>#
|
306
|
+
</span> <span class='comment'># SkipCerts ::= INTEGER (0..MAX)
|
307
|
+
</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='period'>.</span><span class='id identifier rubyid_get_extension_payload'>get_extension_payload</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
308
|
+
<span class='id identifier rubyid_data'>data</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_pc'>pc</span><span class='op'>|</span>
|
309
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_pc'>pc</span><span class='period'>.</span><span class='id identifier rubyid_tag'>tag</span> <span class='op'>==</span> <span class='int'>0</span>
|
310
|
+
<span class='ivar'>@require_explicit_policy</span> <span class='op'>=</span> <span class='id identifier rubyid_pc'>pc</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_bytes'>bytes</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
311
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_pc'>pc</span><span class='period'>.</span><span class='id identifier rubyid_tag'>tag</span> <span class='op'>==</span> <span class='int'>1</span>
|
312
|
+
<span class='ivar'>@inhibit_policy_mapping</span> <span class='op'>=</span> <span class='id identifier rubyid_pc'>pc</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_bytes'>bytes</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
313
|
+
<span class='kw'>end</span>
|
314
|
+
<span class='kw'>end</span>
|
315
|
+
<span class='kw'>end</span></pre>
|
316
|
+
</td>
|
317
|
+
</tr>
|
318
|
+
</table>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<div id="instance_attr_details" class="attr_details">
|
324
|
+
<h2>Instance Attribute Details</h2>
|
325
|
+
|
326
|
+
|
327
|
+
<span id=""></span>
|
328
|
+
<div class="method_details first">
|
329
|
+
<h3 class="signature first" id="inhibit_policy_mapping-instance_method">
|
330
|
+
|
331
|
+
- (<tt>Object</tt>) <strong>inhibit_policy_mapping</strong> <span class="extras">(readonly)</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</h3><div class="docstring">
|
338
|
+
<div class="discussion">
|
339
|
+
|
340
|
+
<p>Returns the value of attribute inhibit_policy_mapping</p>
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
</div>
|
345
|
+
<div class="tags">
|
346
|
+
|
347
|
+
|
348
|
+
</div><table class="source_code">
|
349
|
+
<tr>
|
350
|
+
<td>
|
351
|
+
<pre class="lines">
|
352
|
+
|
353
|
+
|
354
|
+
557
|
355
|
+
558
|
356
|
+
559</pre>
|
357
|
+
</td>
|
358
|
+
<td>
|
359
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 557</span>
|
360
|
+
|
361
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_inhibit_policy_mapping'>inhibit_policy_mapping</span>
|
362
|
+
<span class='ivar'>@inhibit_policy_mapping</span>
|
363
|
+
<span class='kw'>end</span></pre>
|
364
|
+
</td>
|
365
|
+
</tr>
|
366
|
+
</table>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
|
370
|
+
<span id=""></span>
|
371
|
+
<div class="method_details ">
|
372
|
+
<h3 class="signature " id="require_explicit_policy-instance_method">
|
373
|
+
|
374
|
+
- (<tt>Object</tt>) <strong>require_explicit_policy</strong> <span class="extras">(readonly)</span>
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
</h3><div class="docstring">
|
381
|
+
<div class="discussion">
|
382
|
+
|
383
|
+
<p>Returns the value of attribute require_explicit_policy</p>
|
384
|
+
|
385
|
+
|
386
|
+
</div>
|
387
|
+
</div>
|
388
|
+
<div class="tags">
|
389
|
+
|
390
|
+
|
391
|
+
</div><table class="source_code">
|
392
|
+
<tr>
|
393
|
+
<td>
|
394
|
+
<pre class="lines">
|
395
|
+
|
396
|
+
|
397
|
+
556
|
398
|
+
557
|
399
|
+
558</pre>
|
400
|
+
</td>
|
401
|
+
<td>
|
402
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 556</span>
|
403
|
+
|
404
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_require_explicit_policy'>require_explicit_policy</span>
|
405
|
+
<span class='ivar'>@require_explicit_policy</span>
|
406
|
+
<span class='kw'>end</span></pre>
|
407
|
+
</td>
|
408
|
+
</tr>
|
409
|
+
</table>
|
410
|
+
</div>
|
411
|
+
|
412
|
+
</div>
|
413
|
+
|
414
|
+
|
415
|
+
</div>
|
416
|
+
|
417
|
+
<div id="footer">
|
418
|
+
Generated on Tue Apr 16 10:49:58 2013 by
|
419
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
420
|
+
0.8.5 (ruby-1.9.3).
|
421
|
+
</div>
|
422
|
+
|
423
|
+
</body>
|
424
|
+
</html>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: R509::Cert::Extensions::SubjectAlternativeName
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -120,7 +120,18 @@ contents.</p>
|
|
120
120
|
<dl class="constants">
|
121
121
|
|
122
122
|
<dt id="OID-constant" class="">OID =
|
123
|
-
|
123
|
+
<div class="docstring">
|
124
|
+
<div class="discussion">
|
125
|
+
|
126
|
+
<p>friendly name for SAN OID</p>
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
<div class="tags">
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
124
135
|
</dt>
|
125
136
|
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subjectAltName</span><span class='tstring_end'>"</span></span></pre></dd>
|
126
137
|
|
@@ -136,7 +147,7 @@ contents.</p>
|
|
136
147
|
<li class="public ">
|
137
148
|
<span class="summary_signature">
|
138
149
|
|
139
|
-
<a href="#
|
150
|
+
<a href="#general_names-instance_method" title="#general_names (instance method)">- (Object) <strong>general_names</strong> </a>
|
140
151
|
|
141
152
|
|
142
153
|
|
@@ -156,16 +167,29 @@ contents.</p>
|
|
156
167
|
|
157
168
|
|
158
169
|
<span class="summary_desc"><div class='inline'>
|
159
|
-
<p>
|
170
|
+
<p>Returns the value of attribute general_names.</p>
|
160
171
|
</div></span>
|
161
172
|
|
162
173
|
</li>
|
163
174
|
|
164
175
|
|
165
|
-
|
176
|
+
</ul>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<h2>
|
183
|
+
Instance Method Summary
|
184
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
185
|
+
</h2>
|
186
|
+
|
187
|
+
<ul class="summary">
|
188
|
+
|
189
|
+
<li class="public ">
|
166
190
|
<span class="summary_signature">
|
167
191
|
|
168
|
-
<a href="#
|
192
|
+
<a href="#directory_names-instance_method" title="#directory_names (instance method)">- (Array<R509::Subject>) <strong>directory_names</strong> </a>
|
169
193
|
|
170
194
|
|
171
195
|
|
@@ -173,10 +197,29 @@ contents.</p>
|
|
173
197
|
|
174
198
|
|
175
199
|
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
207
|
+
<p>Directory names.</p>
|
208
|
+
</div></span>
|
209
|
+
|
210
|
+
</li>
|
211
|
+
|
212
|
+
|
213
|
+
<li class="public ">
|
214
|
+
<span class="summary_signature">
|
176
215
|
|
177
|
-
<
|
216
|
+
<a href="#dns_names-instance_method" title="#dns_names (instance method)">- (Array<String>) <strong>dns_names</strong> </a>
|
178
217
|
|
218
|
+
|
179
219
|
|
220
|
+
</span>
|
221
|
+
|
222
|
+
|
180
223
|
|
181
224
|
|
182
225
|
|
@@ -185,27 +228,48 @@ contents.</p>
|
|
185
228
|
|
186
229
|
|
187
230
|
<span class="summary_desc"><div class='inline'>
|
188
|
-
<p>
|
231
|
+
<p>DNS names.</p>
|
189
232
|
</div></span>
|
190
233
|
|
191
234
|
</li>
|
192
235
|
|
193
|
-
|
194
|
-
|
236
|
+
|
237
|
+
<li class="public ">
|
195
238
|
<span class="summary_signature">
|
196
239
|
|
197
|
-
<a href="#
|
240
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (SubjectAlternativeName) <strong>initialize</strong>(*args) </a>
|
198
241
|
|
199
242
|
|
200
243
|
|
201
244
|
</span>
|
202
245
|
|
203
246
|
|
247
|
+
<span class="note title constructor">constructor</span>
|
248
|
+
|
249
|
+
|
250
|
+
|
204
251
|
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<span class="summary_desc"><div class='inline'>
|
257
|
+
<p>See OpenSSL::X509::Extension#initialize.</p>
|
258
|
+
</div></span>
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
205
265
|
|
206
|
-
<
|
266
|
+
<a href="#ip_addresses-instance_method" title="#ip_addresses (instance method)">- (Array<String>) <strong>ip_addresses</strong> </a>
|
207
267
|
|
268
|
+
|
208
269
|
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
209
273
|
|
210
274
|
|
211
275
|
|
@@ -214,37 +278,70 @@ contents.</p>
|
|
214
278
|
|
215
279
|
|
216
280
|
<span class="summary_desc"><div class='inline'>
|
217
|
-
<p>
|
281
|
+
<p>IP addresses formatted as dotted quad.</p>
|
218
282
|
</div></span>
|
219
283
|
|
220
284
|
</li>
|
221
285
|
|
286
|
+
|
287
|
+
<li class="public ">
|
288
|
+
<span class="summary_signature">
|
289
|
+
|
290
|
+
<a href="#names-instance_method" title="#names (instance method)">- (Array) <strong>names</strong> </a>
|
222
291
|
|
223
|
-
</ul>
|
224
292
|
|
293
|
+
|
294
|
+
</span>
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
225
302
|
|
303
|
+
|
304
|
+
<span class="summary_desc"><div class='inline'>
|
305
|
+
<p>Array of GeneralName objects preserving order found in the extension.</p>
|
306
|
+
</div></span>
|
307
|
+
|
308
|
+
</li>
|
226
309
|
|
310
|
+
|
311
|
+
<li class="public ">
|
312
|
+
<span class="summary_signature">
|
313
|
+
|
314
|
+
<a href="#rfc_822_names-instance_method" title="#rfc_822_names (instance method)">- (Array<String>) <strong>rfc_822_names</strong> </a>
|
315
|
+
|
227
316
|
|
317
|
+
|
318
|
+
</span>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
228
325
|
|
229
|
-
<h2>
|
230
|
-
Instance Method Summary
|
231
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
232
|
-
</h2>
|
233
326
|
|
234
|
-
|
327
|
+
|
328
|
+
<span class="summary_desc"><div class='inline'>
|
329
|
+
<p>Email addresses.</p>
|
330
|
+
</div></span>
|
331
|
+
|
332
|
+
</li>
|
333
|
+
|
235
334
|
|
236
335
|
<li class="public ">
|
237
336
|
<span class="summary_signature">
|
238
337
|
|
239
|
-
<a href="#
|
338
|
+
<a href="#uris-instance_method" title="#uris (instance method)">- (Array<String>) <strong>uris</strong> </a>
|
240
339
|
|
241
340
|
|
242
341
|
|
243
342
|
</span>
|
244
343
|
|
245
344
|
|
246
|
-
<span class="note title constructor">constructor</span>
|
247
|
-
|
248
345
|
|
249
346
|
|
250
347
|
|
@@ -253,7 +350,7 @@ contents.</p>
|
|
253
350
|
|
254
351
|
|
255
352
|
<span class="summary_desc"><div class='inline'>
|
256
|
-
<p>
|
353
|
+
<p>URIs (not typically found in SAN extensions).</p>
|
257
354
|
</div></span>
|
258
355
|
|
259
356
|
</li>
|
@@ -292,23 +389,27 @@ contents.</p>
|
|
292
389
|
<pre class="lines">
|
293
390
|
|
294
391
|
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
392
|
+
389
|
393
|
+
390
|
394
|
+
391
|
395
|
+
392
|
396
|
+
393
|
397
|
+
394
|
398
|
+
395
|
399
|
+
396
|
400
|
+
397</pre>
|
302
401
|
</td>
|
303
402
|
<td>
|
304
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line
|
403
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 389</span>
|
305
404
|
|
306
405
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
307
406
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
308
407
|
|
309
|
-
<span class='
|
310
|
-
<span class='ivar'>@
|
311
|
-
<span class='
|
408
|
+
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'>R509</span><span class='op'>::</span><span class='const'>ASN1</span><span class='period'>.</span><span class='id identifier rubyid_get_extension_payload'>get_extension_payload</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
409
|
+
<span class='ivar'>@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>
|
410
|
+
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</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_gn'>gn</span><span class='op'>|</span>
|
411
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_add_item'>add_item</span><span class='lparen'>(</span><span class='id identifier rubyid_gn'>gn</span><span class='rparen'>)</span>
|
412
|
+
<span class='kw'>end</span>
|
312
413
|
<span class='kw'>end</span></pre>
|
313
414
|
</td>
|
314
415
|
</tr>
|
@@ -323,9 +424,9 @@ contents.</p>
|
|
323
424
|
|
324
425
|
<span id=""></span>
|
325
426
|
<div class="method_details first">
|
326
|
-
<h3 class="signature first" id="
|
427
|
+
<h3 class="signature first" id="general_names-instance_method">
|
327
428
|
|
328
|
-
- (<tt>Object</tt>) <strong>
|
429
|
+
- (<tt>Object</tt>) <strong>general_names</strong> <span class="extras">(readonly)</span>
|
329
430
|
|
330
431
|
|
331
432
|
|
@@ -334,7 +435,7 @@ contents.</p>
|
|
334
435
|
</h3><div class="docstring">
|
335
436
|
<div class="discussion">
|
336
437
|
|
337
|
-
<p>
|
438
|
+
<p>Returns the value of attribute general_names</p>
|
338
439
|
|
339
440
|
|
340
441
|
</div>
|
@@ -348,27 +449,150 @@ contents.</p>
|
|
348
449
|
<pre class="lines">
|
349
450
|
|
350
451
|
|
351
|
-
|
352
|
-
|
353
|
-
|
452
|
+
386
|
453
|
+
387
|
454
|
+
388</pre>
|
354
455
|
</td>
|
355
456
|
<td>
|
356
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line
|
457
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 386</span>
|
357
458
|
|
358
|
-
<span class='kw'>def</span> <span class='id identifier
|
359
|
-
<span class='ivar'>@
|
459
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_general_names'>general_names</span>
|
460
|
+
<span class='ivar'>@general_names</span>
|
360
461
|
<span class='kw'>end</span></pre>
|
361
462
|
</td>
|
362
463
|
</tr>
|
363
464
|
</table>
|
364
465
|
</div>
|
365
466
|
|
467
|
+
</div>
|
468
|
+
|
469
|
+
|
470
|
+
<div id="instance_method_details" class="method_details_list">
|
471
|
+
<h2>Instance Method Details</h2>
|
472
|
+
|
473
|
+
|
474
|
+
<div class="method_details first">
|
475
|
+
<h3 class="signature first" id="directory_names-instance_method">
|
476
|
+
|
477
|
+
- (<tt>Array<<span class='object_link'><a href="../../Subject.html" title="R509::Subject (class)">R509::Subject</a></span>></tt>) <strong>directory_names</strong>
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
</h3><div class="docstring">
|
484
|
+
<div class="discussion">
|
485
|
+
|
486
|
+
<p>Directory names</p>
|
487
|
+
|
488
|
+
|
489
|
+
</div>
|
490
|
+
</div>
|
491
|
+
<div class="tags">
|
492
|
+
|
493
|
+
<p class="tag_title">Returns:</p>
|
494
|
+
<ul class="return">
|
495
|
+
|
496
|
+
<li>
|
366
497
|
|
367
|
-
|
498
|
+
|
499
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="../../Subject.html" title="R509::Subject (class)">R509::Subject</a></span>></tt>)</span>
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
—
|
504
|
+
<div class='inline'>
|
505
|
+
<p>directory names</p>
|
506
|
+
</div>
|
507
|
+
|
508
|
+
</li>
|
509
|
+
|
510
|
+
</ul>
|
511
|
+
|
512
|
+
</div><table class="source_code">
|
513
|
+
<tr>
|
514
|
+
<td>
|
515
|
+
<pre class="lines">
|
516
|
+
|
517
|
+
|
518
|
+
420
|
519
|
+
421
|
520
|
+
422</pre>
|
521
|
+
</td>
|
522
|
+
<td>
|
523
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 420</span>
|
524
|
+
|
525
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_directory_names'>directory_names</span>
|
526
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_directory_names'>directory_names</span>
|
527
|
+
<span class='kw'>end</span></pre>
|
528
|
+
</td>
|
529
|
+
</tr>
|
530
|
+
</table>
|
531
|
+
</div>
|
532
|
+
|
533
|
+
<div class="method_details ">
|
534
|
+
<h3 class="signature " id="dns_names-instance_method">
|
535
|
+
|
536
|
+
- (<tt>Array<String></tt>) <strong>dns_names</strong>
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
</h3><div class="docstring">
|
543
|
+
<div class="discussion">
|
544
|
+
|
545
|
+
<p>DNS names</p>
|
546
|
+
|
547
|
+
|
548
|
+
</div>
|
549
|
+
</div>
|
550
|
+
<div class="tags">
|
551
|
+
|
552
|
+
<p class="tag_title">Returns:</p>
|
553
|
+
<ul class="return">
|
554
|
+
|
555
|
+
<li>
|
556
|
+
|
557
|
+
|
558
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
—
|
563
|
+
<div class='inline'>
|
564
|
+
<p>DNS names</p>
|
565
|
+
</div>
|
566
|
+
|
567
|
+
</li>
|
568
|
+
|
569
|
+
</ul>
|
570
|
+
|
571
|
+
</div><table class="source_code">
|
572
|
+
<tr>
|
573
|
+
<td>
|
574
|
+
<pre class="lines">
|
575
|
+
|
576
|
+
|
577
|
+
400
|
578
|
+
401
|
579
|
+
402</pre>
|
580
|
+
</td>
|
581
|
+
<td>
|
582
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 400</span>
|
583
|
+
|
584
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_dns_names'>dns_names</span>
|
585
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_dns_names'>dns_names</span>
|
586
|
+
<span class='kw'>end</span></pre>
|
587
|
+
</td>
|
588
|
+
</tr>
|
589
|
+
</table>
|
590
|
+
</div>
|
591
|
+
|
368
592
|
<div class="method_details ">
|
369
593
|
<h3 class="signature " id="ip_addresses-instance_method">
|
370
594
|
|
371
|
-
- (<tt>
|
595
|
+
- (<tt>Array<String></tt>) <strong>ip_addresses</strong>
|
372
596
|
|
373
597
|
|
374
598
|
|
@@ -377,13 +601,31 @@ contents.</p>
|
|
377
601
|
</h3><div class="docstring">
|
378
602
|
<div class="discussion">
|
379
603
|
|
380
|
-
<p>
|
604
|
+
<p>IP addresses formatted as dotted quad</p>
|
381
605
|
|
382
606
|
|
383
607
|
</div>
|
384
608
|
</div>
|
385
609
|
<div class="tags">
|
386
610
|
|
611
|
+
<p class="tag_title">Returns:</p>
|
612
|
+
<ul class="return">
|
613
|
+
|
614
|
+
<li>
|
615
|
+
|
616
|
+
|
617
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
—
|
622
|
+
<div class='inline'>
|
623
|
+
<p>IP addresses formatted as dotted quad</p>
|
624
|
+
</div>
|
625
|
+
|
626
|
+
</li>
|
627
|
+
|
628
|
+
</ul>
|
387
629
|
|
388
630
|
</div><table class="source_code">
|
389
631
|
<tr>
|
@@ -391,27 +633,143 @@ contents.</p>
|
|
391
633
|
<pre class="lines">
|
392
634
|
|
393
635
|
|
394
|
-
|
395
|
-
|
396
|
-
|
636
|
+
405
|
637
|
+
406
|
638
|
+
407</pre>
|
397
639
|
</td>
|
398
640
|
<td>
|
399
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line
|
641
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 405</span>
|
400
642
|
|
401
643
|
<span class='kw'>def</span> <span class='id identifier rubyid_ip_addresses'>ip_addresses</span>
|
402
|
-
<span class='ivar'>@ip_addresses</span>
|
644
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_ip_addresses'>ip_addresses</span>
|
645
|
+
<span class='kw'>end</span></pre>
|
646
|
+
</td>
|
647
|
+
</tr>
|
648
|
+
</table>
|
649
|
+
</div>
|
650
|
+
|
651
|
+
<div class="method_details ">
|
652
|
+
<h3 class="signature " id="names-instance_method">
|
653
|
+
|
654
|
+
- (<tt>Array</tt>) <strong>names</strong>
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
</h3><div class="docstring">
|
661
|
+
<div class="discussion">
|
662
|
+
|
663
|
+
<p>Array of GeneralName objects preserving order found in the extension</p>
|
664
|
+
|
665
|
+
|
666
|
+
</div>
|
667
|
+
</div>
|
668
|
+
<div class="tags">
|
669
|
+
|
670
|
+
<p class="tag_title">Returns:</p>
|
671
|
+
<ul class="return">
|
672
|
+
|
673
|
+
<li>
|
674
|
+
|
675
|
+
|
676
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
—
|
681
|
+
<div class='inline'>
|
682
|
+
<p>array of GeneralName objects preserving order found in the extension</p>
|
683
|
+
</div>
|
684
|
+
|
685
|
+
</li>
|
686
|
+
|
687
|
+
</ul>
|
688
|
+
|
689
|
+
</div><table class="source_code">
|
690
|
+
<tr>
|
691
|
+
<td>
|
692
|
+
<pre class="lines">
|
693
|
+
|
694
|
+
|
695
|
+
425
|
696
|
+
426
|
697
|
+
427</pre>
|
698
|
+
</td>
|
699
|
+
<td>
|
700
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 425</span>
|
701
|
+
|
702
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_names'>names</span>
|
703
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_names'>names</span>
|
403
704
|
<span class='kw'>end</span></pre>
|
404
705
|
</td>
|
405
706
|
</tr>
|
406
707
|
</table>
|
407
708
|
</div>
|
408
709
|
|
710
|
+
<div class="method_details ">
|
711
|
+
<h3 class="signature " id="rfc_822_names-instance_method">
|
712
|
+
|
713
|
+
- (<tt>Array<String></tt>) <strong>rfc_822_names</strong>
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
</h3><div class="docstring">
|
720
|
+
<div class="discussion">
|
721
|
+
|
722
|
+
<p>Email addresses</p>
|
723
|
+
|
724
|
+
|
725
|
+
</div>
|
726
|
+
</div>
|
727
|
+
<div class="tags">
|
728
|
+
|
729
|
+
<p class="tag_title">Returns:</p>
|
730
|
+
<ul class="return">
|
731
|
+
|
732
|
+
<li>
|
409
733
|
|
410
|
-
|
734
|
+
|
735
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
—
|
740
|
+
<div class='inline'>
|
741
|
+
<p>email addresses</p>
|
742
|
+
</div>
|
743
|
+
|
744
|
+
</li>
|
745
|
+
|
746
|
+
</ul>
|
747
|
+
|
748
|
+
</div><table class="source_code">
|
749
|
+
<tr>
|
750
|
+
<td>
|
751
|
+
<pre class="lines">
|
752
|
+
|
753
|
+
|
754
|
+
410
|
755
|
+
411
|
756
|
+
412</pre>
|
757
|
+
</td>
|
758
|
+
<td>
|
759
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 410</span>
|
760
|
+
|
761
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rfc_822_names'>rfc_822_names</span>
|
762
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_rfc_822_names'>rfc_822_names</span>
|
763
|
+
<span class='kw'>end</span></pre>
|
764
|
+
</td>
|
765
|
+
</tr>
|
766
|
+
</table>
|
767
|
+
</div>
|
768
|
+
|
411
769
|
<div class="method_details ">
|
412
770
|
<h3 class="signature " id="uris-instance_method">
|
413
771
|
|
414
|
-
- (<tt>
|
772
|
+
- (<tt>Array<String></tt>) <strong>uris</strong>
|
415
773
|
|
416
774
|
|
417
775
|
|
@@ -420,13 +778,31 @@ contents.</p>
|
|
420
778
|
</h3><div class="docstring">
|
421
779
|
<div class="discussion">
|
422
780
|
|
423
|
-
<p>
|
781
|
+
<p>URIs (not typically found in SAN extensions)</p>
|
424
782
|
|
425
783
|
|
426
784
|
</div>
|
427
785
|
</div>
|
428
786
|
<div class="tags">
|
429
787
|
|
788
|
+
<p class="tag_title">Returns:</p>
|
789
|
+
<ul class="return">
|
790
|
+
|
791
|
+
<li>
|
792
|
+
|
793
|
+
|
794
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
795
|
+
|
796
|
+
|
797
|
+
|
798
|
+
—
|
799
|
+
<div class='inline'>
|
800
|
+
<p>URIs (not typically found in SAN extensions)</p>
|
801
|
+
</div>
|
802
|
+
|
803
|
+
</li>
|
804
|
+
|
805
|
+
</ul>
|
430
806
|
|
431
807
|
</div><table class="source_code">
|
432
808
|
<tr>
|
@@ -434,15 +810,15 @@ contents.</p>
|
|
434
810
|
<pre class="lines">
|
435
811
|
|
436
812
|
|
437
|
-
|
438
|
-
|
439
|
-
|
813
|
+
415
|
814
|
+
416
|
815
|
+
417</pre>
|
440
816
|
</td>
|
441
817
|
<td>
|
442
|
-
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line
|
818
|
+
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 415</span>
|
443
819
|
|
444
820
|
<span class='kw'>def</span> <span class='id identifier rubyid_uris'>uris</span>
|
445
|
-
<span class='ivar'>@uris</span>
|
821
|
+
<span class='ivar'>@general_names</span><span class='period'>.</span><span class='id identifier rubyid_uris'>uris</span>
|
446
822
|
<span class='kw'>end</span></pre>
|
447
823
|
</td>
|
448
824
|
</tr>
|
@@ -451,13 +827,12 @@ contents.</p>
|
|
451
827
|
|
452
828
|
</div>
|
453
829
|
|
454
|
-
|
455
830
|
</div>
|
456
831
|
|
457
832
|
<div id="footer">
|
458
|
-
Generated on
|
833
|
+
Generated on Tue Apr 16 10:49:58 2013 by
|
459
834
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
460
|
-
0.8.
|
835
|
+
0.8.5 (ruby-1.9.3).
|
461
836
|
</div>
|
462
837
|
|
463
838
|
</body>
|