doc/R509/Cert/Extensions.html in r509-0.10.0 vs doc/R509/Cert/Extensions.html in r509-1.0

- old
+ new

@@ -1,92 +1,93 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<!DOCTYPE html> +<html> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Module: R509::Cert::Extensions - &mdash; Documentation by YARD 0.8.6.1 + &mdash; Documentation by YARD 0.9.5 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" 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; + pathId = "R509::Cert::Extensions"; relpath = '../../'; - framesUrl = "../../frames.html#!" + escape(window.location.href); </script> <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script> </head> <body> - <div id="header"> - <div id="menu"> + <div class="nav_wrap"> + <iframe id="nav" src="../../class_list.html"></iframe> + <div id="resizer"></div> + </div> + + <div id="main" tabindex="-1"> + <div id="header"> + <div id="menu"> <a href="../../_index.html">Index (E)</a> &raquo; <span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Cert.html" title="R509::Cert (class)">Cert</a></span></span> &raquo; <span class="title">Extensions</span> - - <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div> </div> - <div id="search"> + <div id="search"> <a class="full_list_link" id="class_list_link" href="../../class_list.html"> - Class List + + <svg width="24" height="24"> + <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect> + <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect> + <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect> + </svg> </a> - <a class="full_list_link" id="method_list_link" - href="../../method_list.html"> - Method List - </a> - - <a class="full_list_link" id="file_list_link" - href="../../file_list.html"> - File List - </a> - </div> - <div class="clear"></div> - </div> + <div class="clear"></div> + </div> - <iframe id="search_frame"></iframe> + <iframe id="search_frame" src="../../class_list.html"></iframe> - <div id="content"><h1>Module: R509::Cert::Extensions + <div id="content"><h1>Module: R509::Cert::Extensions </h1> +<div class="box_info"> + -<dl class="box"> - - + - <dt class="r1 last">Defined in:</dt> - <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> + + + <dl> + <dt>Defined in:</dt> + <dd>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/policy_constraints.rb,<br /> lib/r509/cert/extensions/inhibit_any_policy.rb,<br /> lib/r509/cert/extensions/extended_key_usage.rb,<br /> lib/r509/cert/extensions/certificate_policies.rb,<br /> lib/r509/cert/extensions/authority_info_access.rb,<br /> lib/r509/cert/extensions/subject_key_identifier.rb,<br /> lib/r509/cert/extensions/crl_distribution_points.rb,<br /> lib/r509/cert/extensions/authority_key_identifier.rb,<br /> lib/r509/cert/extensions/subject_alternative_name.rb</span> </dd> + </dl> -</dl> -<div class="clear"></div> +</div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p>module to contain extension classes for R509::Cert</p> @@ -108,31 +109,28 @@ <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> - - <h2> Class Method Summary - <small>(<a href="#" class="summary_toggle">collapse</a>)</small> + <small><a href="#" class="summary_toggle">collapse</a></small> </h2> <ul class="summary"> <li class="public "> <span class="summary_signature"> - <a href="#get_unknown_extensions-class_method" title="get_unknown_extensions (class method)">+ (Object) <strong>get_unknown_extensions</strong>(extensions) </a> + <a href="#get_unknown_extensions-class_method" title="get_unknown_extensions (class method)">.<strong>get_unknown_extensions</strong>(extensions) &#x21d2; Object </a> </span> @@ -153,11 +151,11 @@ <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> + <a href="#names_to_h-class_method" title="names_to_h (class method)">.<strong>names_to_h</strong>(array) &#x21d2; Object </a> </span> @@ -178,11 +176,11 @@ <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> + <a href="#wrap_openssl_extensions-class_method" title="wrap_openssl_extensions (class method)">.<strong>wrap_openssl_extensions</strong>(extensions) &#x21d2; Object </a> </span> @@ -212,11 +210,11 @@ <div class="method_details first"> <h3 class="signature first" id="get_unknown_extensions-class_method"> - + (<tt>Object</tt>) <strong>get_unknown_extensions</strong>(extensions) + .<strong>get_unknown_extensions</strong>(extensions) &#x21d2; <tt>Object</tt> @@ -256,35 +254,35 @@ 52</pre> </td> <td> <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='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> <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> - <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='kw'>if</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>::</span><span class='const'>OID</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='period'>.</span><span class='id identifier rubyid_oid'>oid</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <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&#39;t match </span> <span class='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='op'>&lt;&lt;</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='id identifier rubyid_unknown_extensions'>unknown_extensions</span> <span class='kw'>end</span></pre> </td> </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) + .<strong>names_to_h</strong>(array) &#x21d2; <tt>Object</tt> @@ -304,10 +302,11 @@ <tr> <td> <pre class="lines"> +56 57 58 59 60 61 @@ -315,25 +314,24 @@ 63 64 65 66 67 -68 -69</pre> +68</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 57</span> + <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/base.rb', line 56</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_value'>value</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>R509</span><span class='op'>::</span><span class='const'>Subject</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span> <span class='op'>:</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span> <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'>=&gt;</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'>=&gt;</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> @@ -342,11 +340,11 @@ </div> <div class="method_details "> <h3 class="signature " id="wrap_openssl_extensions-class_method"> - + (<tt>Object</tt>) <strong>wrap_openssl_extensions</strong>(extensions) + .<strong>wrap_openssl_extensions</strong>(extensions) &#x21d2; <tt>Object</tt> @@ -389,39 +387,40 @@ 33</pre> </td> <td> <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='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> - <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='kw'>if</span> <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rparen'>)</span> - <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Only one extension object allowed per OID</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> + <span class='kw'>if</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='op'>::</span><span class='const'>OID</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> <span class='op'>==</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='period'>.</span><span class='id identifier rubyid_oid'>oid</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span> + <span class='kw'>if</span> <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rparen'>)</span> + <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Only one extension object allowed per OID</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>end</span> - <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_openssl_extension'>openssl_extension</span> <span class='rparen'>)</span> + <span class='id identifier rubyid_r509_extensions'>r509_extensions</span><span class='lbracket'>[</span><span class='id identifier rubyid_r509_class'>r509_class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_r509_class'>r509_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_openssl_extension'>openssl_extension</span><span class='rparen'>)</span> <span class='kw'>break</span> <span class='kw'>end</span> <span class='kw'>end</span> <span class='kw'>end</span> - <span class='kw'>return</span> <span class='id identifier rubyid_r509_extensions'>r509_extensions</span> + <span class='id identifier rubyid_r509_extensions'>r509_extensions</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> </div> </div> - <div id="footer"> - Generated on Sun Jan 26 13:37:25 2014 by + <div id="footer"> + Generated on Tue Dec 6 17:27:39 2016 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.6.1 (ruby-2.0.0). + 0.9.5 (ruby-2.4.0). </div> + </div> </body> </html> \ No newline at end of file