Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9996

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the RSA certificate</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.setrequestengine.html">OAuth::setRequestEngine</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.setsslchecks.html">OAuth::setSSLChecks</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oauth.setrsacertificate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OAuth::setRSACertificate</h1>
  <p class="verinfo">(PECL OAuth &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">OAuth::setRSACertificate</span> &mdash; <span class="dc-title">Set the RSA certificate</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.setrsacertificate-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>OAuth::setRSACertificate</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$cert</code></span>
   )</div>

  <p class="para rdfs-comment">
   Sets the <acronym>RSA</acronym> certificate.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
currently not documented; only its argument list is available.
</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.setrsacertificate-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term"><em><code class="parameter">cert</code></em></span>
    <dd>

     <p class="para">
      The <acronym>RSA</acronym> certificate.
     </p>
    </dd>

   </dt>

  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-oauth.setrsacertificate-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success, or <strong><code>FALSE</code></strong> on failure (e.g., the RSA certificate
   cannot be parsed.)
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-oauth.setrsacertificate-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>1.0.0</td>
       <td>
        Previously returned <strong><code>NULL</code></strong> on failure, instead of <strong><code>FALSE</code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-oauth.setrsacertificate-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="oauth.setrsacertificate.example">
   <p><strong>Example #1 An  <span class="methodname"><strong>OAuth::setRsaCertificate()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$consume&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">OAuth</span><span style="color: #007700">(</span><span style="color: #DD0000">'1234'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">OAUTH_SIG_METHOD_RSASHA1</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$consume</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setRSACertificate</span><span style="color: #007700">(</span><span style="color: #0000BB">file_get_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'test.pem'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-oauth.setrsacertificate-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"> <span class="methodname"><a href="oauth.setcapath.html" class="methodname" rel="rdfs-seeAlso">OAuth::setCaPath()</a> - Set CA path and info</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oauth.setrequestengine.html">OAuth::setRequestEngine</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.setsslchecks.html">OAuth::setSSLChecks</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>