doc/R509/Cert/Extensions.html in r509-0.9.2 vs doc/R509/Cert/Extensions.html in r509-0.10.0
- old
+ new
@@ -4,17 +4,17 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: R509::Cert::Extensions
- — Documentation by YARD 0.8.5
+ — Documentation by YARD 0.8.6.1
</title>
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
hasFrames = window.top.frames.main ? true : false;
relpath = '../../';
framesUrl = "../../frames.html#!" + escape(window.location.href);
@@ -77,11 +77,13 @@
<dt class="r1 last">Defined in:</dt>
- <dd class="r1 last">lib/r509/cert/extensions.rb</dd>
+ <dd class="r1 last">lib/r509/cert/extensions/base.rb<span class="defines">,<br />
+ lib/r509/cert/extensions/key_usage.rb,<br /> lib/r509/cert/extensions/ocsp_no_check.rb,<br /> lib/r509/cert/extensions/name_constraints.rb,<br /> lib/r509/cert/extensions/validation_mixin.rb,<br /> lib/r509/cert/extensions/basic_constraints.rb,<br /> lib/r509/cert/extensions/extended_key_usage.rb,<br /> lib/r509/cert/extensions/policy_constraints.rb,<br /> lib/r509/cert/extensions/inhibit_any_policy.rb,<br /> lib/r509/cert/extensions/certificate_policies.rb,<br /> lib/r509/cert/extensions/authority_info_access.rb,<br /> lib/r509/cert/extensions/subject_key_identifier.rb,<br /> lib/r509/cert/extensions/crl_distribution_points.rb,<br /> lib/r509/cert/extensions/subject_alternative_name.rb,<br /> lib/r509/cert/extensions/authority_key_identifier.rb</span>
+</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
@@ -97,13 +99,15 @@
</div><h2>Defined Under Namespace</h2>
<p class="children">
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Extensions/GeneralNamesMixin.html" title="R509::Cert::Extensions::GeneralNamesMixin (module)">GeneralNamesMixin</a></span>, <span class='object_link'><a href="Extensions/ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">ValidationMixin</a></span>
+
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Extensions/AuthorityInfoAccess.html" title="R509::Cert::Extensions::AuthorityInfoAccess (class)">AuthorityInfoAccess</a></span>, <span class='object_link'><a href="Extensions/AuthorityKeyIdentifier.html" title="R509::Cert::Extensions::AuthorityKeyIdentifier (class)">AuthorityKeyIdentifier</a></span>, <span class='object_link'><a href="Extensions/BasicConstraints.html" title="R509::Cert::Extensions::BasicConstraints (class)">BasicConstraints</a></span>, <span class='object_link'><a href="Extensions/CRLDistributionPoints.html" title="R509::Cert::Extensions::CRLDistributionPoints (class)">CRLDistributionPoints</a></span>, <span class='object_link'><a href="Extensions/CertificatePolicies.html" title="R509::Cert::Extensions::CertificatePolicies (class)">CertificatePolicies</a></span>, <span class='object_link'><a href="Extensions/ExtendedKeyUsage.html" title="R509::Cert::Extensions::ExtendedKeyUsage (class)">ExtendedKeyUsage</a></span>, <span class='object_link'><a href="Extensions/InhibitAnyPolicy.html" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">InhibitAnyPolicy</a></span>, <span class='object_link'><a href="Extensions/KeyUsage.html" title="R509::Cert::Extensions::KeyUsage (class)">KeyUsage</a></span>, <span class='object_link'><a href="Extensions/NameConstraints.html" title="R509::Cert::Extensions::NameConstraints (class)">NameConstraints</a></span>, <span class='object_link'><a href="Extensions/OCSPNoCheck.html" title="R509::Cert::Extensions::OCSPNoCheck (class)">OCSPNoCheck</a></span>, <span class='object_link'><a href="Extensions/PolicyConstraints.html" title="R509::Cert::Extensions::PolicyConstraints (class)">PolicyConstraints</a></span>, <span class='object_link'><a href="Extensions/SubjectAlternativeName.html" title="R509::Cert::Extensions::SubjectAlternativeName (class)">SubjectAlternativeName</a></span>, <span class='object_link'><a href="Extensions/SubjectKeyIdentifier.html" title="R509::Cert::Extensions::SubjectKeyIdentifier (class)">SubjectKeyIdentifier</a></span>
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Extensions/AuthorityInfoAccess.html" title="R509::Cert::Extensions::AuthorityInfoAccess (class)">AuthorityInfoAccess</a></span>, <span class='object_link'><a href="Extensions/AuthorityKeyIdentifier.html" title="R509::Cert::Extensions::AuthorityKeyIdentifier (class)">AuthorityKeyIdentifier</a></span>, <span class='object_link'><a href="Extensions/BasicConstraints.html" title="R509::Cert::Extensions::BasicConstraints (class)">BasicConstraints</a></span>, <span class='object_link'><a href="Extensions/CRLDistributionPoints.html" title="R509::Cert::Extensions::CRLDistributionPoints (class)">CRLDistributionPoints</a></span>, <span class='object_link'><a href="Extensions/CertificatePolicies.html" title="R509::Cert::Extensions::CertificatePolicies (class)">CertificatePolicies</a></span>, <span class='object_link'><a href="Extensions/ExtendedKeyUsage.html" title="R509::Cert::Extensions::ExtendedKeyUsage (class)">ExtendedKeyUsage</a></span>, <span class='object_link'><a href="Extensions/InhibitAnyPolicy.html" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">InhibitAnyPolicy</a></span>, <span class='object_link'><a href="Extensions/KeyUsage.html" title="R509::Cert::Extensions::KeyUsage (class)">KeyUsage</a></span>, <span class='object_link'><a href="Extensions/NameConstraints.html" title="R509::Cert::Extensions::NameConstraints (class)">NameConstraints</a></span>, <span class='object_link'><a href="Extensions/NoticeReference.html" title="R509::Cert::Extensions::NoticeReference (class)">NoticeReference</a></span>, <span class='object_link'><a href="Extensions/OCSPNoCheck.html" title="R509::Cert::Extensions::OCSPNoCheck (class)">OCSPNoCheck</a></span>, <span class='object_link'><a href="Extensions/PolicyConstraints.html" title="R509::Cert::Extensions::PolicyConstraints (class)">PolicyConstraints</a></span>, <span class='object_link'><a href="Extensions/PolicyInformation.html" title="R509::Cert::Extensions::PolicyInformation (class)">PolicyInformation</a></span>, <span class='object_link'><a href="Extensions/PolicyQualifiers.html" title="R509::Cert::Extensions::PolicyQualifiers (class)">PolicyQualifiers</a></span>, <span class='object_link'><a href="Extensions/SubjectAlternativeName.html" title="R509::Cert::Extensions::SubjectAlternativeName (class)">SubjectAlternativeName</a></span>, <span class='object_link'><a href="Extensions/SubjectKeyIdentifier.html" title="R509::Cert::Extensions::SubjectKeyIdentifier (class)">SubjectKeyIdentifier</a></span>, <span class='object_link'><a href="Extensions/UserNotice.html" title="R509::Cert::Extensions::UserNotice (class)">UserNotice</a></span>
</p>
<h2>Constant Summary</h2>
@@ -149,10 +153,35 @@
<li class="public ">
<span class="summary_signature">
+ <a href="#names_to_h-class_method" title="names_to_h (class method)">+ (Object) <strong>names_to_h</strong>(array) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'>
+<p>Takes an array of R509::ASN1::GeneralName objects and returns a hash that
+can be encoded to YAML (used by #to_yaml methods).</p>
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
<a href="#wrap_openssl_extensions-class_method" title="wrap_openssl_extensions (class method)">+ (Object) <strong>wrap_openssl_extensions</strong>(extensions) </a>
</span>
@@ -207,29 +236,29 @@
<tr>
<td>
<pre class="lines">
-657
-658
-659
-660
-661
-662
-663
-664
-665
-666
-667
-668
-669
-670
-671
-672</pre>
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 657</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 37</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_unknown_extensions'>get_unknown_extensions</span><span class='lparen'>(</span> <span class='id identifier rubyid_extensions'>extensions</span> <span class='rparen'>)</span>
<span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='op'>|</span>
<span class='id identifier rubyid_match_found'>match_found</span> <span class='op'>=</span> <span class='kw'>false</span>
@@ -237,11 +266,11 @@
<span class='kw'>if</span> <span class='lparen'>(</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>::</span><span class='const'>OID</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='period'>.</span><span class='id identifier rubyid_oid'>oid</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='rparen'>)</span>
<span class='id identifier rubyid_match_found'>match_found</span> <span class='op'>=</span> <span class='kw'>true</span>
<span class='kw'>break</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
- <span class='comment'># if we make it this far (without breaking), we didn't match
+ <span class='comment'># if we make it this far (without breaking), we didn't match
</span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='op'><<</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span> <span class='kw'>unless</span> <span class='id identifier rubyid_match_found'>match_found</span>
<span class='kw'>end</span>
<span class='kw'>return</span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span>
<span class='kw'>end</span></pre>
@@ -249,10 +278,72 @@
</tr>
</table>
</div>
<div class="method_details ">
+ <h3 class="signature " id="names_to_h-class_method">
+
+ + (<tt>Object</tt>) <strong>names_to_h</strong>(array)
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+<p>Takes an array of R509::ASN1::GeneralName objects and returns a hash that
+can be encoded to YAML (used by #to_yaml methods)</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 57</span>
+
+<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_names_to_h'>names_to_h</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
+ <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
+ <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='op'>?</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
+ <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span>
+ <span class='lbrace'>{</span>
+ <span class='symbol'>:type</span> <span class='op'>=></span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_short_type'>short_type</span><span class='comma'>,</span>
+ <span class='symbol'>:value</span> <span class='op'>=></span> <span class='id identifier rubyid_value'>value</span>
+ <span class='rbrace'>}</span>
+ <span class='rparen'>)</span>
+ <span class='kw'>end</span>
+ <span class='id identifier rubyid_data'>data</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
<h3 class="signature " id="wrap_openssl_extensions-class_method">
+ (<tt>Object</tt>) <strong>wrap_openssl_extensions</strong>(extensions)
@@ -277,30 +368,30 @@
<tr>
<td>
<pre class="lines">
-637
-638
-639
-640
-641
-642
-643
-644
-645
-646
-647
-648
-649
-650
-651
-652
-653</pre>
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 637</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 17</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_wrap_openssl_extensions'>wrap_openssl_extensions</span><span class='lparen'>(</span> <span class='id identifier rubyid_extensions'>extensions</span> <span class='rparen'>)</span>
<span class='id identifier rubyid_r509_extensions'>r509_extensions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
<span class='id identifier rubyid_extensions'>extensions</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='op'>|</span>
<span class='const'>R509_EXTENSION_CLASSES</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>|</span>
@@ -325,12 +416,12 @@
</div>
</div>
<div id="footer">
- Generated on Tue Apr 23 10:46:04 2013 by
+ Generated on Sun Jan 26 13:37:25 2014 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.8.5 (ruby-1.9.3).
+ 0.8.6.1 (ruby-2.0.0).
</div>
</body>
</html>
\ No newline at end of file