Grpc.Core.ChannelCredentials.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <!DOCTYPE html>
  2. <!--[if IE]><![endif]-->
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>Class ChannelCredentials
  8. | gRPC for .NET </title>
  9. <meta name="viewport" content="width=device-width">
  10. <meta name="title" content="Class ChannelCredentials
  11. | gRPC for .NET ">
  12. <meta name="generator" content="docfx 2.36.0.0">
  13. <link rel="shortcut icon" href="../favicon.ico">
  14. <link rel="stylesheet" href="../styles/docfx.vendor.css">
  15. <link rel="stylesheet" href="../styles/docfx.css">
  16. <link rel="stylesheet" href="../styles/main.css">
  17. <meta property="docfx:navrel" content="../toc.html">
  18. <meta property="docfx:tocrel" content="toc.html">
  19. <meta property="docfx:rel" content="../">
  20. </head>
  21. <body data-spy="scroll" data-target="#affix" data-offset="120">
  22. <div id="wrapper">
  23. <header>
  24. <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
  25. <div class="container">
  26. <div class="navbar-header">
  27. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
  28. <span class="sr-only">Toggle navigation</span>
  29. <span class="icon-bar"></span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. </button>
  33. <a class="navbar-brand" href="../index.html">
  34. <img id="logo" class="svg" src="../logo.svg" alt="">
  35. </a>
  36. </div>
  37. <div class="collapse navbar-collapse" id="navbar">
  38. <form class="navbar-form navbar-right" role="search" id="search">
  39. <div class="form-group">
  40. <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </nav>
  46. <div class="subnav navbar navbar-default">
  47. <div class="container hide-when-search" id="breadcrumb">
  48. <ul class="breadcrumb">
  49. <li></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </header>
  54. <div class="container body-content">
  55. <div id="search-results">
  56. <div class="search-list"></div>
  57. <div class="sr-items">
  58. <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
  59. </div>
  60. <ul id="pagination"></ul>
  61. </div>
  62. </div>
  63. <div role="main" class="container body-content hide-when-search">
  64. <div class="sidenav hide-when-search">
  65. <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
  66. <div class="sidetoggle collapse" id="sidetoggle">
  67. <div id="sidetoc"></div>
  68. </div>
  69. </div>
  70. <div class="article row grid-right">
  71. <div class="col-md-10">
  72. <article class="content wrap" id="_content" data-uid="Grpc.Core.ChannelCredentials">
  73. <h1 id="Grpc_Core_ChannelCredentials" data-uid="Grpc.Core.ChannelCredentials" class="text-break">Class ChannelCredentials
  74. </h1>
  75. <div class="markdown level0 summary"><p>Client-side channel credentials. Used for creation of a secure channel.</p>
  76. </div>
  77. <div class="markdown level0 conceptual"></div>
  78. <div class="inheritance">
  79. <h5>Inheritance</h5>
  80. <div class="level0"><span class="xref">System.Object</span></div>
  81. <div class="level1"><span class="xref">ChannelCredentials</span></div>
  82. <div class="level2"><a class="xref" href="Grpc.Core.SslCredentials.html">SslCredentials</a></div>
  83. </div>
  84. <h6><strong>Namespace</strong>: <a class="xref" href="Grpc.Core.html">Grpc.Core</a></h6>
  85. <h6><strong>Assembly</strong>: Grpc.Core.Api.dll</h6>
  86. <h5 id="Grpc_Core_ChannelCredentials_syntax">Syntax</h5>
  87. <div class="codewrapper">
  88. <pre><code class="lang-csharp hljs">public abstract class ChannelCredentials : object</code></pre>
  89. </div>
  90. <h3 id="constructors">Constructors
  91. </h3>
  92. <a id="Grpc_Core_ChannelCredentials__ctor_" data-uid="Grpc.Core.ChannelCredentials.#ctor*"></a>
  93. <h4 id="Grpc_Core_ChannelCredentials__ctor" data-uid="Grpc.Core.ChannelCredentials.#ctor">ChannelCredentials()</h4>
  94. <div class="markdown level1 summary"><p>Creates a new instance of channel credentials</p>
  95. </div>
  96. <div class="markdown level1 conceptual"></div>
  97. <h5 class="decalaration">Declaration</h5>
  98. <div class="codewrapper">
  99. <pre><code class="lang-csharp hljs">public ChannelCredentials()</code></pre>
  100. </div>
  101. <h3 id="properties">Properties
  102. </h3>
  103. <a id="Grpc_Core_ChannelCredentials_Insecure_" data-uid="Grpc.Core.ChannelCredentials.Insecure*"></a>
  104. <h4 id="Grpc_Core_ChannelCredentials_Insecure" data-uid="Grpc.Core.ChannelCredentials.Insecure">Insecure</h4>
  105. <div class="markdown level1 summary"><p>Returns instance of credentials that provides no security and
  106. will result in creating an unsecure channel with no encryption whatsoever.</p>
  107. </div>
  108. <div class="markdown level1 conceptual"></div>
  109. <h5 class="decalaration">Declaration</h5>
  110. <div class="codewrapper">
  111. <pre><code class="lang-csharp hljs">public static ChannelCredentials Insecure { get; }</code></pre>
  112. </div>
  113. <h5 class="propertyValue">Property Value</h5>
  114. <table class="table table-bordered table-striped table-condensed">
  115. <thead>
  116. <tr>
  117. <th>Type</th>
  118. <th>Description</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. <tr>
  123. <td><a class="xref" href="Grpc.Core.ChannelCredentials.html">ChannelCredentials</a></td>
  124. <td></td>
  125. </tr>
  126. </tbody>
  127. </table>
  128. <h3 id="methods">Methods
  129. </h3>
  130. <a id="Grpc_Core_ChannelCredentials_Create_" data-uid="Grpc.Core.ChannelCredentials.Create*"></a>
  131. <h4 id="Grpc_Core_ChannelCredentials_Create_Grpc_Core_ChannelCredentials_Grpc_Core_CallCredentials_" data-uid="Grpc.Core.ChannelCredentials.Create(Grpc.Core.ChannelCredentials,Grpc.Core.CallCredentials)">Create(ChannelCredentials, CallCredentials)</h4>
  132. <div class="markdown level1 summary"><p>Creates a new instance of <code>ChannelCredentials</code> class by composing
  133. given channel credentials with call credentials.</p>
  134. </div>
  135. <div class="markdown level1 conceptual"></div>
  136. <h5 class="decalaration">Declaration</h5>
  137. <div class="codewrapper">
  138. <pre><code class="lang-csharp hljs">public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials callCredentials)</code></pre>
  139. </div>
  140. <h5 class="parameters">Parameters</h5>
  141. <table class="table table-bordered table-striped table-condensed">
  142. <thead>
  143. <tr>
  144. <th>Type</th>
  145. <th>Name</th>
  146. <th>Description</th>
  147. </tr>
  148. </thead>
  149. <tbody>
  150. <tr>
  151. <td><a class="xref" href="Grpc.Core.ChannelCredentials.html">ChannelCredentials</a></td>
  152. <td><span class="parametername">channelCredentials</span></td>
  153. <td><p>Channel credentials.</p>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td><a class="xref" href="Grpc.Core.CallCredentials.html">CallCredentials</a></td>
  158. <td><span class="parametername">callCredentials</span></td>
  159. <td><p>Call credentials.</p>
  160. </td>
  161. </tr>
  162. </tbody>
  163. </table>
  164. <h5 class="returns">Returns</h5>
  165. <table class="table table-bordered table-striped table-condensed">
  166. <thead>
  167. <tr>
  168. <th>Type</th>
  169. <th>Description</th>
  170. </tr>
  171. </thead>
  172. <tbody>
  173. <tr>
  174. <td><a class="xref" href="Grpc.Core.ChannelCredentials.html">ChannelCredentials</a></td>
  175. <td><p>The new composite <code>ChannelCredentials</code></p>
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. <a id="Grpc_Core_ChannelCredentials_InternalPopulateConfiguration_" data-uid="Grpc.Core.ChannelCredentials.InternalPopulateConfiguration*"></a>
  181. <h4 id="Grpc_Core_ChannelCredentials_InternalPopulateConfiguration_Grpc_Core_ChannelCredentialsConfiguratorBase_System_Object_" data-uid="Grpc.Core.ChannelCredentials.InternalPopulateConfiguration(Grpc.Core.ChannelCredentialsConfiguratorBase,System.Object)">InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase, Object)</h4>
  182. <div class="markdown level1 summary"><p>Populates channel credentials configurator with this instance&apos;s configuration.
  183. End users never need to invoke this method as it is part of internal implementation.</p>
  184. </div>
  185. <div class="markdown level1 conceptual"></div>
  186. <h5 class="decalaration">Declaration</h5>
  187. <div class="codewrapper">
  188. <pre><code class="lang-csharp hljs">public abstract void InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, object state)</code></pre>
  189. </div>
  190. <h5 class="parameters">Parameters</h5>
  191. <table class="table table-bordered table-striped table-condensed">
  192. <thead>
  193. <tr>
  194. <th>Type</th>
  195. <th>Name</th>
  196. <th>Description</th>
  197. </tr>
  198. </thead>
  199. <tbody>
  200. <tr>
  201. <td><a class="xref" href="Grpc.Core.ChannelCredentialsConfiguratorBase.html">ChannelCredentialsConfiguratorBase</a></td>
  202. <td><span class="parametername">configurator</span></td>
  203. <td></td>
  204. </tr>
  205. <tr>
  206. <td><span class="xref">System.Object</span></td>
  207. <td><span class="parametername">state</span></td>
  208. <td></td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. </article>
  213. </div>
  214. <div class="hidden-sm col-md-2" role="complementary">
  215. <div class="sideaffix">
  216. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
  217. <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
  218. </nav>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <footer>
  224. <div class="grad-bottom"></div>
  225. <div class="footer">
  226. <div class="container">
  227. <span class="pull-right">
  228. <a href="#top">Back to top</a>
  229. </span>
  230. <span>Generated by <strong>DocFX</strong></span>
  231. </div>
  232. </div>
  233. </footer>
  234. </div>
  235. <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
  236. <script type="text/javascript" src="../styles/docfx.js"></script>
  237. <script type="text/javascript" src="../styles/main.js"></script>
  238. </body>
  239. </html>