<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-clientencryption.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-clientencryption.removekeyaltname.php',
    1 => 'MongoDB\\Driver\\ClientEncryption::removeKeyAltName',
    2 => 'Removes an alternate name from a key document',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-clientencryption.php',
    1 => 'MongoDB\\Driver\\ClientEncryption',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-clientencryption.getkeys.php',
    1 => 'MongoDB\\Driver\\ClientEncryption::getKeys',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-clientencryption.rewrapmanydatakey.php',
    1 => 'MongoDB\\Driver\\ClientEncryption::rewrapManyDataKey',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/mongodb/driver/clientencryption/removekeyaltname.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-clientencryption.removekeyaltname" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\ClientEncryption::removeKeyAltName</h1>
  <p class="verinfo">(mongodb &gt;=1.15.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\ClientEncryption::removeKeyAltName</span> &mdash; <span class="dc-title">Removes an alternate name from a key document</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-clientencryption.removekeyaltname-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\ClientEncryption::removeKeyAltName</strong></span>(<span class="methodparam"><span class="type"><a href="class.mongodb-bson-binary.php" class="type MongoDB\BSON\Binary">MongoDB\BSON\Binary</a></span> <code class="parameter">$keyId</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$keyAltName</code></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.object.php" class="type object">object</a></span></span></div>

  <p class="simpara">
   Removes <code class="parameter">keyAltName</code> from the set of alternate names for
   the key document with the given UUID <code class="parameter">keyId</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-clientencryption.removekeyaltname-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">keyId</code></dt>
    <dd>
     <span class="simpara">
      A <span class="classname"><a href="class.mongodb-bson-binary.php" class="classname">MongoDB\BSON\Binary</a></span> instance with subtype 4
      (UUID) identifying the key document.
     </span>
    </dd>
   

   
    <dt><code class="parameter">keyAltName</code></dt>
    <dd>
     <span class="simpara">
      Alternate name to remove from the key document.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-clientencryption.removekeyaltname-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns the previous version of the key document, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if no document
   matched.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-clientencryption.removekeyaltname-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <ul class="simplelist">
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> on argument parsing errors.</li><li>Throws <span class="classname"><a href="class.mongodb-driver-exception-connectionexception.php" class="classname">MongoDB\Driver\Exception\ConnectionException</a></span> if connection to the server fails (for reasons other than authentication).</li><li>Throws <span class="classname"><a href="class.mongodb-driver-exception-authenticationexception.php" class="classname">MongoDB\Driver\Exception\AuthenticationException</a></span> if authentication is needed and fails.</li>
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-runtimeexception.php" class="classname">MongoDB\Driver\Exception\RuntimeException</a></span> on other errors.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-clientencryption.removekeyaltname-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="mongodb-driver-clientencryption.addkeyaltname.php" class="function" rel="rdfs-seeAlso">MongoDB\Driver\ClientEncryption::addKeyAltName()</a> - Adds an alternate name to a key document</span></li>
   <li><span class="function"><a href="mongodb-driver-clientencryption.getkeybyaltname.php" class="function" rel="rdfs-seeAlso">MongoDB\Driver\ClientEncryption::getKeyByAltName()</a> - Gets a key document by an alternate name</span></li>
  </ul>
 </div>

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