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
|
Class: R509::Cert::Extensions::KeyUsage
|
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::KeyUsage";
|
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 (K)</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">KeyUsage</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::KeyUsage
|
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>
|
88
|
+
|
89
|
+
|
90
90
|
|
91
91
|
|
92
|
-
|
93
92
|
|
94
|
-
|
95
|
-
|
96
|
-
<
|
97
|
-
|
98
|
-
|
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>
|
99
98
|
|
100
99
|
|
100
|
+
|
101
|
+
|
102
|
+
|
101
103
|
|
102
|
-
|
103
|
-
<
|
104
|
+
<dl>
|
105
|
+
<dt>Defined in:</dt>
|
106
|
+
<dd>lib/r509/cert/extensions/key_usage.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">
|
@@ -131,11 +134,10 @@ to the contents or create a new one.</p>
|
|
131
134
|
|
132
135
|
</div>
|
133
136
|
<h2>Constant Summary</h2>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<
|
138
|
-
<div class="docstring">
|
137
|
+
<dl class="constants">
|
138
|
+
|
139
|
+
<dt id="OID-constant" class="">OID =
|
140
|
+
<div class="docstring">
|
139
141
|
<div class="discussion">
|
140
142
|
|
141
143
|
<p>friendly name for KeyUsage OID</p>
|
@@ -147,11 +149,11 @@ to the contents or create a new one.</p>
|
|
147
149
|
|
148
150
|
|
149
151
|
</div>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
152
|
+
</dt>
|
153
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>keyUsage</span><span class='tstring_end'>"</span></span></pre></dd>
|
154
|
+
|
155
|
+
<dt id="AU_DIGITAL_SIGNATURE-constant" class="">AU_DIGITAL_SIGNATURE =
|
156
|
+
<div class="docstring">
|
155
157
|
<div class="discussion">
|
156
158
|
|
157
159
|
<p>OpenSSL short name for Digital Signature</p>
|
@@ -163,11 +165,11 @@ to the contents or create a new one.</p>
|
|
163
165
|
|
164
166
|
|
165
167
|
</div>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
168
|
+
</dt>
|
169
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>digitalSignature</span><span class='tstring_end'>"</span></span></pre></dd>
|
170
|
+
|
171
|
+
<dt id="AU_NON_REPUDIATION-constant" class="">AU_NON_REPUDIATION =
|
172
|
+
<div class="docstring">
|
171
173
|
<div class="discussion">
|
172
174
|
|
173
175
|
<p>OpenSSL short name for Non Repudiation (also known as content commitment)</p>
|
@@ -179,11 +181,11 @@ to the contents or create a new one.</p>
|
|
179
181
|
|
180
182
|
|
181
183
|
</div>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
184
|
+
</dt>
|
185
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>nonRepudiation</span><span class='tstring_end'>"</span></span></pre></dd>
|
186
|
+
|
187
|
+
<dt id="AU_KEY_ENCIPHERMENT-constant" class="">AU_KEY_ENCIPHERMENT =
|
188
|
+
<div class="docstring">
|
187
189
|
<div class="discussion">
|
188
190
|
|
189
191
|
<p>OpenSSL short name for Key Encipherment</p>
|
@@ -195,11 +197,11 @@ to the contents or create a new one.</p>
|
|
195
197
|
|
196
198
|
|
197
199
|
</div>
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
200
|
+
</dt>
|
201
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>keyEncipherment</span><span class='tstring_end'>"</span></span></pre></dd>
|
202
|
+
|
203
|
+
<dt id="AU_DATA_ENCIPHERMENT-constant" class="">AU_DATA_ENCIPHERMENT =
|
204
|
+
<div class="docstring">
|
203
205
|
<div class="discussion">
|
204
206
|
|
205
207
|
<p>OpenSSL short name for Data Encipherment</p>
|
@@ -211,11 +213,11 @@ to the contents or create a new one.</p>
|
|
211
213
|
|
212
214
|
|
213
215
|
</div>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
216
|
+
</dt>
|
217
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>dataEncipherment</span><span class='tstring_end'>"</span></span></pre></dd>
|
218
|
+
|
219
|
+
<dt id="AU_KEY_AGREEMENT-constant" class="">AU_KEY_AGREEMENT =
|
220
|
+
<div class="docstring">
|
219
221
|
<div class="discussion">
|
220
222
|
|
221
223
|
<p>OpenSSL short name for Key Agreement</p>
|
@@ -227,11 +229,11 @@ to the contents or create a new one.</p>
|
|
227
229
|
|
228
230
|
|
229
231
|
</div>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
232
|
+
</dt>
|
233
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>keyAgreement</span><span class='tstring_end'>"</span></span></pre></dd>
|
234
|
+
|
235
|
+
<dt id="AU_KEY_CERT_SIGN-constant" class="">AU_KEY_CERT_SIGN =
|
236
|
+
<div class="docstring">
|
235
237
|
<div class="discussion">
|
236
238
|
|
237
239
|
<p>OpenSSL short name for Certificate Sign</p>
|
@@ -243,11 +245,11 @@ to the contents or create a new one.</p>
|
|
243
245
|
|
244
246
|
|
245
247
|
</div>
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
</dt>
|
249
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>keyCertSign</span><span class='tstring_end'>"</span></span></pre></dd>
|
250
|
+
|
251
|
+
<dt id="AU_CRL_SIGN-constant" class="">AU_CRL_SIGN =
|
252
|
+
<div class="docstring">
|
251
253
|
<div class="discussion">
|
252
254
|
|
253
255
|
<p>OpenSSL short name for CRL Sign</p>
|
@@ -259,11 +261,11 @@ to the contents or create a new one.</p>
|
|
259
261
|
|
260
262
|
|
261
263
|
</div>
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
264
|
+
</dt>
|
265
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>cRLSign</span><span class='tstring_end'>"</span></span></pre></dd>
|
266
|
+
|
267
|
+
<dt id="AU_ENCIPHER_ONLY-constant" class="">AU_ENCIPHER_ONLY =
|
268
|
+
<div class="docstring">
|
267
269
|
<div class="discussion">
|
268
270
|
|
269
271
|
<p>OpenSSL short name for Encipher Only</p>
|
@@ -275,11 +277,11 @@ to the contents or create a new one.</p>
|
|
275
277
|
|
276
278
|
|
277
279
|
</div>
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
280
|
+
</dt>
|
281
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>encipherOnly</span><span class='tstring_end'>"</span></span></pre></dd>
|
282
|
+
|
283
|
+
<dt id="AU_DECIPHER_ONLY-constant" class="">AU_DECIPHER_ONLY =
|
284
|
+
<div class="docstring">
|
283
285
|
<div class="discussion">
|
284
286
|
|
285
287
|
<p>OpenSSL short name for Decipher Only</p>
|
@@ -291,22 +293,21 @@ to the contents or create a new one.</p>
|
|
291
293
|
|
292
294
|
|
293
295
|
</div>
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
296
|
+
</dt>
|
297
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>decipherOnly</span><span class='tstring_end'>"</span></span></pre></dd>
|
298
|
+
|
299
|
+
</dl>
|
299
300
|
|
300
301
|
|
301
302
|
|
302
303
|
|
303
|
-
<h2>Instance Attribute Summary <small
|
304
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
304
305
|
<ul class="summary">
|
305
306
|
|
306
307
|
<li class="public ">
|
307
308
|
<span class="summary_signature">
|
308
309
|
|
309
|
-
<a href="#allowed_uses-instance_method" title="#allowed_uses (instance method)"
|
310
|
+
<a href="#allowed_uses-instance_method" title="#allowed_uses (instance method)">#<strong>allowed_uses</strong> ⇒ Array<sup>?</sup> </a>
|
310
311
|
|
311
312
|
|
312
313
|
|
@@ -340,7 +341,7 @@ to the contents or create a new one.</p>
|
|
340
341
|
|
341
342
|
<h2>
|
342
343
|
Instance Method Summary
|
343
|
-
<small
|
344
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
344
345
|
</h2>
|
345
346
|
|
346
347
|
<ul class="summary">
|
@@ -348,7 +349,7 @@ to the contents or create a new one.</p>
|
|
348
349
|
<li class="public ">
|
349
350
|
<span class="summary_signature">
|
350
351
|
|
351
|
-
<a href="#allows%3F-instance_method" title="#allows? (instance method)"
|
352
|
+
<a href="#allows%3F-instance_method" title="#allows? (instance method)">#<strong>allows?</strong>(friendly_use_name) ⇒ Boolean </a>
|
352
353
|
|
353
354
|
|
354
355
|
|
@@ -372,7 +373,7 @@ to the contents or create a new one.</p>
|
|
372
373
|
<li class="public ">
|
373
374
|
<span class="summary_signature">
|
374
375
|
|
375
|
-
<a href="#crl_sign%3F-instance_method" title="#crl_sign? (instance method)"
|
376
|
+
<a href="#crl_sign%3F-instance_method" title="#crl_sign? (instance method)">#<strong>crl_sign?</strong> ⇒ Boolean </a>
|
376
377
|
|
377
378
|
|
378
379
|
|
@@ -394,7 +395,7 @@ to the contents or create a new one.</p>
|
|
394
395
|
<li class="public ">
|
395
396
|
<span class="summary_signature">
|
396
397
|
|
397
|
-
<a href="#data_encipherment%3F-instance_method" title="#data_encipherment? (instance method)"
|
398
|
+
<a href="#data_encipherment%3F-instance_method" title="#data_encipherment? (instance method)">#<strong>data_encipherment?</strong> ⇒ Boolean </a>
|
398
399
|
|
399
400
|
|
400
401
|
|
@@ -416,7 +417,7 @@ to the contents or create a new one.</p>
|
|
416
417
|
<li class="public ">
|
417
418
|
<span class="summary_signature">
|
418
419
|
|
419
|
-
<a href="#decipher_only%3F-instance_method" title="#decipher_only? (instance method)"
|
420
|
+
<a href="#decipher_only%3F-instance_method" title="#decipher_only? (instance method)">#<strong>decipher_only?</strong> ⇒ Boolean </a>
|
420
421
|
|
421
422
|
|
422
423
|
|
@@ -438,7 +439,7 @@ to the contents or create a new one.</p>
|
|
438
439
|
<li class="public ">
|
439
440
|
<span class="summary_signature">
|
440
441
|
|
441
|
-
<a href="#digital_signature%3F-instance_method" title="#digital_signature? (instance method)"
|
442
|
+
<a href="#digital_signature%3F-instance_method" title="#digital_signature? (instance method)">#<strong>digital_signature?</strong> ⇒ Boolean </a>
|
442
443
|
|
443
444
|
|
444
445
|
|
@@ -460,7 +461,7 @@ to the contents or create a new one.</p>
|
|
460
461
|
<li class="public ">
|
461
462
|
<span class="summary_signature">
|
462
463
|
|
463
|
-
<a href="#encipher_only%3F-instance_method" title="#encipher_only? (instance method)"
|
464
|
+
<a href="#encipher_only%3F-instance_method" title="#encipher_only? (instance method)">#<strong>encipher_only?</strong> ⇒ Boolean </a>
|
464
465
|
|
465
466
|
|
466
467
|
|
@@ -482,7 +483,7 @@ to the contents or create a new one.</p>
|
|
482
483
|
<li class="public ">
|
483
484
|
<span class="summary_signature">
|
484
485
|
|
485
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
486
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(arg) ⇒ KeyUsage </a>
|
486
487
|
|
487
488
|
|
488
489
|
|
@@ -508,7 +509,7 @@ to the contents or create a new one.</p>
|
|
508
509
|
<li class="public ">
|
509
510
|
<span class="summary_signature">
|
510
511
|
|
511
|
-
<a href="#key_agreement%3F-instance_method" title="#key_agreement? (instance method)"
|
512
|
+
<a href="#key_agreement%3F-instance_method" title="#key_agreement? (instance method)">#<strong>key_agreement?</strong> ⇒ Boolean </a>
|
512
513
|
|
513
514
|
|
514
515
|
|
@@ -530,7 +531,7 @@ to the contents or create a new one.</p>
|
|
530
531
|
<li class="public ">
|
531
532
|
<span class="summary_signature">
|
532
533
|
|
533
|
-
<a href="#key_cert_sign%3F-instance_method" title="#key_cert_sign? (instance method)"
|
534
|
+
<a href="#key_cert_sign%3F-instance_method" title="#key_cert_sign? (instance method)">#<strong>key_cert_sign?</strong> ⇒ Boolean </a>
|
534
535
|
|
535
536
|
|
536
537
|
|
@@ -552,7 +553,7 @@ to the contents or create a new one.</p>
|
|
552
553
|
<li class="public ">
|
553
554
|
<span class="summary_signature">
|
554
555
|
|
555
|
-
<a href="#key_encipherment%3F-instance_method" title="#key_encipherment? (instance method)"
|
556
|
+
<a href="#key_encipherment%3F-instance_method" title="#key_encipherment? (instance method)">#<strong>key_encipherment?</strong> ⇒ Boolean </a>
|
556
557
|
|
557
558
|
|
558
559
|
|
@@ -574,7 +575,7 @@ to the contents or create a new one.</p>
|
|
574
575
|
<li class="public ">
|
575
576
|
<span class="summary_signature">
|
576
577
|
|
577
|
-
<a href="#non_repudiation%3F-instance_method" title="#non_repudiation? (instance method)"
|
578
|
+
<a href="#non_repudiation%3F-instance_method" title="#non_repudiation? (instance method)">#<strong>non_repudiation?</strong> ⇒ Boolean </a>
|
578
579
|
|
579
580
|
|
580
581
|
|
@@ -596,7 +597,7 @@ to the contents or create a new one.</p>
|
|
596
597
|
<li class="public ">
|
597
598
|
<span class="summary_signature">
|
598
599
|
|
599
|
-
<a href="#to_h-instance_method" title="#to_h (instance method)"
|
600
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒ Hash </a>
|
600
601
|
|
601
602
|
|
602
603
|
|
@@ -618,7 +619,7 @@ to the contents or create a new one.</p>
|
|
618
619
|
<li class="public ">
|
619
620
|
<span class="summary_signature">
|
620
621
|
|
621
|
-
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)"
|
622
|
+
<a href="#to_yaml-instance_method" title="#to_yaml (instance method)">#<strong>to_yaml</strong> ⇒ YAML </a>
|
622
623
|
|
623
624
|
|
624
625
|
|
@@ -649,7 +650,7 @@ to the contents or create a new one.</p>
|
|
649
650
|
<div class="method_details first">
|
650
651
|
<h3 class="signature first" id="initialize-instance_method">
|
651
652
|
|
652
|
-
|
653
|
+
#<strong>initialize</strong>(arg) ⇒ <tt><span class='object_link'><a href="" title="R509::Cert::Extensions::KeyUsage (class)">KeyUsage</a></span></tt>
|
653
654
|
|
654
655
|
|
655
656
|
|
@@ -670,7 +671,8 @@ to the contents or create a new one.</p>
|
|
670
671
|
<span class='id identifier rubyid_keyCertSign'>keyCertSign</span>
|
671
672
|
<span class='id identifier rubyid_cRLSign'>cRLSign</span>
|
672
673
|
<span class='id identifier rubyid_encipherOnly'>encipherOnly</span>
|
673
|
-
<span class='id identifier rubyid_decipherOnly'>decipherOnly</span
|
674
|
+
<span class='id identifier rubyid_decipherOnly'>decipherOnly</span>
|
675
|
+
</code></pre>
|
674
676
|
|
675
677
|
|
676
678
|
</div>
|
@@ -758,7 +760,7 @@ to the contents or create a new one.</p>
|
|
758
760
|
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/key_usage.rb', line 71</span>
|
759
761
|
|
760
762
|
<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>
|
761
|
-
<span class='kw'>
|
763
|
+
<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>
|
762
764
|
<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>
|
763
765
|
<span class='kw'>end</span>
|
764
766
|
|
@@ -780,7 +782,7 @@ to the contents or create a new one.</p>
|
|
780
782
|
<div class="method_details first">
|
781
783
|
<h3 class="signature first" id="allowed_uses-instance_method">
|
782
784
|
|
783
|
-
|
785
|
+
#<strong>allowed_uses</strong> ⇒ <tt>Array</tt><sup>?</sup> <span class="extras">(readonly)</span>
|
784
786
|
|
785
787
|
|
786
788
|
|
@@ -841,7 +843,7 @@ to the contents or create a new one.</p>
|
|
841
843
|
<div class="method_details first">
|
842
844
|
<h3 class="signature first" id="allows?-instance_method">
|
843
845
|
|
844
|
-
|
846
|
+
#<strong>allows?</strong>(friendly_use_name) ⇒ <tt>Boolean</tt>
|
845
847
|
|
846
848
|
|
847
849
|
|
@@ -905,8 +907,8 @@ AU_* constants in this class</p>
|
|
905
907
|
<td>
|
906
908
|
<pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/key_usage.rb', line 84</span>
|
907
909
|
|
908
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span
|
909
|
-
<span class='ivar'>@allowed_uses</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span
|
910
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span><span class='id identifier rubyid_friendly_use_name'>friendly_use_name</span><span class='rparen'>)</span>
|
911
|
+
<span class='ivar'>@allowed_uses</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_friendly_use_name'>friendly_use_name</span><span class='rparen'>)</span>
|
910
912
|
<span class='kw'>end</span></pre>
|
911
913
|
</td>
|
912
914
|
</tr>
|
@@ -916,7 +918,7 @@ AU_* constants in this class</p>
|
|
916
918
|
<div class="method_details ">
|
917
919
|
<h3 class="signature " id="crl_sign?-instance_method">
|
918
920
|
|
919
|
-
|
921
|
+
#<strong>crl_sign?</strong> ⇒ <tt>Boolean</tt>
|
920
922
|
|
921
923
|
|
922
924
|
|
@@ -968,7 +970,7 @@ AU_* constants in this class</p>
|
|
968
970
|
<div class="method_details ">
|
969
971
|
<h3 class="signature " id="data_encipherment?-instance_method">
|
970
972
|
|
971
|
-
|
973
|
+
#<strong>data_encipherment?</strong> ⇒ <tt>Boolean</tt>
|
972
974
|
|
973
975
|
|
974
976
|
|
@@ -1020,7 +1022,7 @@ AU_* constants in this class</p>
|
|
1020
1022
|
<div class="method_details ">
|
1021
1023
|
<h3 class="signature " id="decipher_only?-instance_method">
|
1022
1024
|
|
1023
|
-
|
1025
|
+
#<strong>decipher_only?</strong> ⇒ <tt>Boolean</tt>
|
1024
1026
|
|
1025
1027
|
|
1026
1028
|
|
@@ -1072,7 +1074,7 @@ AU_* constants in this class</p>
|
|
1072
1074
|
<div class="method_details ">
|
1073
1075
|
<h3 class="signature " id="digital_signature?-instance_method">
|
1074
1076
|
|
1075
|
-
|
1077
|
+
#<strong>digital_signature?</strong> ⇒ <tt>Boolean</tt>
|
1076
1078
|
|
1077
1079
|
|
1078
1080
|
|
@@ -1124,7 +1126,7 @@ AU_* constants in this class</p>
|
|
1124
1126
|
<div class="method_details ">
|
1125
1127
|
<h3 class="signature " id="encipher_only?-instance_method">
|
1126
1128
|
|
1127
|
-
|
1129
|
+
#<strong>encipher_only?</strong> ⇒ <tt>Boolean</tt>
|
1128
1130
|
|
1129
1131
|
|
1130
1132
|
|
@@ -1176,7 +1178,7 @@ AU_* constants in this class</p>
|
|
1176
1178
|
<div class="method_details ">
|
1177
1179
|
<h3 class="signature " id="key_agreement?-instance_method">
|
1178
1180
|
|
1179
|
-
|
1181
|
+
#<strong>key_agreement?</strong> ⇒ <tt>Boolean</tt>
|
1180
1182
|
|
1181
1183
|
|
1182
1184
|
|
@@ -1228,7 +1230,7 @@ AU_* constants in this class</p>
|
|
1228
1230
|
<div class="method_details ">
|
1229
1231
|
<h3 class="signature " id="key_cert_sign?-instance_method">
|
1230
1232
|
|
1231
|
-
|
1233
|
+
#<strong>key_cert_sign?</strong> ⇒ <tt>Boolean</tt>
|
1232
1234
|
|
1233
1235
|
|
1234
1236
|
|
@@ -1280,7 +1282,7 @@ AU_* constants in this class</p>
|
|
1280
1282
|
<div class="method_details ">
|
1281
1283
|
<h3 class="signature " id="key_encipherment?-instance_method">
|
1282
1284
|
|
1283
|
-
|
1285
|
+
#<strong>key_encipherment?</strong> ⇒ <tt>Boolean</tt>
|
1284
1286
|
|
1285
1287
|
|
1286
1288
|
|
@@ -1332,7 +1334,7 @@ AU_* constants in this class</p>
|
|
1332
1334
|
<div class="method_details ">
|
1333
1335
|
<h3 class="signature " id="non_repudiation?-instance_method">
|
1334
1336
|
|
1335
|
-
|
1337
|
+
#<strong>non_repudiation?</strong> ⇒ <tt>Boolean</tt>
|
1336
1338
|
|
1337
1339
|
|
1338
1340
|
|
@@ -1384,7 +1386,7 @@ AU_* constants in this class</p>
|
|
1384
1386
|
<div class="method_details ">
|
1385
1387
|
<h3 class="signature " id="to_h-instance_method">
|
1386
1388
|
|
1387
|
-
|
1389
|
+
#<strong>to_h</strong> ⇒ <tt>Hash</tt>
|
1388
1390
|
|
1389
1391
|
|
1390
1392
|
|
@@ -1442,7 +1444,7 @@ AU_* constants in this class</p>
|
|
1442
1444
|
<div class="method_details ">
|
1443
1445
|
<h3 class="signature " id="to_yaml-instance_method">
|
1444
1446
|
|
1445
|
-
|
1447
|
+
#<strong>to_yaml</strong> ⇒ <tt>YAML</tt>
|
1446
1448
|
|
1447
1449
|
|
1448
1450
|
|
@@ -1495,11 +1497,12 @@ AU_* constants in this class</p>
|
|
1495
1497
|
|
1496
1498
|
</div>
|
1497
1499
|
|
1498
|
-
|
1499
|
-
Generated on
|
1500
|
+
<div id="footer">
|
1501
|
+
Generated on Tue Dec 6 17:27:41 2016 by
|
1500
1502
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1501
|
-
0.
|
1503
|
+
0.9.5 (ruby-2.4.0).
|
1502
1504
|
</div>
|
1503
1505
|
|
1506
|
+
</div>
|
1504
1507
|
</body>
|
1505
1508
|
</html>
|