grpc.ServerCredentials.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: ServerCredentials</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: ServerCredentials</h1>
  17. <section>
  18. <header>
  19. <h2><span class="attribs"><span class="type-signature"></span></span>
  20. <span class="ancestors"><a href="grpc.html">grpc</a>.</span>ServerCredentials<span class="signature">()</span><span class="type-signature"></span></h2>
  21. </header>
  22. <article>
  23. <div class="container-overview">
  24. <h4 class="name" id="ServerCredentials"><span class="type-signature"></span>new ServerCredentials<span class="signature">()</span><span class="type-signature"></span></h4>
  25. <div class="description">
  26. <p>ServerCredentials factories</p>
  27. </div>
  28. <dl class="details">
  29. <dt class="tag-source">Source:</dt>
  30. <dd class="tag-source"><ul class="dummy"><li>
  31. <a href="index.js.html">index.js</a>, <a href="index.js.html#line205">line 205</a>
  32. </li></ul></dd>
  33. </dl>
  34. </div>
  35. <h3 class="subsection-title">Methods</h3>
  36. <h4 class="name" id=".createInsecure"><span class="type-signature">(static) </span>createInsecure<span class="signature">()</span><span class="type-signature"></span></h4>
  37. <div class="description">
  38. <p>Create insecure server credentials</p>
  39. </div>
  40. <dl class="details">
  41. <dt class="tag-source">Source:</dt>
  42. <dd class="tag-source"><ul class="dummy"><li>
  43. <a href="index.js.html">index.js</a>, <a href="index.js.html#line212">line 212</a>
  44. </li></ul></dd>
  45. </dl>
  46. <h5>Returns:</h5>
  47. <div class="param-desc">
  48. <p>grpc.ServerCredentials</p>
  49. </div>
  50. <h4 class="name" id=".createInsecure"><span class="type-signature">(static) </span>createInsecure<span class="signature">(rootCerts<span class="signature-attributes">nullable</span>, keyCertPairs, checkClientCertificate<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  51. <div class="description">
  52. <p>Create SSL server credentials</p>
  53. </div>
  54. <h5>Parameters:</h5>
  55. <table class="params">
  56. <thead>
  57. <tr>
  58. <th>Name</th>
  59. <th>Type</th>
  60. <th>Attributes</th>
  61. <th>Default</th>
  62. <th class="last">Description</th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. <tr>
  67. <td class="name"><code>rootCerts</code></td>
  68. <td class="type">
  69. <span class="param-type">Buffer</span>
  70. </td>
  71. <td class="attributes">
  72. &lt;nullable><br>
  73. </td>
  74. <td class="default">
  75. </td>
  76. <td class="description last"><p>Root CA certificates for validating client
  77. certificates</p></td>
  78. </tr>
  79. <tr>
  80. <td class="name"><code>keyCertPairs</code></td>
  81. <td class="type">
  82. <span class="param-type">Array.&lt;<a href="grpc.ServerCredentials.html#~keyCertPair">grpc.ServerCredentials~keyCertPair</a>></span>
  83. </td>
  84. <td class="attributes">
  85. </td>
  86. <td class="default">
  87. </td>
  88. <td class="description last"><p>A list of
  89. private key and certificate chain pairs to be used for authenticating
  90. the server</p></td>
  91. </tr>
  92. <tr>
  93. <td class="name"><code>checkClientCertificate</code></td>
  94. <td class="type">
  95. <span class="param-type">boolean</span>
  96. </td>
  97. <td class="attributes">
  98. &lt;optional><br>
  99. </td>
  100. <td class="default">
  101. false
  102. </td>
  103. <td class="description last"><p>Indicates that the server
  104. should request and verify the client's certificates</p></td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. <dl class="details">
  109. <dt class="tag-source">Source:</dt>
  110. <dd class="tag-source"><ul class="dummy"><li>
  111. <a href="index.js.html">index.js</a>, <a href="index.js.html#line226">line 226</a>
  112. </li></ul></dd>
  113. </dl>
  114. <h5>Returns:</h5>
  115. <div class="param-desc">
  116. <p>grpc.ServerCredentials</p>
  117. </div>
  118. <h3 class="subsection-title">Type Definitions</h3>
  119. <h4 class="name" id="~keyCertPair">keyCertPair</h4>
  120. <div class="description">
  121. <p>A private key and certificate pair</p>
  122. </div>
  123. <h5>Type:</h5>
  124. <ul>
  125. <li>
  126. <span class="param-type">Object</span>
  127. </li>
  128. </ul>
  129. <h5 class="subsection-title">Properties:</h5>
  130. <table class="props">
  131. <thead>
  132. <tr>
  133. <th>Name</th>
  134. <th>Type</th>
  135. <th class="last">Description</th>
  136. </tr>
  137. </thead>
  138. <tbody>
  139. <tr>
  140. <td class="name"><code>privateKey</code></td>
  141. <td class="type">
  142. <span class="param-type">Buffer</span>
  143. </td>
  144. <td class="description last"><p>The server's private key</p></td>
  145. </tr>
  146. <tr>
  147. <td class="name"><code>certChain</code></td>
  148. <td class="type">
  149. <span class="param-type">Buffer</span>
  150. </td>
  151. <td class="description last"><p>The server's certificate chain</p></td>
  152. </tr>
  153. </tbody>
  154. </table>
  155. <dl class="details">
  156. <dt class="tag-source">Source:</dt>
  157. <dd class="tag-source"><ul class="dummy"><li>
  158. <a href="index.js.html">index.js</a>, <a href="index.js.html#line219">line 219</a>
  159. </li></ul></dd>
  160. </dl>
  161. </article>
  162. </section>
  163. </div>
  164. <nav>
  165. <h2><a href="index.html">Home</a></h2><h3>Externals</h3><ul><li><a href="external-Duplex.html">Duplex</a></li><li><a href="external-EventEmitter.html">EventEmitter</a></li><li><a href="external-GoogleCredential.html">GoogleCredential</a></li><li><a href="external-Readable.html">Readable</a></li><li><a href="external-Writable.html">Writable</a></li></ul><h3>Classes</h3><ul><li><a href="grpc.Client.html">Client</a></li><li><a href="grpc.credentials-CallCredentials.html">CallCredentials</a></li><li><a href="grpc.credentials-ChannelCredentials.html">ChannelCredentials</a></li><li><a href="grpc.Metadata.html">Metadata</a></li><li><a href="grpc.Server.html">Server</a></li><li><a href="grpc.ServerCredentials.html">ServerCredentials</a></li><li><a href="grpc-ClientDuplexStream.html">ClientDuplexStream</a></li><li><a href="grpc-ClientReadableStream.html">ClientReadableStream</a></li><li><a href="grpc-ClientUnaryCall.html">ClientUnaryCall</a></li><li><a href="grpc-ClientWritableStream.html">ClientWritableStream</a></li><li><a href="grpc-ServerDuplexStream.html">ServerDuplexStream</a></li><li><a href="grpc-ServerReadableStream.html">ServerReadableStream</a></li><li><a href="grpc-ServerUnaryCall.html">ServerUnaryCall</a></li><li><a href="grpc-ServerWritableStream.html">ServerWritableStream</a></li></ul><h3>Events</h3><ul><li><a href="grpc-ClientDuplexStream.html#event:metadata">metadata</a></li><li><a href="grpc-ClientDuplexStream.html#event:status">status</a></li><li><a href="grpc-ClientReadableStream.html#event:metadata">metadata</a></li><li><a href="grpc-ClientReadableStream.html#event:status">status</a></li><li><a href="grpc-ClientUnaryCall.html#event:metadata">metadata</a></li><li><a href="grpc-ClientUnaryCall.html#event:status">status</a></li><li><a href="grpc-ClientWritableStream.html#event:metadata">metadata</a></li><li><a href="grpc-ClientWritableStream.html#event:status">status</a></li><li><a href="grpc-ServerDuplexStream.html#~event:cancelled">cancelled</a></li><li><a href="grpc-ServerReadableStream.html#~event:cancelled">cancelled</a></li><li><a href="grpc-ServerUnaryCall.html#~event:cancelled">cancelled</a></li><li><a href="grpc-ServerWritableStream.html#~event:cancelled">cancelled</a></li></ul><h3>Namespaces</h3><ul><li><a href="grpc.html">grpc</a></li><li><a href="grpc.credentials.html">credentials</a></li></ul>
  166. </nav>
  167. <br class="clear">
  168. <footer>
  169. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.3</a> on Fri Sep 08 2017 11:10:31 GMT-0700 (PDT)
  170. </footer>
  171. <script> prettyPrint(); </script>
  172. <script src="scripts/linenumber.js"> </script>
  173. </body>
  174. </html>