doc/R509/Cert/Extensions/InhibitAnyPolicy.html in r509-0.9.2 vs doc/R509/Cert/Extensions/InhibitAnyPolicy.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>
Class: R509::Cert::Extensions::InhibitAnyPolicy
- — 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);
@@ -90,26 +90,39 @@
+ <dt class="r2">Includes:</dt>
+ <dd class="r2"><span class='object_link'><a href="ValidationMixin.html" title="R509::Cert::Extensions::ValidationMixin (module)">ValidationMixin</a></span></dd>
+
+
- <dt class="r2 last">Defined in:</dt>
- <dd class="r2 last">lib/r509/cert/extensions.rb</dd>
+ <dt class="r1 last">Defined in:</dt>
+ <dd class="r1 last">lib/r509/cert/extensions/inhibit_any_policy.rb</dd>
</dl>
<div class="clear"></div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
-<p>Implements the InhibitAnyPolicy certificate extension, with methods to
-provide access to the component and meaning of the extension's contents.</p>
+<p>The inhibit anyPolicy extension indicates that the special anyPolicy OID,
+with the value { 2 5 29 32 0 }, is not considered an explicit match for
+other certificate policies except when it appears in an intermediate
+self-issued CA certificate. The value indicates the number of additional
+non-self-issued certificates that may appear in the path before anyPolicy
+is no longer permitted. For example, a value of one indicates that
+anyPolicy may be processed in certificates issued by the subject of this
+certificate, but not in additional certificates in the path.</p>
+<p>You can use this extension to parse an existing extension for easy access
+to the contents or create a new one.</p>
+
</div>
</div>
<div class="tags">
@@ -144,11 +157,11 @@
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#skip_certs-instance_method" title="#skip_certs (instance method)">- (Object) <strong>skip_certs</strong> </a>
+ <a href="#value-instance_method" title="#value (instance method)">- (Integer) <strong>value</strong> </a>
</span>
@@ -163,13 +176,11 @@
- <span class="summary_desc"><div class='inline'>
-<p>Returns the value of attribute skip_certs.</p>
-</div></span>
+ <span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
@@ -186,11 +197,11 @@
<ul class="summary">
<li class="public ">
<span class="summary_signature">
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (InhibitAnyPolicy) <strong>initialize</strong>(*args) </a>
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (InhibitAnyPolicy) <strong>initialize</strong>(arg) </a>
</span>
@@ -203,69 +214,165 @@
<span class="summary_desc"><div class='inline'>
-<p>A new instance of InhibitAnyPolicy.</p>
+<p>This method takes a hash or an existing Extension object to parse.</p>
</div></span>
</li>
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#to_h-instance_method" title="#to_h (instance method)">- (Hash) <strong>to_h</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#to_yaml-instance_method" title="#to_yaml (instance method)">- (YAML) <strong>to_yaml</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
</ul>
+
+
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
- - (<tt><span class='object_link'><a href="" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">InhibitAnyPolicy</a></span></tt>) <strong>initialize</strong>(*args)
+ - (<tt><span class='object_link'><a href="" title="R509::Cert::Extensions::InhibitAnyPolicy (class)">InhibitAnyPolicy</a></span></tt>) <strong>initialize</strong>(arg)
</h3><div class="docstring">
<div class="discussion">
-<p>A new instance of InhibitAnyPolicy</p>
+<p>This method takes a hash or an existing Extension object to parse</p>
</div>
</div>
<div class="tags">
+ <p class="tag_title">Parameters:</p>
+<ul class="param">
+ <li>
+
+ <span class='name'>arg</span>
+
+
+ <span class='type'>(<tt>Hash</tt>)</span>
+
+
+
+ —
+ <div class='inline'>
+<p>a customizable set of options</p>
+</div>
+
+ </li>
+
+</ul>
+
+
+
+ <p class="tag_title">Options Hash (<tt>arg</tt>):</p>
+ <ul class="option">
+
+ <li>
+ <span class="name">:value</span>
+ <span class="type">(<tt>Integer</tt>)</span>
+ <span class="default">
+
+ </span>
+
+ </li>
+
+ <li>
+ <span class="name">:critical</span>
+ <span class="type">(<tt>Boolean</tt>)</span>
+ <span class="default">
+
+ — default:
+ <tt>true</tt>
+
+ </span>
+
+ </li>
+
+ </ul>
+
+
+
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-539
-540
-541
-542
-543
-544
-545
-546</pre>
+33
+34
+35
+36
+37
+38
+39
+40</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 539</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/inhibit_any_policy.rb', line 33</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='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>
+ <span class='kw'>if</span> <span class='kw'>not</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>
+ <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>
+ <span class='kw'>end</span>
- <span class='comment'># id-ce-inhibitAnyPolicy OBJECT IDENTIFIER ::= { id-ce 54 }
-</span> <span class='comment'># InhibitAnyPolicy ::= SkipCerts
-</span> <span class='comment'># SkipCerts ::= INTEGER (0..MAX)
-</span> <span class='ivar'>@skip_certs</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'># returns a non-negative integer
-</span><span class='kw'>end</span></pre>
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_parse_extension'>parse_extension</span>
+<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -275,58 +382,179 @@
<h2>Instance Attribute Details</h2>
<span id=""></span>
<div class="method_details first">
- <h3 class="signature first" id="skip_certs-instance_method">
+ <h3 class="signature first" id="value-instance_method">
- - (<tt>Object</tt>) <strong>skip_certs</strong> <span class="extras">(readonly)</span>
+ - (<tt>Integer</tt>) <strong>value</strong> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
-<p>Returns the value of attribute skip_certs</p>
+ </div>
+</div>
+<div class="tags">
+
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Integer</tt>)</span>
+
+
+
+ </li>
+
+</ul>
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+27
+28
+29</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/inhibit_any_policy.rb', line 27</span>
+
+<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
+ <span class='ivar'>@value</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
</div>
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <h3 class="signature first" id="to_h-instance_method">
+
+ - (<tt>Hash</tt>) <strong>to_h</strong>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+
+ </div>
</div>
<div class="tags">
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>Hash</tt>)</span>
+
+
+
+ </li>
+
+</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-537
-538
-539</pre>
+43
+44
+45</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions.rb', line 537</span>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/inhibit_any_policy.rb', line 43</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_skip_certs'>skip_certs</span>
- <span class='ivar'>@skip_certs</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
+ <span class='lbrace'>{</span> <span class='symbol'>:critical</span> <span class='op'>=></span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_critical?'>critical?</span><span class='comma'>,</span> <span class='symbol'>:value</span> <span class='op'>=></span> <span class='ivar'>@value</span> <span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
+ <div class="method_details ">
+ <h3 class="signature " id="to_yaml-instance_method">
+
+ - (<tt>YAML</tt>) <strong>to_yaml</strong>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
+
+
</div>
+</div>
+<div class="tags">
+
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt>YAML</tt>)</span>
+
+
+
+ </li>
+
+</ul>
+</div><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+48
+49
+50</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/r509/cert/extensions/inhibit_any_policy.rb', line 48</span>
+
+<span class='kw'>def</span> <span class='id identifier rubyid_to_yaml'>to_yaml</span>
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span><span class='period'>.</span><span class='id identifier rubyid_to_yaml'>to_yaml</span>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
</div>
+
+ </div>
+</div>
+
<div id="footer">
- Generated on Tue Apr 23 10:46:07 2013 by
+ Generated on Sun Jan 26 13:37:28 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