<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.oauth.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'oauth.setrsacertificate.php',
    1 => 'OAuth::setRSACertificate',
    2 => 'Set the RSA certificate',
  ),
  'up' => 
  array (
    0 => 'class.oauth.php',
    1 => 'OAuth',
  ),
  'prev' => 
  array (
    0 => 'oauth.setrequestengine.php',
    1 => 'OAuth::setRequestEngine',
  ),
  'next' => 
  array (
    0 => 'oauth.setsslchecks.php',
    1 => 'OAuth::setSSLChecks',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/oauth/oauth/setrsacertificate.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>OAuth::setRSACertificate</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$cert</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

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

  <div class="warning"><strong class="warning">Увага</strong><p class="simpara">Наразі ця функція не
документована. Доступний лише список її параметрів.
</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.setrsacertificate-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">cert</code></dt>
    <dd>
     <p class="para">
      The <abbr>RSA</abbr> certificate.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-oauth.setrsacertificate-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></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">Журнал змін</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Версія</th>
       <th>Опис</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PECL oauth 1.0.0</td>
       <td>
        Раніше в разі помилки замість <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> повертався <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-oauth.setrsacertificate-examples">
  <h3 class="title">Приклади</h3>
  <div class="example" id="oauth.setrsacertificate.example">
   <p><strong>Приклад #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 </span><span style="color: #007700">= new </span><span style="color: #0000BB">OAuth</span><span style="color: #007700">(</span><span style="color: #DD0000">'1234'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </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">Прогляньте також</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="oauth.setcapath.php" class="methodname" rel="rdfs-seeAlso">OAuth::setCaPath()</a> - Set CA path and info</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>