doc/R509/Cert/Extensions/KeyUsage.html in r509-0.8.1 vs doc/R509/Cert/Extensions/KeyUsage.html in r509-0.9
- old
+ new
@@ -4,11 +4,11 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: R509::Cert::Extensions::KeyUsage
- — Documentation by YARD 0.8.2.1
+ — Documentation by YARD 0.8.5
</title>
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
@@ -117,157 +117,168 @@
<h2>Constant Summary</h2>
<dl class="constants">
<dt id="OID-constant" class="">OID =
-
+ <div class="docstring">
+ <div class="discussion">
+
+<p>friendly name for KeyUsage OID</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div>
</dt>
<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>
<dt id="AU_DIGITAL_SIGNATURE-constant" class="">AU_DIGITAL_SIGNATURE =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "digitalSignature" key use.</p>
+<p>OpenSSL short name for Digital Signature</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Digital Signature</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_NON_REPUDIATION-constant" class="">AU_NON_REPUDIATION =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "nonRepudiation" key use.</p>
+<p>OpenSSL short name for Non Repudiation (also known as content commitment)</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Non Repudiation</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_KEY_ENCIPHERMENT-constant" class="">AU_KEY_ENCIPHERMENT =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "keyEncipherment" key use.</p>
+<p>OpenSSL short name for Key Encipherment</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Key Encipherment</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_DATA_ENCIPHERMENT-constant" class="">AU_DATA_ENCIPHERMENT =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "dataEncipherment" key use.</p>
+<p>OpenSSL short name for Data Encipherment</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Data Encipherment</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_KEY_AGREEMENT-constant" class="">AU_KEY_AGREEMENT =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "keyAgreement" key use.</p>
+<p>OpenSSL short name for Key Agreement</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Key Agreement</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
- <dt id="AU_CERTIFICATE_SIGN-constant" class="">AU_CERTIFICATE_SIGN =
+ <dt id="AU_KEY_CERT_SIGN-constant" class="">AU_KEY_CERT_SIGN =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "keyCertSign" key use.</p>
+<p>OpenSSL short name for Certificate Sign</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Certificate Sign</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_CRL_SIGN-constant" class="">AU_CRL_SIGN =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "cRLSign" key use.</p>
+<p>OpenSSL short name for CRL Sign</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>CRL Sign</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_ENCIPHER_ONLY-constant" class="">AU_ENCIPHER_ONLY =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "encipherOnly" key use.</p>
+<p>OpenSSL short name for Encipher Only</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Encipher Only</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
<dt id="AU_DECIPHER_ONLY-constant" class="">AU_DECIPHER_ONLY =
<div class="docstring">
<div class="discussion">
-<p>The OpenSSL friendly name for the "decipherOnly" key use.</p>
+<p>OpenSSL short name for Decipher Only</p>
</div>
</div>
<div class="tags">
</div>
</dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Decipher Only</span><span class='tstring_end'>"</span></span></pre></dd>
+ <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>
</dl>
@@ -343,11 +354,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#certificate_sign%3F-instance_method" title="#certificate_sign? (instance method)">- (Boolean) <strong>certificate_sign?</strong> </a>
+ <a href="#crl_sign%3F-instance_method" title="#crl_sign? (instance method)">- (Boolean) <strong>crl_sign?</strong> </a>
</span>
@@ -365,11 +376,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#crl_sign%3F-instance_method" title="#crl_sign? (instance method)">- (Boolean) <strong>crl_sign?</strong> </a>
+ <a href="#data_encipherment%3F-instance_method" title="#data_encipherment? (instance method)">- (Boolean) <strong>data_encipherment?</strong> </a>
</span>
@@ -387,11 +398,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#data_encipherment%3F-instance_method" title="#data_encipherment? (instance method)">- (Boolean) <strong>data_encipherment?</strong> </a>
+ <a href="#decipher_only%3F-instance_method" title="#decipher_only? (instance method)">- (Boolean) <strong>decipher_only?</strong> </a>
</span>
@@ -409,11 +420,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#decipher_only%3F-instance_method" title="#decipher_only? (instance method)">- (Boolean) <strong>decipher_only?</strong> </a>
+ <a href="#digital_signature%3F-instance_method" title="#digital_signature? (instance method)">- (Boolean) <strong>digital_signature?</strong> </a>
</span>
@@ -431,11 +442,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#digital_signature%3F-instance_method" title="#digital_signature? (instance method)">- (Boolean) <strong>digital_signature?</strong> </a>
+ <a href="#encipher_only%3F-instance_method" title="#encipher_only? (instance method)">- (Boolean) <strong>encipher_only?</strong> </a>
</span>
@@ -453,59 +464,59 @@
<li class="public ">
<span class="summary_signature">
- <a href="#encipher_only%3F-instance_method" title="#encipher_only? (instance method)">- (Boolean) <strong>encipher_only?</strong> </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (KeyUsage) <strong>initialize</strong>(*args) </a>
</span>
+ <span class="note title constructor">constructor</span>
+
- <span class="summary_desc"><div class='inline'></div></span>
+ <span class="summary_desc"><div class='inline'>
+<p>See OpenSSL::X509::Extension#initialize.</p>
+</div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (KeyUsage) <strong>initialize</strong>(*args) </a>
+ <a href="#key_agreement%3F-instance_method" title="#key_agreement? (instance method)">- (Boolean) <strong>key_agreement?</strong> </a>
</span>
- <span class="note title constructor">constructor</span>
-
- <span class="summary_desc"><div class='inline'>
-<p>See OpenSSL::X509::Extension#initialize.</p>
-</div></span>
+ <span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
- <a href="#key_agreement%3F-instance_method" title="#key_agreement? (instance method)">- (Boolean) <strong>key_agreement?</strong> </a>
+ <a href="#key_cert_sign%3F-instance_method" title="#key_cert_sign? (instance method)">- (Boolean) <strong>key_cert_sign?</strong> </a>
</span>
@@ -597,23 +608,137 @@
<tr>
<td>
<pre class="lines">
-83
-84
-85
-86
-87</pre>
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
+125
+126
+127
+128
+129
+130
+131
+132
+133
+134
+135
+136
+137
+138
+139
+140
+141
+142
+143
+144
+145
+146
+147
+148
+149
+150
+151
+152
+153
+154
+155
+156
+157</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 83</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 96</span>
<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>
<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>
- <span class='ivar'>@allowed_uses</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_use'>use</span><span class='op'>|</span> <span class='id identifier rubyid_use'>use</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rbrace'>}</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>
+
+ <span class='comment'># There are 9 possible bits, which means we need 2 bytes
+</span> <span class='comment'># to represent them all. When the last bit is not set
+</span> <span class='comment'># the second byte is not encoded. let's add it back so we can
+</span> <span class='comment'># have the full bitmask for comparison
+</span> <span class='kw'>if</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>1</span>
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\0</span><span class='tstring_end'>"</span></span>
+ <span class='kw'>end</span>
+ <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_unpack'>unpack</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>n</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='comment'># treat it as a 16-bit unsigned big endian
+</span> <span class='comment'># KeyUsage ::= BIT STRING {
+</span> <span class='comment'># digitalSignature (0),
+</span> <span class='comment'># nonRepudiation (1), -- recent editions of X.509 have
+</span> <span class='comment'># -- renamed this bit to contentCommitment
+</span> <span class='comment'># keyEncipherment (2),
+</span> <span class='comment'># dataEncipherment (3),
+</span> <span class='comment'># keyAgreement (4),
+</span> <span class='comment'># keyCertSign (5),
+</span> <span class='comment'># cRLSign (6),
+</span> <span class='comment'># encipherOnly (7),
+</span> <span class='comment'># decipherOnly (8) }
+</span> <span class='ivar'>@allowed_uses</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b1000000000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@digital_signature</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_DIGITAL_SIGNATURE</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0100000000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@non_repudiation</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_NON_REPUDIATION</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0010000000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@key_encipherment</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_KEY_ENCIPHERMENT</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0001000000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@data_encipherment</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_DATA_ENCIPHERMENT</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0000100000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@key_agreement</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_KEY_AGREEMENT</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0000010000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@key_cert_sign</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_KEY_CERT_SIGN</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0000001000000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@crl_sign</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_CRL_SIGN</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0000000100000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@encipher_only</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_ENCIPHER_ONLY</span>
+ <span class='kw'>end</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_bit_mask'>bit_mask</span> <span class='op'>&</span> <span class='int'>0b0000000010000000</span> <span class='op'>></span> <span class='int'>0</span>
+ <span class='ivar'>@decipher_only</span> <span class='op'>=</span> <span class='kw'>true</span>
+ <span class='ivar'>@allowed_uses</span> <span class='op'><<</span> <span class='const'>AU_DECIPHER_ONLY</span>
+ <span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -635,11 +760,11 @@
</h3><div class="docstring">
<div class="discussion">
-<p>An array of the key uses allowed. See the AU_* constants in this class.</p>
+<p>An array of the key uses allowed.</p>
</div>
</div>
<div class="tags">
@@ -649,16 +774,16 @@
<tr>
<td>
<pre class="lines">
-80
-81
-82</pre>
+74
+75
+76</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 80</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 74</span>
<span class='kw'>def</span> <span class='id identifier rubyid_allowed_uses'>allowed_uses</span>
<span class='ivar'>@allowed_uses</span>
<span class='kw'>end</span></pre>
</td>
@@ -697,17 +822,18 @@
<li>
<span class='name'>friendly_use_name</span>
- <span class='type'>(<tt>string</tt>)</span>
+ <span class='type'>(<tt>String</tt>)</span>
—
<div class='inline'>
-<p>One of the AU_* constants in this class.</p>
+<p>key usage short name (e.g. digitalSignature, cRLSign, etc) or one of the
+AU_* constants in this class</p>
</div>
</li>
</ul>
@@ -730,29 +856,29 @@
<tr>
<td>
<pre class="lines">
-91
-92
-93</pre>
+163
+164
+165</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 91</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 163</span>
<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>
<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>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="certificate_sign?-instance_method">
+ <h3 class="signature " id="crl_sign?-instance_method">
- - (<tt>Boolean</tt>) <strong>certificate_sign?</strong>
+ - (<tt>Boolean</tt>) <strong>crl_sign?</strong>
@@ -782,29 +908,29 @@
<tr>
<td>
<pre class="lines">
-115
-116
-117</pre>
+191
+192
+193</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 115</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 191</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_certificate_sign?'>certificate_sign?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_CERTIFICATE_SIGN</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_crl_sign?'>crl_sign?</span>
+ <span class='lparen'>(</span><span class='ivar'>@crl_sign</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="crl_sign?-instance_method">
+ <h3 class="signature " id="data_encipherment?-instance_method">
- - (<tt>Boolean</tt>) <strong>crl_sign?</strong>
+ - (<tt>Boolean</tt>) <strong>data_encipherment?</strong>
@@ -834,29 +960,29 @@
<tr>
<td>
<pre class="lines">
-119
-120
-121</pre>
+179
+180
+181</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 119</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 179</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_crl_sign?'>crl_sign?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_CRL_SIGN</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_data_encipherment?'>data_encipherment?</span>
+ <span class='lparen'>(</span><span class='ivar'>@data_encipherment</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="data_encipherment?-instance_method">
+ <h3 class="signature " id="decipher_only?-instance_method">
- - (<tt>Boolean</tt>) <strong>data_encipherment?</strong>
+ - (<tt>Boolean</tt>) <strong>decipher_only?</strong>
@@ -886,29 +1012,29 @@
<tr>
<td>
<pre class="lines">
-107
-108
-109</pre>
+199
+200
+201</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 107</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 199</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_data_encipherment?'>data_encipherment?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_DATA_ENCIPHERMENT</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_decipher_only?'>decipher_only?</span>
+ <span class='lparen'>(</span><span class='ivar'>@decipher_only</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="decipher_only?-instance_method">
+ <h3 class="signature " id="digital_signature?-instance_method">
- - (<tt>Boolean</tt>) <strong>decipher_only?</strong>
+ - (<tt>Boolean</tt>) <strong>digital_signature?</strong>
@@ -938,29 +1064,29 @@
<tr>
<td>
<pre class="lines">
-127
-128
-129</pre>
+167
+168
+169</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 127</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 167</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_decipher_only?'>decipher_only?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_DECIPHER_ONLY</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_digital_signature?'>digital_signature?</span>
+ <span class='lparen'>(</span><span class='ivar'>@digital_signature</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="digital_signature?-instance_method">
+ <h3 class="signature " id="encipher_only?-instance_method">
- - (<tt>Boolean</tt>) <strong>digital_signature?</strong>
+ - (<tt>Boolean</tt>) <strong>encipher_only?</strong>
@@ -990,29 +1116,29 @@
<tr>
<td>
<pre class="lines">
-95
-96
-97</pre>
+195
+196
+197</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 95</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 195</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_digital_signature?'>digital_signature?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_DIGITAL_SIGNATURE</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_encipher_only?'>encipher_only?</span>
+ <span class='lparen'>(</span><span class='ivar'>@encipher_only</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="encipher_only?-instance_method">
+ <h3 class="signature " id="key_agreement?-instance_method">
- - (<tt>Boolean</tt>) <strong>encipher_only?</strong>
+ - (<tt>Boolean</tt>) <strong>key_agreement?</strong>
@@ -1042,29 +1168,29 @@
<tr>
<td>
<pre class="lines">
-123
-124
-125</pre>
+183
+184
+185</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 123</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 183</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_encipher_only?'>encipher_only?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_ENCIPHER_ONLY</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_key_agreement?'>key_agreement?</span>
+ <span class='lparen'>(</span><span class='ivar'>@key_agreement</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
- <h3 class="signature " id="key_agreement?-instance_method">
+ <h3 class="signature " id="key_cert_sign?-instance_method">
- - (<tt>Boolean</tt>) <strong>key_agreement?</strong>
+ - (<tt>Boolean</tt>) <strong>key_cert_sign?</strong>
@@ -1094,19 +1220,19 @@
<tr>
<td>
<pre class="lines">
-111
-112
-113</pre>
+187
+188
+189</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 111</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 187</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_key_agreement?'>key_agreement?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_KEY_AGREEMENT</span> <span class='rparen'>)</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_key_cert_sign?'>key_cert_sign?</span>
+ <span class='lparen'>(</span><span class='ivar'>@key_cert_sign</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1146,19 +1272,19 @@
<tr>
<td>
<pre class="lines">
-103
-104
-105</pre>
+175
+176
+177</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 103</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 175</span>
<span class='kw'>def</span> <span class='id identifier rubyid_key_encipherment?'>key_encipherment?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_KEY_ENCIPHERMENT</span> <span class='rparen'>)</span>
+ <span class='lparen'>(</span><span class='ivar'>@key_encipherment</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1198,19 +1324,19 @@
<tr>
<td>
<pre class="lines">
-99
-100
-101</pre>
+171
+172
+173</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 99</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 171</span>
<span class='kw'>def</span> <span class='id identifier rubyid_non_repudiation?'>non_repudiation?</span>
- <span class='id identifier rubyid_allows?'>allows?</span><span class='lparen'>(</span> <span class='const'>AU_NON_REPUDIATION</span> <span class='rparen'>)</span>
+ <span class='lparen'>(</span><span class='ivar'>@non_repudiation</span> <span class='op'>==</span> <span class='kw'>true</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1218,12 +1344,12 @@
</div>
</div>
<div id="footer">
- Generated on Thu Nov 8 14:19:28 2012 by
+ Generated on Tue Apr 16 10:49:57 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.2.1 (ruby-1.9.3).
+ 0.8.5 (ruby-1.9.3).
</div>
</body>
</html>
\ No newline at end of file