grpcpp_2security_2credentials_8h_source.html 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC C++: include/grpcpp/security/credentials.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC C++
  25. &#160;<span id="projectnumber">1.36.1</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. <div id="nav-path" class="navpath">
  62. <ul>
  63. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_412f9a3d5dfcba8716486cd870ef4586.html">grpcpp</a></li><li class="navelem"><a class="el" href="dir_121096a639b520446ccef04f840b5644.html">security</a></li> </ul>
  64. </div>
  65. </div><!-- top -->
  66. <div class="header">
  67. <div class="headertitle">
  68. <div class="title">credentials.h</div> </div>
  69. </div><!--header-->
  70. <div class="contents">
  71. <a href="grpcpp_2security_2credentials_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
  72. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
  73. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2015 gRPC authors.</span></div>
  74. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div>
  75. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
  76. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
  77. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
  78. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
  79. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
  80. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
  81. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
  82. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
  83. <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
  84. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
  85. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div>
  86. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div>
  87. <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div>
  88. <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; </div>
  89. <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GRPCPP_SECURITY_CREDENTIALS_H</span></div>
  90. <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GRPCPP_SECURITY_CREDENTIALS_H</span></div>
  91. <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
  92. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
  93. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
  94. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
  95. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
  96. <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc__security__constants_8h.html">grpc/grpc_security_constants.h</a>&gt;</span></div>
  97. <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2channel_8h.html">grpcpp/channel.h</a>&gt;</span></div>
  98. <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_2codegen_2client__interceptor_8h.html">grpcpp/impl/codegen/client_interceptor.h</a>&gt;</span></div>
  99. <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2impl_2codegen_2grpc__library_8h.html">grpcpp/impl/codegen/grpc_library.h</a>&gt;</span></div>
  100. <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2security_2auth__context_8h.html">grpcpp/security/auth_context.h</a>&gt;</span></div>
  101. <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="tls__credentials__options_8h.html">grpcpp/security/tls_credentials_options.h</a>&gt;</span></div>
  102. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2support_2channel__arguments_8h.html">grpcpp/support/channel_arguments.h</a>&gt;</span></div>
  103. <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2support_2status_8h.html">grpcpp/support/status.h</a>&gt;</span></div>
  104. <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpcpp_2support_2string__ref_8h.html">grpcpp/support/string_ref.h</a>&gt;</span></div>
  105. <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
  106. <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">struct </span><a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>;</div>
  107. <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; </div>
  108. <div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div>
  109. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">class </span>CallCredentials;</div>
  110. <div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">class </span>SecureCallCredentials;</div>
  111. <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="keyword">class </span>SecureChannelCredentials;</div>
  112. <div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="keyword">class </span>ChannelCredentials;</div>
  113. <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
  114. <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;std::shared_ptr&lt;Channel&gt; <a class="code" href="namespacegrpc.html#a4a5c8a2c77389604feaa5d38cdd7b8d3">CreateCustomChannel</a>(</div>
  115. <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">const</span> grpc::string&amp; target,</div>
  116. <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;grpc::ChannelCredentials&gt;&amp; creds,</div>
  117. <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">grpc::ChannelArguments</a>&amp; args);</div>
  118. <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
  119. <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="keyword">namespace </span>experimental {</div>
  120. <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;std::shared_ptr&lt;grpc::Channel&gt; <a class="code" href="namespacegrpc_1_1experimental.html#af089b10a266c70f15aeb7e2156295a30">CreateCustomChannelWithInterceptors</a>(</div>
  121. <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keyword">const</span> grpc::string&amp; target,</div>
  122. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;grpc::ChannelCredentials&gt;&amp; creds,</div>
  123. <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">grpc::ChannelArguments</a>&amp; args,</div>
  124. <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; std::vector&lt;</div>
  125. <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; std::unique_ptr&lt;grpc::experimental::ClientInterceptorFactoryInterface&gt;&gt;</div>
  126. <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; interceptor_creators);</div>
  127. <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
  128. <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#a9c55f91536c2fbefcd8f8bea1db7125d">XdsCredentials</a>(</div>
  129. <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;ChannelCredentials&gt;&amp; fallback_creds);</div>
  130. <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;} <span class="comment">// namespace experimental</span></div>
  131. <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
  132. <div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classgrpc_1_1_channel_credentials.html"> 69</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_channel_credentials.html">ChannelCredentials</a> : <span class="keyword">private</span> <a class="code" href="classgrpc_1_1_grpc_library_codegen.html">grpc::GrpcLibraryCodegen</a> {</div>
  133. <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">public</span>:</div>
  134. <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <a class="code" href="classgrpc_1_1_channel_credentials.html#a961606a781db020e7dbd100c00b8071b">ChannelCredentials</a>();</div>
  135. <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <a class="code" href="classgrpc_1_1_channel_credentials.html#a84d575b4c97fd74eecbd2605869989c2">~ChannelCredentials</a>() <span class="keyword">override</span>;</div>
  136. <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
  137. <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">protected</span>:</div>
  138. <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="classgrpc_1_1_channel_credentials.html#ab603d68f9c9387554aa756b27b6b7359">CompositeChannelCredentials</a>(</div>
  139. <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;ChannelCredentials&gt;&amp; channel_creds,</div>
  140. <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; call_creds);</div>
  141. <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
  142. <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="comment">// TODO(yashykt): We need this friend declaration mainly for access to</span></div>
  143. <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="comment">// AsSecureCredentials(). Once we are able to remove insecure builds from gRPC</span></div>
  144. <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="comment">// (and also internal dependencies on the indirect method of creating a</span></div>
  145. <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="comment">// channel through credentials), we would be able to remove this.</span></div>
  146. <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#a9c55f91536c2fbefcd8f8bea1db7125d">grpc::experimental::XdsCredentials</a>(</div>
  147. <div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;ChannelCredentials&gt;&amp; fallback_creds);</div>
  148. <div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
  149. <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">virtual</span> SecureChannelCredentials* <a class="code" href="classgrpc_1_1_channel_credentials.html#ac32961bb5ef29ba46bddaeb80fafd551">AsSecureCredentials</a>() = 0;</div>
  150. <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
  151. <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keyword">private</span>:</div>
  152. <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;grpc::Channel&gt; <a class="code" href="classgrpc_1_1_channel_credentials.html#a7ee0416f7e1fc38d75a911f67397cfb0">CreateCustomChannel</a>(</div>
  153. <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">const</span> grpc::string&amp; target,</div>
  154. <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;grpc::ChannelCredentials&gt;&amp; creds,</div>
  155. <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">grpc::ChannelArguments</a>&amp; args);</div>
  156. <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
  157. <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;grpc::Channel&gt;</div>
  158. <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="namespacegrpc_1_1experimental.html#af089b10a266c70f15aeb7e2156295a30">grpc::experimental::CreateCustomChannelWithInterceptors</a>(</div>
  159. <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">const</span> grpc::string&amp; target,</div>
  160. <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;grpc::ChannelCredentials&gt;&amp; creds,</div>
  161. <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">grpc::ChannelArguments</a>&amp; args,</div>
  162. <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; std::vector&lt;std::unique_ptr&lt;</div>
  163. <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="code" href="classgrpc_1_1experimental_1_1_client_interceptor_factory_interface.html">grpc::experimental::ClientInterceptorFactoryInterface</a>&gt;&gt;</div>
  164. <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; interceptor_creators);</div>
  165. <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
  166. <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keyword">virtual</span> std::shared_ptr&lt;Channel&gt; CreateChannelImpl(</div>
  167. <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">const</span> grpc::string&amp; target, <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">ChannelArguments</a>&amp; args) = 0;</div>
  168. <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; </div>
  169. <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="comment">// This function should have been a pure virtual function, but it is</span></div>
  170. <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="comment">// implemented as a virtual function so that it does not break API.</span></div>
  171. <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">virtual</span> std::shared_ptr&lt;Channel&gt; CreateChannelWithInterceptors(</div>
  172. <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keyword">const</span> grpc::string&amp; <span class="comment">/*target*/</span>, <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_channel_arguments.html">ChannelArguments</a>&amp; <span class="comment">/*args*/</span>,</div>
  173. <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; std::vector&lt;std::unique_ptr&lt;</div>
  174. <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="classgrpc_1_1experimental_1_1_client_interceptor_factory_interface.html">grpc::experimental::ClientInterceptorFactoryInterface</a>&gt;&gt;</div>
  175. <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="comment">/*interceptor_creators*/</span>) {</div>
  176. <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
  177. <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; }</div>
  178. <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
  179. <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="comment">// TODO(yashkt): This is a hack that is needed since InsecureCredentials can</span></div>
  180. <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">// not use grpc_channel_credentials internally and should be removed after</span></div>
  181. <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="comment">// insecure builds are removed from gRPC.</span></div>
  182. <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> IsInsecure()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
  183. <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;};</div>
  184. <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
  185. <div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classgrpc_1_1_call_credentials.html"> 126</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_call_credentials.html">CallCredentials</a> : <span class="keyword">private</span> <a class="code" href="classgrpc_1_1_grpc_library_codegen.html">grpc::GrpcLibraryCodegen</a> {</div>
  186. <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">public</span>:</div>
  187. <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="classgrpc_1_1_call_credentials.html#af28714fa5ebfe120cd02f26aaaca595a">CallCredentials</a>();</div>
  188. <div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="classgrpc_1_1_call_credentials.html#af2e0b2a8110e08c867b88f29da9df94a">~CallCredentials</a>() <span class="keyword">override</span>;</div>
  189. <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; </div>
  190. <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1_call_credentials.html#aa9278e08b5c6144247766c78cf4b53d1">ApplyToCall</a>(<a class="code" href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a>* call) = 0;</div>
  191. <div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classgrpc_1_1_call_credentials.html#a7ebb786302df962a74818a0acae8332a"> 133</a></span>&#160; <span class="keyword">virtual</span> grpc::string <a class="code" href="classgrpc_1_1_call_credentials.html#a7ebb786302df962a74818a0acae8332a">DebugString</a>() {</div>
  192. <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;CallCredentials did not provide a debug string&quot;</span>;</div>
  193. <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; }</div>
  194. <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
  195. <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">protected</span>:</div>
  196. <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="classgrpc_1_1_call_credentials.html#ab603d68f9c9387554aa756b27b6b7359">CompositeChannelCredentials</a>(</div>
  197. <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;ChannelCredentials&gt;&amp; channel_creds,</div>
  198. <div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; call_creds);</div>
  199. <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
  200. <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">friend</span> std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="classgrpc_1_1_call_credentials.html#a064b061a7e2a80e1d6466addd8600779">CompositeCallCredentials</a>(</div>
  201. <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; creds1,</div>
  202. <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; creds2);</div>
  203. <div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
  204. <div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keyword">virtual</span> SecureCallCredentials* <a class="code" href="classgrpc_1_1_call_credentials.html#a2452df1e7847eed5e11588a213f41937">AsSecureCredentials</a>() = 0;</div>
  205. <div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;};</div>
  206. <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
  207. <div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="structgrpc_1_1_ssl_credentials_options.html"> 150</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc_1_1_ssl_credentials_options.html">SslCredentialsOptions</a> {</div>
  208. <div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="structgrpc_1_1_ssl_credentials_options.html#a0ce1730020e18d04b6af48c88e069869"> 156</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1_ssl_credentials_options.html#a0ce1730020e18d04b6af48c88e069869">pem_root_certs</a>;</div>
  209. <div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
  210. <div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structgrpc_1_1_ssl_credentials_options.html#a5b661f8daf02db7283774e0fb9a8979e"> 160</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1_ssl_credentials_options.html#a5b661f8daf02db7283774e0fb9a8979e">pem_private_key</a>;</div>
  211. <div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; </div>
  212. <div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="structgrpc_1_1_ssl_credentials_options.html#a01015d8ec7dbf49f2ac3cd21f21d383b"> 165</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1_ssl_credentials_options.html#a01015d8ec7dbf49f2ac3cd21f21d383b">pem_cert_chain</a>;</div>
  213. <div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;};</div>
  214. <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
  215. <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment">// Factories for building different types of Credentials The functions may</span></div>
  216. <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="comment">// return empty shared_ptr when credentials cannot be created. If a</span></div>
  217. <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="comment">// Credentials pointer is returned, it can still be invalid when used to create</span></div>
  218. <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;<span class="comment">// a channel. A lame channel will be created then and all rpcs will fail on it.</span></div>
  219. <div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
  220. <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc.html#a6beb3ac70ff94bd2ebbd89b8f21d1f61">GoogleDefaultCredentials</a>();</div>
  221. <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; </div>
  222. <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc.html#a845b0382cdd2c71ba8ca715643c38b94">SslCredentials</a>(</div>
  223. <div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc_1_1_ssl_credentials_options.html">SslCredentialsOptions</a>&amp; options);</div>
  224. <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; </div>
  225. <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#ad9eda8fa85bd833730a40697278e9fe6">GoogleComputeEngineCredentials</a>();</div>
  226. <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; </div>
  227. <div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a9b65a618d145857974b7defb40bed7a0"> 193</a></span>&#160;constexpr <span class="keywordtype">long</span> <a class="code" href="namespacegrpc.html#a9b65a618d145857974b7defb40bed7a0">kMaxAuthTokenLifetimeSecs</a> = 3600;</div>
  228. <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; </div>
  229. <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#a92a9f959d6102461f66ee973d8e9d3aa">ServiceAccountJWTAccessCredentials</a>(</div>
  230. <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keyword">const</span> grpc::string&amp; json_key,</div>
  231. <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keywordtype">long</span> token_lifetime_seconds = <a class="code" href="namespacegrpc.html#a9b65a618d145857974b7defb40bed7a0">kMaxAuthTokenLifetimeSecs</a>);</div>
  232. <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; </div>
  233. <div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#a96901c997b91bc6513b08491e0dca37c">GoogleRefreshTokenCredentials</a>(</div>
  234. <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keyword">const</span> grpc::string&amp; json_refresh_token);</div>
  235. <div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; </div>
  236. <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#ad3a80da696ffdaea943f0f858d7a360d">AccessTokenCredentials</a>(</div>
  237. <div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keyword">const</span> grpc::string&amp; access_token);</div>
  238. <div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; </div>
  239. <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#a9fc1fc101b41e680d47028166e76f9d0">GoogleIAMCredentials</a>(</div>
  240. <div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keyword">const</span> grpc::string&amp; authorization_token,</div>
  241. <div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; <span class="keyword">const</span> grpc::string&amp; authority_selector);</div>
  242. <div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; </div>
  243. <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc.html#a15b2ab0930231bc9142a6e63a9cc8219">CompositeChannelCredentials</a>(</div>
  244. <div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;ChannelCredentials&gt;&amp; channel_creds,</div>
  245. <div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; call_creds);</div>
  246. <div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; </div>
  247. <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#adc351fe5f823440fd2928a7dc65236f4">CompositeCallCredentials</a>(</div>
  248. <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; creds1,</div>
  249. <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160; <span class="keyword">const</span> std::shared_ptr&lt;CallCredentials&gt;&amp; creds2);</div>
  250. <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160; </div>
  251. <div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc.html#a72a5e2e0be4aa041cb587bea339589d7">InsecureChannelCredentials</a>();</div>
  252. <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; </div>
  253. <div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="classgrpc_1_1_metadata_credentials_plugin.html"> 251</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html">MetadataCredentialsPlugin</a> {</div>
  254. <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="keyword">public</span>:</div>
  255. <div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classgrpc_1_1_metadata_credentials_plugin.html#aa0f8c6fc458bf81c3d3384e84ad7059e"> 253</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html#aa0f8c6fc458bf81c3d3384e84ad7059e">~MetadataCredentialsPlugin</a>() {}</div>
  256. <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; </div>
  257. <div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="classgrpc_1_1_metadata_credentials_plugin.html#a6faf44f7c08d0311a38a868fdb8cbaf0"> 257</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html#a6faf44f7c08d0311a38a868fdb8cbaf0">IsBlocking</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
  258. <div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; </div>
  259. <div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classgrpc_1_1_metadata_credentials_plugin.html#ad9a7f5fb8a373bf3680938511cedaf7c"> 260</a></span>&#160; <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html#ad9a7f5fb8a373bf3680938511cedaf7c">GetType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>; }</div>
  260. <div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; </div>
  261. <div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; <span class="keyword">virtual</span> <a class="code" href="classgrpc_1_1_status.html">grpc::Status</a> <a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html#ae6e9664ee51d6490e64c4755734ab16d">GetMetadata</a>(</div>
  262. <div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <a class="code" href="classgrpc_1_1string__ref.html">grpc::string_ref</a> service_url, <a class="code" href="classgrpc_1_1string__ref.html">grpc::string_ref</a> method_name,</div>
  263. <div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_auth_context.html">grpc::AuthContext</a>&amp; channel_auth_context,</div>
  264. <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; std::multimap&lt;grpc::string, grpc::string&gt;* metadata) = 0;</div>
  265. <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160; </div>
  266. <div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="classgrpc_1_1_metadata_credentials_plugin.html#a010de34e9e4240af3529e8913456bec2"> 272</a></span>&#160; <span class="keyword">virtual</span> grpc::string <a class="code" href="classgrpc_1_1_metadata_credentials_plugin.html#a010de34e9e4240af3529e8913456bec2">DebugString</a>() {</div>
  267. <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&quot;MetadataCredentialsPlugin did not provide a debug string&quot;</span>;</div>
  268. <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; }</div>
  269. <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;};</div>
  270. <div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; </div>
  271. <div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#a823c6a4b19ffc71fb33e90154ee2ad07">MetadataCredentialsFromPlugin</a>(</div>
  272. <div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; std::unique_ptr&lt;MetadataCredentialsPlugin&gt; plugin);</div>
  273. <div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; </div>
  274. <div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc.html#a4597f5765148bd5bc141bcb778907a1f">ExternalAccountCredentials</a>(</div>
  275. <div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keyword">const</span> grpc::string&amp; json_string, <span class="keyword">const</span> std::vector&lt;grpc::string&gt;&amp; scopes);</div>
  276. <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; </div>
  277. <div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;<span class="keyword">namespace </span>experimental {</div>
  278. <div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; </div>
  279. <div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html"> 293</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html">StsCredentialsOptions</a> {</div>
  280. <div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a1897f713103d4d34922a31969d766b94"> 294</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a1897f713103d4d34922a31969d766b94">token_exchange_service_uri</a>; <span class="comment">// Required.</span></div>
  281. <div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#aa5744a0ed075281222199c8edd64c773"> 295</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#aa5744a0ed075281222199c8edd64c773">resource</a>; <span class="comment">// Optional.</span></div>
  282. <div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a810e799b972db82960ee3ee28670ed06"> 296</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a810e799b972db82960ee3ee28670ed06">audience</a>; <span class="comment">// Optional.</span></div>
  283. <div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a076e5a44347af833494c87d8c6357e67"> 297</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a076e5a44347af833494c87d8c6357e67">scope</a>; <span class="comment">// Optional.</span></div>
  284. <div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#ae05063309fd005e4b47a9845dd5508c0"> 298</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#ae05063309fd005e4b47a9845dd5508c0">requested_token_type</a>; <span class="comment">// Optional.</span></div>
  285. <div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a56e8e3f272d31f95066fd1d9dcaea406"> 299</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a56e8e3f272d31f95066fd1d9dcaea406">subject_token_path</a>; <span class="comment">// Required.</span></div>
  286. <div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#afdb201d09684fd89bf06ca92e0d18804"> 300</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#afdb201d09684fd89bf06ca92e0d18804">subject_token_type</a>; <span class="comment">// Required.</span></div>
  287. <div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a2f2116ad2d225e7093fc0770967845c2"> 301</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a2f2116ad2d225e7093fc0770967845c2">actor_token_path</a>; <span class="comment">// Optional.</span></div>
  288. <div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a774659bcf268544f08debe45a4bef4d6"> 302</a></span>&#160; grpc::string <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a774659bcf268544f08debe45a4bef4d6">actor_token_type</a>; <span class="comment">// Optional.</span></div>
  289. <div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160;};</div>
  290. <div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160; </div>
  291. <div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<a class="code" href="classgrpc_1_1_status.html">grpc::Status</a> <a class="code" href="namespacegrpc_1_1experimental.html#a845a1ccd03791217297f52281777a9b4">StsCredentialsOptionsFromJson</a>(<span class="keyword">const</span> std::string&amp; json_string,</div>
  292. <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html">StsCredentialsOptions</a>* options);</div>
  293. <div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; </div>
  294. <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;<a class="code" href="classgrpc_1_1_status.html">grpc::Status</a> <a class="code" href="namespacegrpc_1_1experimental.html#a2ace3ea6f7ebdb51d0134e3e0b701f49">StsCredentialsOptionsFromEnv</a>(<a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html">StsCredentialsOptions</a>* options);</div>
  295. <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; </div>
  296. <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#a161935ac55ae1d7df2936a4095cd2bee">StsCredentials</a>(</div>
  297. <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc_1_1experimental_1_1_sts_credentials_options.html">StsCredentialsOptions</a>&amp; options);</div>
  298. <div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; </div>
  299. <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;std::shared_ptr&lt;CallCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#a751cfa9b3fcfe366aaf6cfd0529edaea">MetadataCredentialsFromPlugin</a>(</div>
  300. <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160; std::unique_ptr&lt;MetadataCredentialsPlugin&gt; plugin,</div>
  301. <div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160; <a class="code" href="grpc__security__constants_8h.html#a3c3165c49cd7a359ddb8656aae7e9dd6">grpc_security_level</a> min_security_level);</div>
  302. <div class="line"><a name="l00319"></a><span class="lineno"> 319</span>&#160; </div>
  303. <div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_alts_credentials_options.html"> 321</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgrpc_1_1experimental_1_1_alts_credentials_options.html">AltsCredentialsOptions</a> {</div>
  304. <div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="structgrpc_1_1experimental_1_1_alts_credentials_options.html#a631955176e3f90143b42a89047353bc4"> 325</a></span>&#160; std::vector&lt;grpc::string&gt; <a class="code" href="structgrpc_1_1experimental_1_1_alts_credentials_options.html#a631955176e3f90143b42a89047353bc4">target_service_accounts</a>;</div>
  305. <div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;};</div>
  306. <div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; </div>
  307. <div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#ad871e11876b9e9893ee4f57fc283abfb">AltsCredentials</a>(</div>
  308. <div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; <span class="keyword">const</span> <a class="code" href="structgrpc_1_1experimental_1_1_alts_credentials_options.html">AltsCredentialsOptions</a>&amp; options);</div>
  309. <div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; </div>
  310. <div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#a9354c3cab0a74d9d405c00781f789507">LocalCredentials</a>(</div>
  311. <div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <a class="code" href="grpc__security__constants_8h.html#a31d00ce5c064e1fff4261a6d6298dc11">grpc_local_connect_type</a> type);</div>
  312. <div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; </div>
  313. <div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160;std::shared_ptr&lt;ChannelCredentials&gt; <a class="code" href="namespacegrpc_1_1experimental.html#afb25a4d9b907f609d4ddd1b373a8726b">TlsCredentials</a>(</div>
  314. <div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; <span class="keyword">const</span> <a class="code" href="classgrpc_1_1experimental_1_1_tls_channel_credentials_options.html">TlsChannelCredentialsOptions</a>&amp; options);</div>
  315. <div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160; </div>
  316. <div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;} <span class="comment">// namespace experimental</span></div>
  317. <div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;} <span class="comment">// namespace grpc</span></div>
  318. <div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; </div>
  319. <div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;<span class="preprocessor">#endif // GRPCPP_SECURITY_CREDENTIALS_H</span></div>
  320. </div><!-- fragment --></div><!-- contents -->
  321. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a161935ac55ae1d7df2936a4095cd2bee"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a161935ac55ae1d7df2936a4095cd2bee">grpc::experimental::StsCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; StsCredentials(const StsCredentialsOptions &amp;options)</div></div>
  322. <div class="ttc" id="aclassgrpc_1_1_grpc_library_codegen_html"><div class="ttname"><a href="classgrpc_1_1_grpc_library_codegen.html">grpc::GrpcLibraryCodegen</a></div><div class="ttdoc">Classes that require gRPC to be initialized should inherit from this class.</div><div class="ttdef"><b>Definition:</b> grpc_library.h:38</div></div>
  323. <div class="ttc" id="anamespacegrpc_1_1experimental_html_afb25a4d9b907f609d4ddd1b373a8726b"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#afb25a4d9b907f609d4ddd1b373a8726b">grpc::experimental::TlsCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; TlsCredentials(const TlsChannelCredentialsOptions &amp;options)</div><div class="ttdoc">Builds TLS Credentials given TLS options.</div></div>
  324. <div class="ttc" id="aclassgrpc_1_1string__ref_html"><div class="ttname"><a href="classgrpc_1_1string__ref.html">grpc::string_ref</a></div><div class="ttdoc">This class is a non owning reference to a string.</div><div class="ttdef"><b>Definition:</b> string_ref.h:41</div></div>
  325. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a845a1ccd03791217297f52281777a9b4"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a845a1ccd03791217297f52281777a9b4">grpc::experimental::StsCredentialsOptionsFromJson</a></div><div class="ttdeci">grpc::Status StsCredentialsOptionsFromJson(const std::string &amp;json_string, StsCredentialsOptions *options)</div></div>
  326. <div class="ttc" id="atls__credentials__options_8h_html"><div class="ttname"><a href="tls__credentials__options_8h.html">tls_credentials_options.h</a></div></div>
  327. <div class="ttc" id="astructgrpc_1_1_ssl_credentials_options_html_a01015d8ec7dbf49f2ac3cd21f21d383b"><div class="ttname"><a href="structgrpc_1_1_ssl_credentials_options.html#a01015d8ec7dbf49f2ac3cd21f21d383b">grpc::SslCredentialsOptions::pem_cert_chain</a></div><div class="ttdeci">grpc::string pem_cert_chain</div><div class="ttdoc">The buffer containing the PEM encoding of the client's certificate chain.</div><div class="ttdef"><b>Definition:</b> credentials.h:165</div></div>
  328. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html">grpc::experimental::StsCredentialsOptions</a></div><div class="ttdoc">Options for creating STS Oauth Token Exchange credentials following the IETF draft https://tools....</div><div class="ttdef"><b>Definition:</b> credentials.h:293</div></div>
  329. <div class="ttc" id="astructgrpc_1_1_ssl_credentials_options_html_a5b661f8daf02db7283774e0fb9a8979e"><div class="ttname"><a href="structgrpc_1_1_ssl_credentials_options.html#a5b661f8daf02db7283774e0fb9a8979e">grpc::SslCredentialsOptions::pem_private_key</a></div><div class="ttdeci">grpc::string pem_private_key</div><div class="ttdoc">The buffer containing the PEM encoding of the client's private key.</div><div class="ttdef"><b>Definition:</b> credentials.h:160</div></div>
  330. <div class="ttc" id="anamespacegrpc_html"><div class="ttname"><a href="namespacegrpc.html">grpc</a></div><div class="ttdoc">An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...</div><div class="ttdef"><b>Definition:</b> alarm.h:33</div></div>
  331. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html_ab603d68f9c9387554aa756b27b6b7359"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html#ab603d68f9c9387554aa756b27b6b7359">grpc::ChannelCredentials::CompositeChannelCredentials</a></div><div class="ttdeci">friend std::shared_ptr&lt; ChannelCredentials &gt; CompositeChannelCredentials(const std::shared_ptr&lt; ChannelCredentials &gt; &amp;channel_creds, const std::shared_ptr&lt; CallCredentials &gt; &amp;call_creds)</div><div class="ttdoc">Combines a channel credentials and a call credentials into a composite channel credentials.</div></div>
  332. <div class="ttc" id="anamespacegrpc_html_a6beb3ac70ff94bd2ebbd89b8f21d1f61"><div class="ttname"><a href="namespacegrpc.html#a6beb3ac70ff94bd2ebbd89b8f21d1f61">grpc::GoogleDefaultCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; GoogleDefaultCredentials()</div><div class="ttdoc">Builds credentials with reasonable defaults.</div></div>
  333. <div class="ttc" id="astructgrpc_1_1_ssl_credentials_options_html_a0ce1730020e18d04b6af48c88e069869"><div class="ttname"><a href="structgrpc_1_1_ssl_credentials_options.html#a0ce1730020e18d04b6af48c88e069869">grpc::SslCredentialsOptions::pem_root_certs</a></div><div class="ttdeci">grpc::string pem_root_certs</div><div class="ttdoc">The buffer containing the PEM encoding of the server root certificates.</div><div class="ttdef"><b>Definition:</b> credentials.h:156</div></div>
  334. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html_ac32961bb5ef29ba46bddaeb80fafd551"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html#ac32961bb5ef29ba46bddaeb80fafd551">grpc::ChannelCredentials::AsSecureCredentials</a></div><div class="ttdeci">virtual SecureChannelCredentials * AsSecureCredentials()=0</div></div>
  335. <div class="ttc" id="anamespacegrpc_1_1experimental_html_ad871e11876b9e9893ee4f57fc283abfb"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#ad871e11876b9e9893ee4f57fc283abfb">grpc::experimental::AltsCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; AltsCredentials(const AltsCredentialsOptions &amp;options)</div><div class="ttdoc">Builds ALTS Credentials given ALTS specific options.</div></div>
  336. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html">grpc::MetadataCredentialsPlugin</a></div><div class="ttdoc">User defined metadata credentials.</div><div class="ttdef"><b>Definition:</b> credentials.h:251</div></div>
  337. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html_ad9a7f5fb8a373bf3680938511cedaf7c"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html#ad9a7f5fb8a373bf3680938511cedaf7c">grpc::MetadataCredentialsPlugin::GetType</a></div><div class="ttdeci">virtual const char * GetType() const</div><div class="ttdoc">Type of credentials this plugin is implementing.</div><div class="ttdef"><b>Definition:</b> credentials.h:260</div></div>
  338. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html_a6faf44f7c08d0311a38a868fdb8cbaf0"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html#a6faf44f7c08d0311a38a868fdb8cbaf0">grpc::MetadataCredentialsPlugin::IsBlocking</a></div><div class="ttdeci">virtual bool IsBlocking() const</div><div class="ttdoc">If this method returns true, the Process function will be scheduled in a different thread from the on...</div><div class="ttdef"><b>Definition:</b> credentials.h:257</div></div>
  339. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html_aa0f8c6fc458bf81c3d3384e84ad7059e"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html#aa0f8c6fc458bf81c3d3384e84ad7059e">grpc::MetadataCredentialsPlugin::~MetadataCredentialsPlugin</a></div><div class="ttdeci">virtual ~MetadataCredentialsPlugin()</div><div class="ttdef"><b>Definition:</b> credentials.h:253</div></div>
  340. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a2ace3ea6f7ebdb51d0134e3e0b701f49"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a2ace3ea6f7ebdb51d0134e3e0b701f49">grpc::experimental::StsCredentialsOptionsFromEnv</a></div><div class="ttdeci">grpc::Status StsCredentialsOptionsFromEnv(StsCredentialsOptions *options)</div><div class="ttdoc">Creates STS credentials options from the $STS_CREDENTIALS environment variable.</div></div>
  341. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_ab603d68f9c9387554aa756b27b6b7359"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#ab603d68f9c9387554aa756b27b6b7359">grpc::CallCredentials::CompositeChannelCredentials</a></div><div class="ttdeci">friend std::shared_ptr&lt; ChannelCredentials &gt; CompositeChannelCredentials(const std::shared_ptr&lt; ChannelCredentials &gt; &amp;channel_creds, const std::shared_ptr&lt; CallCredentials &gt; &amp;call_creds)</div><div class="ttdoc">Combines a channel credentials and a call credentials into a composite channel credentials.</div></div>
  342. <div class="ttc" id="astructgrpc_1_1_ssl_credentials_options_html"><div class="ttname"><a href="structgrpc_1_1_ssl_credentials_options.html">grpc::SslCredentialsOptions</a></div><div class="ttdoc">Options used to build SslCredentials.</div><div class="ttdef"><b>Definition:</b> credentials.h:150</div></div>
  343. <div class="ttc" id="anamespacegrpc_html_a845b0382cdd2c71ba8ca715643c38b94"><div class="ttname"><a href="namespacegrpc.html#a845b0382cdd2c71ba8ca715643c38b94">grpc::SslCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; SslCredentials(const SslCredentialsOptions &amp;options)</div><div class="ttdoc">Builds SSL Credentials given SSL specific options.</div></div>
  344. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a9c55f91536c2fbefcd8f8bea1db7125d"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a9c55f91536c2fbefcd8f8bea1db7125d">grpc::experimental::XdsCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; XdsCredentials(const std::shared_ptr&lt; ChannelCredentials &gt; &amp;fallback_creds)</div><div class="ttdoc">Builds XDS Credentials.</div></div>
  345. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a751cfa9b3fcfe366aaf6cfd0529edaea"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a751cfa9b3fcfe366aaf6cfd0529edaea">grpc::experimental::MetadataCredentialsFromPlugin</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; MetadataCredentialsFromPlugin(std::unique_ptr&lt; MetadataCredentialsPlugin &gt; plugin, grpc_security_level min_security_level)</div></div>
  346. <div class="ttc" id="agrpcpp_2support_2status_8h_html"><div class="ttname"><a href="grpcpp_2support_2status_8h.html">status.h</a></div></div>
  347. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a076e5a44347af833494c87d8c6357e67"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a076e5a44347af833494c87d8c6357e67">grpc::experimental::StsCredentialsOptions::scope</a></div><div class="ttdeci">grpc::string scope</div><div class="ttdef"><b>Definition:</b> credentials.h:297</div></div>
  348. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_a064b061a7e2a80e1d6466addd8600779"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#a064b061a7e2a80e1d6466addd8600779">grpc::CallCredentials::CompositeCallCredentials</a></div><div class="ttdeci">friend std::shared_ptr&lt; CallCredentials &gt; CompositeCallCredentials(const std::shared_ptr&lt; CallCredentials &gt; &amp;creds1, const std::shared_ptr&lt; CallCredentials &gt; &amp;creds2)</div><div class="ttdoc">Combines two call credentials objects into a composite call credentials.</div></div>
  349. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_a7ebb786302df962a74818a0acae8332a"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#a7ebb786302df962a74818a0acae8332a">grpc::CallCredentials::DebugString</a></div><div class="ttdeci">virtual grpc::string DebugString()</div><div class="ttdef"><b>Definition:</b> credentials.h:133</div></div>
  350. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a56e8e3f272d31f95066fd1d9dcaea406"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a56e8e3f272d31f95066fd1d9dcaea406">grpc::experimental::StsCredentialsOptions::subject_token_path</a></div><div class="ttdeci">grpc::string subject_token_path</div><div class="ttdef"><b>Definition:</b> credentials.h:299</div></div>
  351. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_af2e0b2a8110e08c867b88f29da9df94a"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#af2e0b2a8110e08c867b88f29da9df94a">grpc::CallCredentials::~CallCredentials</a></div><div class="ttdeci">~CallCredentials() override</div></div>
  352. <div class="ttc" id="aclassgrpc_1_1_channel_arguments_html"><div class="ttname"><a href="classgrpc_1_1_channel_arguments.html">grpc::ChannelArguments</a></div><div class="ttdoc">Options for channel creation.</div><div class="ttdef"><b>Definition:</b> channel_arguments.h:39</div></div>
  353. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a1897f713103d4d34922a31969d766b94"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a1897f713103d4d34922a31969d766b94">grpc::experimental::StsCredentialsOptions::token_exchange_service_uri</a></div><div class="ttdeci">grpc::string token_exchange_service_uri</div><div class="ttdef"><b>Definition:</b> credentials.h:294</div></div>
  354. <div class="ttc" id="anamespacegrpc_html_a92a9f959d6102461f66ee973d8e9d3aa"><div class="ttname"><a href="namespacegrpc.html#a92a9f959d6102461f66ee973d8e9d3aa">grpc::ServiceAccountJWTAccessCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; ServiceAccountJWTAccessCredentials(const grpc::string &amp;json_key, long token_lifetime_seconds=kMaxAuthTokenLifetimeSecs)</div><div class="ttdoc">Builds Service Account JWT Access credentials.</div></div>
  355. <div class="ttc" id="aclassgrpc_1_1_status_html"><div class="ttname"><a href="classgrpc_1_1_status.html">grpc::Status</a></div><div class="ttdoc">Did it work? If it didn't, why?</div><div class="ttdef"><b>Definition:</b> status.h:31</div></div>
  356. <div class="ttc" id="astructgrpc_1_1experimental_1_1_alts_credentials_options_html"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_alts_credentials_options.html">grpc::experimental::AltsCredentialsOptions</a></div><div class="ttdoc">Options used to build AltsCredentials.</div><div class="ttdef"><b>Definition:</b> credentials.h:321</div></div>
  357. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_af28714fa5ebfe120cd02f26aaaca595a"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#af28714fa5ebfe120cd02f26aaaca595a">grpc::CallCredentials::CallCredentials</a></div><div class="ttdeci">CallCredentials()</div></div>
  358. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html">grpc::CallCredentials</a></div><div class="ttdoc">A call credentials object encapsulates the state needed by a client to authenticate with a server for...</div><div class="ttdef"><b>Definition:</b> credentials.h:126</div></div>
  359. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_afdb201d09684fd89bf06ca92e0d18804"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#afdb201d09684fd89bf06ca92e0d18804">grpc::experimental::StsCredentialsOptions::subject_token_type</a></div><div class="ttdeci">grpc::string subject_token_type</div><div class="ttdef"><b>Definition:</b> credentials.h:300</div></div>
  360. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_a2452df1e7847eed5e11588a213f41937"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#a2452df1e7847eed5e11588a213f41937">grpc::CallCredentials::AsSecureCredentials</a></div><div class="ttdeci">virtual SecureCallCredentials * AsSecureCredentials()=0</div></div>
  361. <div class="ttc" id="agrpcpp_2support_2channel__arguments_8h_html"><div class="ttname"><a href="grpcpp_2support_2channel__arguments_8h.html">channel_arguments.h</a></div></div>
  362. <div class="ttc" id="aclassgrpc_1_1experimental_1_1_tls_channel_credentials_options_html"><div class="ttname"><a href="classgrpc_1_1experimental_1_1_tls_channel_credentials_options.html">grpc::experimental::TlsChannelCredentialsOptions</a></div><div class="ttdef"><b>Definition:</b> tls_credentials_options.h:208</div></div>
  363. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html_a84d575b4c97fd74eecbd2605869989c2"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html#a84d575b4c97fd74eecbd2605869989c2">grpc::ChannelCredentials::~ChannelCredentials</a></div><div class="ttdeci">~ChannelCredentials() override</div></div>
  364. <div class="ttc" id="anamespacegrpc_html_a823c6a4b19ffc71fb33e90154ee2ad07"><div class="ttname"><a href="namespacegrpc.html#a823c6a4b19ffc71fb33e90154ee2ad07">grpc::MetadataCredentialsFromPlugin</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; MetadataCredentialsFromPlugin(std::unique_ptr&lt; MetadataCredentialsPlugin &gt; plugin)</div></div>
  365. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a810e799b972db82960ee3ee28670ed06"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a810e799b972db82960ee3ee28670ed06">grpc::experimental::StsCredentialsOptions::audience</a></div><div class="ttdeci">grpc::string audience</div><div class="ttdef"><b>Definition:</b> credentials.h:296</div></div>
  366. <div class="ttc" id="agrpc__types_8h_html_a122f8f4f0a585396d993d9b55848f222"><div class="ttname"><a href="grpc__types_8h.html#a122f8f4f0a585396d993d9b55848f222">grpc_call</a></div><div class="ttdeci">struct grpc_call grpc_call</div><div class="ttdoc">A Call represents an RPC.</div><div class="ttdef"><b>Definition:</b> grpc_types.h:70</div></div>
  367. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_aa5744a0ed075281222199c8edd64c773"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#aa5744a0ed075281222199c8edd64c773">grpc::experimental::StsCredentialsOptions::resource</a></div><div class="ttdeci">grpc::string resource</div><div class="ttdef"><b>Definition:</b> credentials.h:295</div></div>
  368. <div class="ttc" id="aclassgrpc_1_1_auth_context_html"><div class="ttname"><a href="classgrpc_1_1_auth_context.html">grpc::AuthContext</a></div><div class="ttdoc">Class encapsulating the Authentication Information.</div><div class="ttdef"><b>Definition:</b> auth_context.h:65</div></div>
  369. <div class="ttc" id="anamespacegrpc_1_1experimental_html_a9354c3cab0a74d9d405c00781f789507"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#a9354c3cab0a74d9d405c00781f789507">grpc::experimental::LocalCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; LocalCredentials(grpc_local_connect_type type)</div><div class="ttdoc">Builds Local Credentials.</div></div>
  370. <div class="ttc" id="agrpcpp_2channel_8h_html"><div class="ttname"><a href="grpcpp_2channel_8h.html">channel.h</a></div></div>
  371. <div class="ttc" id="anamespacegrpc_html_a4597f5765148bd5bc141bcb778907a1f"><div class="ttname"><a href="namespacegrpc.html#a4597f5765148bd5bc141bcb778907a1f">grpc::ExternalAccountCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; ExternalAccountCredentials(const grpc::string &amp;json_string, const std::vector&lt; grpc::string &gt; &amp;scopes)</div><div class="ttdoc">Builds External Account credentials.</div></div>
  372. <div class="ttc" id="aimpl_2codegen_2client__interceptor_8h_html"><div class="ttname"><a href="impl_2codegen_2client__interceptor_8h.html">client_interceptor.h</a></div></div>
  373. <div class="ttc" id="anamespacegrpc_html_ad9eda8fa85bd833730a40697278e9fe6"><div class="ttname"><a href="namespacegrpc.html#ad9eda8fa85bd833730a40697278e9fe6">grpc::GoogleComputeEngineCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; GoogleComputeEngineCredentials()</div><div class="ttdoc">Builds credentials for use when running in GCE.</div></div>
  374. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a774659bcf268544f08debe45a4bef4d6"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a774659bcf268544f08debe45a4bef4d6">grpc::experimental::StsCredentialsOptions::actor_token_type</a></div><div class="ttdeci">grpc::string actor_token_type</div><div class="ttdef"><b>Definition:</b> credentials.h:302</div></div>
  375. <div class="ttc" id="agrpcpp_2impl_2codegen_2grpc__library_8h_html"><div class="ttname"><a href="grpcpp_2impl_2codegen_2grpc__library_8h.html">grpc_library.h</a></div></div>
  376. <div class="ttc" id="astructgrpc_1_1experimental_1_1_alts_credentials_options_html_a631955176e3f90143b42a89047353bc4"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_alts_credentials_options.html#a631955176e3f90143b42a89047353bc4">grpc::experimental::AltsCredentialsOptions::target_service_accounts</a></div><div class="ttdeci">std::vector&lt; grpc::string &gt; target_service_accounts</div><div class="ttdoc">service accounts of target endpoint that will be acceptable by the client.</div><div class="ttdef"><b>Definition:</b> credentials.h:325</div></div>
  377. <div class="ttc" id="agrpc__security__constants_8h_html_a3c3165c49cd7a359ddb8656aae7e9dd6"><div class="ttname"><a href="grpc__security__constants_8h.html#a3c3165c49cd7a359ddb8656aae7e9dd6">grpc_security_level</a></div><div class="ttdeci">grpc_security_level</div><div class="ttdef"><b>Definition:</b> grpc_security_constants.h:114</div></div>
  378. <div class="ttc" id="anamespacegrpc_html_a72a5e2e0be4aa041cb587bea339589d7"><div class="ttname"><a href="namespacegrpc.html#a72a5e2e0be4aa041cb587bea339589d7">grpc::InsecureChannelCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; InsecureChannelCredentials()</div><div class="ttdoc">Credentials for an unencrypted, unauthenticated channel.</div></div>
  379. <div class="ttc" id="anamespacegrpc_html_a96901c997b91bc6513b08491e0dca37c"><div class="ttname"><a href="namespacegrpc.html#a96901c997b91bc6513b08491e0dca37c">grpc::GoogleRefreshTokenCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; GoogleRefreshTokenCredentials(const grpc::string &amp;json_refresh_token)</div><div class="ttdoc">Builds refresh token credentials.</div></div>
  380. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_ae05063309fd005e4b47a9845dd5508c0"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#ae05063309fd005e4b47a9845dd5508c0">grpc::experimental::StsCredentialsOptions::requested_token_type</a></div><div class="ttdeci">grpc::string requested_token_type</div><div class="ttdef"><b>Definition:</b> credentials.h:298</div></div>
  381. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html_a961606a781db020e7dbd100c00b8071b"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html#a961606a781db020e7dbd100c00b8071b">grpc::ChannelCredentials::ChannelCredentials</a></div><div class="ttdeci">ChannelCredentials()</div></div>
  382. <div class="ttc" id="aclassgrpc_1_1experimental_1_1_client_interceptor_factory_interface_html"><div class="ttname"><a href="classgrpc_1_1experimental_1_1_client_interceptor_factory_interface.html">grpc::experimental::ClientInterceptorFactoryInterface</a></div><div class="ttdef"><b>Definition:</b> client_interceptor.h:46</div></div>
  383. <div class="ttc" id="anamespacegrpc_1_1experimental_html_af089b10a266c70f15aeb7e2156295a30"><div class="ttname"><a href="namespacegrpc_1_1experimental.html#af089b10a266c70f15aeb7e2156295a30">grpc::experimental::CreateCustomChannelWithInterceptors</a></div><div class="ttdeci">std::shared_ptr&lt; Channel &gt; CreateCustomChannelWithInterceptors(const grpc::string &amp;target, const std::shared_ptr&lt; ChannelCredentials &gt; &amp;creds, const ChannelArguments &amp;args, std::vector&lt; std::unique_ptr&lt; experimental::ClientInterceptorFactoryInterface &gt;&gt; interceptor_creators)</div><div class="ttdoc">Create a new custom Channel pointing to target with interceptors being invoked per call.</div></div>
  384. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html">grpc::ChannelCredentials</a></div><div class="ttdoc">A channel credentials object encapsulates all the state needed by a client to authenticate with a ser...</div><div class="ttdef"><b>Definition:</b> credentials.h:69</div></div>
  385. <div class="ttc" id="aclassgrpc_1_1_channel_credentials_html_a7ee0416f7e1fc38d75a911f67397cfb0"><div class="ttname"><a href="classgrpc_1_1_channel_credentials.html#a7ee0416f7e1fc38d75a911f67397cfb0">grpc::ChannelCredentials::CreateCustomChannel</a></div><div class="ttdeci">friend std::shared_ptr&lt; grpc::Channel &gt; CreateCustomChannel(const grpc::string &amp;target, const std::shared_ptr&lt; grpc::ChannelCredentials &gt; &amp;creds, const grpc::ChannelArguments &amp;args)</div></div>
  386. <div class="ttc" id="anamespacegrpc_html_a4a5c8a2c77389604feaa5d38cdd7b8d3"><div class="ttname"><a href="namespacegrpc.html#a4a5c8a2c77389604feaa5d38cdd7b8d3">grpc::CreateCustomChannel</a></div><div class="ttdeci">std::shared_ptr&lt; Channel &gt; CreateCustomChannel(const grpc::string &amp;target, const std::shared_ptr&lt; ChannelCredentials &gt; &amp;creds, const ChannelArguments &amp;args)</div><div class="ttdoc">Create a new custom Channel pointing to target.</div></div>
  387. <div class="ttc" id="aclassgrpc_1_1_call_credentials_html_aa9278e08b5c6144247766c78cf4b53d1"><div class="ttname"><a href="classgrpc_1_1_call_credentials.html#aa9278e08b5c6144247766c78cf4b53d1">grpc::CallCredentials::ApplyToCall</a></div><div class="ttdeci">virtual bool ApplyToCall(grpc_call *call)=0</div><div class="ttdoc">Apply this instance's credentials to call.</div></div>
  388. <div class="ttc" id="agrpc__security__constants_8h_html"><div class="ttname"><a href="grpc__security__constants_8h.html">grpc_security_constants.h</a></div></div>
  389. <div class="ttc" id="anamespacegrpc_html_a15b2ab0930231bc9142a6e63a9cc8219"><div class="ttname"><a href="namespacegrpc.html#a15b2ab0930231bc9142a6e63a9cc8219">grpc::CompositeChannelCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; ChannelCredentials &gt; CompositeChannelCredentials(const std::shared_ptr&lt; ChannelCredentials &gt; &amp;channel_creds, const std::shared_ptr&lt; CallCredentials &gt; &amp;call_creds)</div><div class="ttdoc">Combines a channel credentials and a call credentials into a composite channel credentials.</div></div>
  390. <div class="ttc" id="anamespacegrpc_html_adc351fe5f823440fd2928a7dc65236f4"><div class="ttname"><a href="namespacegrpc.html#adc351fe5f823440fd2928a7dc65236f4">grpc::CompositeCallCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; CompositeCallCredentials(const std::shared_ptr&lt; CallCredentials &gt; &amp;creds1, const std::shared_ptr&lt; CallCredentials &gt; &amp;creds2)</div><div class="ttdoc">Combines two call credentials objects into a composite call credentials.</div></div>
  391. <div class="ttc" id="anamespacegrpc_html_a9b65a618d145857974b7defb40bed7a0"><div class="ttname"><a href="namespacegrpc.html#a9b65a618d145857974b7defb40bed7a0">grpc::kMaxAuthTokenLifetimeSecs</a></div><div class="ttdeci">constexpr long kMaxAuthTokenLifetimeSecs</div><div class="ttdef"><b>Definition:</b> credentials.h:193</div></div>
  392. <div class="ttc" id="anamespacegrpc_html_ad3a80da696ffdaea943f0f858d7a360d"><div class="ttname"><a href="namespacegrpc.html#ad3a80da696ffdaea943f0f858d7a360d">grpc::AccessTokenCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; AccessTokenCredentials(const grpc::string &amp;access_token)</div><div class="ttdoc">Builds access token credentials.</div></div>
  393. <div class="ttc" id="astructgrpc_1_1experimental_1_1_sts_credentials_options_html_a2f2116ad2d225e7093fc0770967845c2"><div class="ttname"><a href="structgrpc_1_1experimental_1_1_sts_credentials_options.html#a2f2116ad2d225e7093fc0770967845c2">grpc::experimental::StsCredentialsOptions::actor_token_path</a></div><div class="ttdeci">grpc::string actor_token_path</div><div class="ttdef"><b>Definition:</b> credentials.h:301</div></div>
  394. <div class="ttc" id="agrpcpp_2security_2auth__context_8h_html"><div class="ttname"><a href="grpcpp_2security_2auth__context_8h.html">auth_context.h</a></div></div>
  395. <div class="ttc" id="agrpc__security__constants_8h_html_a31d00ce5c064e1fff4261a6d6298dc11"><div class="ttname"><a href="grpc__security__constants_8h.html#a31d00ce5c064e1fff4261a6d6298dc11">grpc_local_connect_type</a></div><div class="ttdeci">grpc_local_connect_type</div><div class="ttdoc">Type of local connections for which local channel/server credentials will be applied.</div><div class="ttdef"><b>Definition:</b> grpc_security_constants.h:140</div></div>
  396. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html_a010de34e9e4240af3529e8913456bec2"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html#a010de34e9e4240af3529e8913456bec2">grpc::MetadataCredentialsPlugin::DebugString</a></div><div class="ttdeci">virtual grpc::string DebugString()</div><div class="ttdef"><b>Definition:</b> credentials.h:272</div></div>
  397. <div class="ttc" id="aclassgrpc_1_1_metadata_credentials_plugin_html_ae6e9664ee51d6490e64c4755734ab16d"><div class="ttname"><a href="classgrpc_1_1_metadata_credentials_plugin.html#ae6e9664ee51d6490e64c4755734ab16d">grpc::MetadataCredentialsPlugin::GetMetadata</a></div><div class="ttdeci">virtual grpc::Status GetMetadata(grpc::string_ref service_url, grpc::string_ref method_name, const grpc::AuthContext &amp;channel_auth_context, std::multimap&lt; grpc::string, grpc::string &gt; *metadata)=0</div><div class="ttdoc">Gets the auth metatada produced by this plugin.</div></div>
  398. <div class="ttc" id="agrpcpp_2support_2string__ref_8h_html"><div class="ttname"><a href="grpcpp_2support_2string__ref_8h.html">string_ref.h</a></div></div>
  399. <div class="ttc" id="anamespacegrpc_html_a9fc1fc101b41e680d47028166e76f9d0"><div class="ttname"><a href="namespacegrpc.html#a9fc1fc101b41e680d47028166e76f9d0">grpc::GoogleIAMCredentials</a></div><div class="ttdeci">std::shared_ptr&lt; CallCredentials &gt; GoogleIAMCredentials(const grpc::string &amp;authorization_token, const grpc::string &amp;authority_selector)</div><div class="ttdoc">Builds IAM credentials.</div></div>
  400. <!-- start footer part -->
  401. <hr class="footer"/><address class="footer"><small>
  402. Generated on Wed Mar 3 2021 19:17:19 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  403. <img class="footer" src="doxygen.png" alt="doxygen"/>
  404. </a> 1.8.17
  405. </small></address>
  406. </body>
  407. </html>