1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GRPC Core: src/core/security/credentials.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">GRPC Core
 <span id="projectnumber">0.11.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li><li class="navelem"><a class="el" href="dir_b758f7a0b27044dfb0efa69af3c473f5.html">security</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">credentials.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="credentials_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> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2015, Google Inc.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modification, are permitted provided that the following conditions are</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * * Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * copyright notice, this list of conditions and the following disclaimer</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * in the documentation and/or other materials provided with the</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * distribution.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * * Neither the name of Google Inc. nor the names of its</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * this software without specific prior written permission.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifndef GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="stream__op_8h.html">src/core/transport/stream_op.h</a>"</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <<a class="code" href="grpc_8h.html">grpc/grpc.h</a>></span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include <<a class="code" href="grpc__security_8h.html">grpc/grpc_security.h</a>></span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <<a class="code" href="sync_8h.html">grpc/support/sync.h</a>></span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="httpcli_8h.html">src/core/httpcli/httpcli.h</a>"</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "<a class="code" href="json__token_8h.html">src/core/security/json_token.h</a>"</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include "<a class="code" href="security__connector_8h.html">src/core/security/security_connector.h</a>"</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">struct </span><a class="code" href="structgrpc__httpcli__response.html">grpc_httpcli_response</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">/* --- Constants. --- */</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4"> 50</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4a24b48b91238fd97a3f02b97886e93c15"> 51</a></span>  <a class="code" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4a24b48b91238fd97a3f02b97886e93c15">GRPC_CREDENTIALS_OK</a> = 0,</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4aa187148e06f47b75b8f89794a837fb6a"> 52</a></span>  <a class="code" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4aa187148e06f47b75b8f89794a837fb6a">GRPC_CREDENTIALS_ERROR</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> } <a class="code" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4">grpc_credentials_status</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="credentials_8h.html#a2f398e72138c69b2928abb30e54ce4ce"> 55</a></span> <span class="preprocessor">#define GRPC_FAKE_TRANSPORT_SECURITY_TYPE "fake"</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="credentials_8h.html#ae74910f24a7fe0d54c326a1ed9e5e127"> 57</a></span> <span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_SSL "Ssl"</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="credentials_8h.html#ad1d383b3414af259ebc165ac21febd04"> 58</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_OAUTH2 "Oauth2"</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="credentials_8h.html#a94b9c6715bdb2a6469fe0db959358d2c"> 59</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_JWT "Jwt"</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="credentials_8h.html#a2921973fe6094cad4b3aa94b20d8e254"> 60</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_IAM "Iam"</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="credentials_8h.html#a0712aea16b41a6d8c65dafcd9d12f599"> 61</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_COMPOSITE "Composite"</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="credentials_8h.html#a30ae5fa2e94aeeca90b31d0fd7c416d4"> 62</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_CREDENTIALS_TYPE_FAKE_TRANSPORT_SECURITY "FakeTransportSecurity"</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="credentials_8h.html#ae5d55c31d952d739f5be7de47ad425a3"> 64</a></span> <span class="preprocessor">#define GRPC_AUTHORIZATION_METADATA_KEY "Authorization"</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="credentials_8h.html#ac952f285c5ca94edcff909e37ae68402"> 65</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_IAM_AUTHORIZATION_TOKEN_METADATA_KEY \</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor"> "x-goog-iam-authorization-token"</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="credentials_8h.html#ada8ea1fc7b28fb63283af76ad27761dd"> 67</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_IAM_AUTHORITY_SELECTOR_METADATA_KEY "x-goog-iam-authority-selector"</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="credentials_8h.html#ac6142eafe5116c797b860449a2fbb7bf"> 69</a></span> <span class="preprocessor">#define GRPC_GOOGLE_CLOUD_SDK_CONFIG_DIRECTORY "gcloud"</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="credentials_8h.html#a95d64473b3915a6a65e99ac283326e78"> 70</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_GOOGLE_WELL_KNOWN_CREDENTIALS_FILE \</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor"> "application_default_credentials.json"</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="credentials_8h.html#a63b03c9e9e071d5b7f2276c0ae196aeb"> 73</a></span> <span class="preprocessor">#define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="credentials_8h.html#af2ca22068add36d00ce70643802ff647"> 75</a></span> <span class="preprocessor">#define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata"</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="credentials_8h.html#aca8e8738c2c829c3cf48f49454f7188f"> 76</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor"> "/computeMetadata/v1/instance/service-accounts/default/token"</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="credentials_8h.html#a61dc5d4843d2e4b26aa48694efd08cd3"> 79</a></span> <span class="preprocessor">#define GRPC_GOOGLE_OAUTH2_SERVICE_HOST "www.googleapis.com"</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="credentials_8h.html#aa9cf32ba20b7ce3e171c87ab1c08b20c"> 80</a></span> <span class="preprocessor"></span><span class="preprocessor">#define GRPC_GOOGLE_OAUTH2_SERVICE_TOKEN_PATH "/oauth2/v3/token"</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="credentials_8h.html#a5c5761f3829eca7ec24d5aa68272cad2"> 82</a></span> <span class="preprocessor">#define GRPC_SERVICE_ACCOUNT_POST_BODY_PREFIX \</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="preprocessor"> "grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&" \</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor"> "assertion="</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="credentials_8h.html#adeaf95d65b517e001c71d1fb5e47c97a"> 86</a></span> <span class="preprocessor">#define GRPC_REFRESH_TOKEN_POST_BODY_FORMAT_STRING \</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor"> "client_id=%s&client_secret=%s&refresh_token=%s&grant_type=refresh_token"</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment">/* --- grpc_credentials_md. --- */</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md.html"> 91</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md.html#a8484aa32f640b1b127c1903e868a4a53"> 92</a></span>  <a class="code" href="structgpr__slice.html">gpr_slice</a> <a class="code" href="structgrpc__credentials__md.html#a8484aa32f640b1b127c1903e868a4a53">key</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md.html#ae893ec4c5c65ffa395a5e12259089841"> 93</a></span>  <a class="code" href="structgpr__slice.html">gpr_slice</a> <a class="code" href="structgrpc__credentials__md.html#ae893ec4c5c65ffa395a5e12259089841">value</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> } <a class="code" href="structgrpc__credentials__md.html">grpc_credentials_md</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md__store.html"> 96</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md__store.html#ab5f2f62b101f1d05a11340bc45eb71c5"> 97</a></span>  <a class="code" href="structgrpc__credentials__md.html">grpc_credentials_md</a> *<a class="code" href="structgrpc__credentials__md__store.html#ab5f2f62b101f1d05a11340bc45eb71c5">entries</a>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md__store.html#adfddab340d1b7d7d51087b015f14b259"> 98</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__credentials__md__store.html#adfddab340d1b7d7d51087b015f14b259">num_entries</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md__store.html#a6b9a6a36be981b53ce96afe727e8b95e"> 99</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__credentials__md__store.html#a6b9a6a36be981b53ce96afe727e8b95e">allocated</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structgrpc__credentials__md__store.html#adf0f64c7bbf264de9434ea9d656bf694"> 100</a></span>  <a class="code" href="structgpr__refcount.html">gpr_refcount</a> <a class="code" href="structgrpc__credentials__md__store.html#adf0f64c7bbf264de9434ea9d656bf694">refcount</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> } <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="credentials_8h.html#aee28492ddb70e47b0778fc928be9159b">grpc_credentials_md_store_create</a>(</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">size_t</span> initial_capacity);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">/* Will ref key and value. */</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#a3676b161f50d5b36989af2624565596b">grpc_credentials_md_store_add</a>(<a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *store,</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="structgpr__slice.html">gpr_slice</a> <a class="code" href="hpack__table_8c.html#acd3d88da3c0e0313c3645ff34f62f542">key</a>, <a class="code" href="structgpr__slice.html">gpr_slice</a> <a class="code" href="hpack__table_8c.html#a8556878012feffc9e0beb86cd78f424d">value</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#a51ccf8c724a8477d5efcf0e3f73ef3a4">grpc_credentials_md_store_add_cstrings</a>(<a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *store,</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="hpack__table_8c.html#acd3d88da3c0e0313c3645ff34f62f542">key</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="hpack__table_8c.html#a8556878012feffc9e0beb86cd78f424d">value</a>);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="credentials_8h.html#a5535f991ceb2b2160aee414cf013ed73">grpc_credentials_md_store_ref</a>(</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *store);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#afc507497ef8b5dda7074b63babaac366">grpc_credentials_md_store_unref</a>(<a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *store);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">/* --- grpc_credentials. --- */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">/* Creates a fake transport security credentials object for testing. */</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="credentials_8h.html#ab970b1925f494cb159a29a404f23d157">grpc_fake_transport_security_credentials_create</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">/* Creates a fake server transport security credentials object for testing. */</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *<a class="code" href="credentials_8h.html#a60f9433cc38460bb83da148eff9475ae">grpc_fake_transport_security_server_credentials_create</a>(</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment">/* It is the caller's responsibility to gpr_free the result if not NULL. */</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keywordtype">char</span> *<a class="code" href="credentials_8h.html#a3c03f6a39aec4530a4a3024a8f9c2716">grpc_get_well_known_google_credentials_file_path</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="credentials_8h.html#a3d93eb22b0fedde1b3f7b6b9ded3aaf2"> 126</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="credentials_8h.html#a3d93eb22b0fedde1b3f7b6b9ded3aaf2">grpc_credentials_metadata_cb</a>)(<span class="keywordtype">void</span> *user_data,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="structgrpc__credentials__md.html">grpc_credentials_md</a> *md_elems,</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">size_t</span> num_md,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4">grpc_credentials_status</a> status);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html"> 131</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html#ae8e6461de619ea9588704c2435a08731"> 132</a></span>  void (*destruct)(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *c);</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html#acd487d7cf9dab42866c366a212ef4b15"> 133</a></span>  int (*has_request_metadata)(<span class="keyword">const</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *c);</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html#a2028660c297e6e08be99e09f068921e7"> 134</a></span>  int (*has_request_metadata_only)(<span class="keyword">const</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *c);</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html#a14795750df563c75436add4e7c05603d"> 135</a></span>  void (*get_request_metadata)(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *c, <a class="code" href="structgrpc__pollset.html">grpc_pollset</a> *pollset,</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *service_url,</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="credentials_8h.html#a3d93eb22b0fedde1b3f7b6b9ded3aaf2">grpc_credentials_metadata_cb</a> cb,</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">void</span> *user_data);</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structgrpc__credentials__vtable.html#a7bbb5a8658e7f2295ed816f7f60e6f00"> 139</a></span>  <a class="code" href="security__connector_8h.html#a7a71a61785f1c3b13704bb735d2645f9">grpc_security_status</a> (*create_security_connector)(</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *c, <span class="keyword">const</span> <span class="keywordtype">char</span> *target, <span class="keyword">const</span> <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> *args,</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *request_metadata_creds,</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="structgrpc__channel__security__connector.html">grpc_channel_security_connector</a> **sc, <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> **new_args);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> } <a class="code" href="structgrpc__credentials__vtable.html">grpc_credentials_vtable</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="structgrpc__credentials.html"> 145</a></span> <span class="keyword">struct </span><a class="code" href="structgrpc__credentials.html">grpc_credentials</a> {</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="structgrpc__credentials.html#a4842bd6607dba5b1045e4ad4e167d20e"> 146</a></span>  <span class="keyword">const</span> <a class="code" href="structgrpc__credentials__vtable.html">grpc_credentials_vtable</a> *<a class="code" href="structgrpc__credentials.html#a4842bd6607dba5b1045e4ad4e167d20e">vtable</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="structgrpc__credentials.html#a40d9db6d1125238d7e1ceeeab886788b"> 147</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgrpc__credentials.html#a40d9db6d1125238d7e1ceeeab886788b">type</a>;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="structgrpc__credentials.html#a823ba4bf9cc44b1173f6b4889a3446d6"> 148</a></span>  <a class="code" href="structgpr__refcount.html">gpr_refcount</a> <a class="code" href="structgrpc__credentials.html#a823ba4bf9cc44b1173f6b4889a3446d6">refcount</a>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> };</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="credentials_8h.html#a62061acac11e854a58c5faca6956e609">grpc_credentials_ref</a>(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#a63d4aa3f072736ba5eb168e12c306e56">grpc_credentials_unref</a>(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds);</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="keywordtype">int</span> <a class="code" href="credentials_8h.html#ad44c9cce8c086f8c083e5d5006e3310a">grpc_credentials_has_request_metadata</a>(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds);</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keywordtype">int</span> <a class="code" href="credentials_8h.html#a726f818ebdd9e781b090cf7d27347b7a">grpc_credentials_has_request_metadata_only</a>(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#afe8d4191ee0f0f67684fd2575173cabc">grpc_credentials_get_request_metadata</a>(<a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds,</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="structgrpc__pollset.html">grpc_pollset</a> *pollset,</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *service_url,</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="credentials_8h.html#a3d93eb22b0fedde1b3f7b6b9ded3aaf2">grpc_credentials_metadata_cb</a> cb,</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">void</span> *user_data);</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">/* Creates a security connector for the channel. May also create new channel</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> args for the channel to be used in place of the passed in const args if</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment"> returned non NULL. In that case the caller is responsible for destroying</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> new_args after channel creation. */</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <a class="code" href="security__connector_8h.html#a7a71a61785f1c3b13704bb735d2645f9">grpc_security_status</a> <a class="code" href="credentials_8h.html#af26c4ee0ed97f2e88958c54ba22d5759">grpc_credentials_create_security_connector</a>(</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds, <span class="keyword">const</span> <span class="keywordtype">char</span> *target, <span class="keyword">const</span> <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> *args,</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *request_metadata_creds,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="structgrpc__channel__security__connector.html">grpc_channel_security_connector</a> **sc, <a class="code" href="structgrpc__channel__args.html">grpc_channel_args</a> **new_args);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structgrpc__credentials__array.html"> 170</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="structgrpc__credentials__array.html#a72172f932751c5d9fc7670af1a1cd231"> 171</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> **<a class="code" href="structgrpc__credentials__array.html#a72172f932751c5d9fc7670af1a1cd231">creds_array</a>;</div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="structgrpc__credentials__array.html#a1a4ba8ed410c26eaee6aa5a7d5b36d96"> 172</a></span>  <span class="keywordtype">size_t</span> <a class="code" href="structgrpc__credentials__array.html#a1a4ba8ed410c26eaee6aa5a7d5b36d96">num_creds</a>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> } <a class="code" href="structgrpc__credentials__array.html">grpc_credentials_array</a>;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="keyword">const</span> <a class="code" href="structgrpc__credentials__array.html">grpc_credentials_array</a> *<a class="code" href="credentials_8h.html#ae0ed8f1e7494e839a3992c0a19fe0c67">grpc_composite_credentials_get_credentials</a>(</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *composite_creds);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">/* Returns creds if creds is of the specified type or the inner creds of the</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment"> specified type (if found), if the creds is of type COMPOSITE.</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"> If composite_creds is not NULL, *composite_creds will point to creds if of</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> type COMPOSITE in case of success. */</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="credentials_8h.html#a4a6be957afa38741405a5a41cdd752e1">grpc_credentials_contains_type</a>(</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *creds, <span class="keyword">const</span> <span class="keywordtype">char</span> *type,</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> **composite_creds);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment">/* Exposed for testing only. */</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <a class="code" href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4">grpc_credentials_status</a></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <a class="code" href="credentials_8h.html#af0dac46697efd780811863ee13c73fbd">grpc_oauth2_token_fetcher_credentials_parse_server_response</a>(</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structgrpc__httpcli__response.html">grpc_httpcli_response</a> *response,</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> **token_md, <a class="code" href="structgpr__timespec.html">gpr_timespec</a> *token_lifetime);</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#a7e3aec152312d2b66ccd3b232317b10a">grpc_flush_cached_google_default_credentials</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment">/* Metadata-only credentials with the specified key and value where</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> asynchronicity can be simulated for testing. */</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="credentials_8h.html#a0694273fb180cefa4e2ec396651d9fdb">grpc_md_only_test_credentials_create</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *md_key,</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *md_value,</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordtype">int</span> is_async);</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment">/* Private constructor for jwt credentials from an already parsed json key.</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> Takes ownership of the key. */</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <a class="code" href="credentials_8h.html#a26715660e319377bdfc4f2476ff35505">grpc_service_account_jwt_access_credentials_create_from_auth_json_key</a>(</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="structgrpc__auth__json__key.html">grpc_auth_json_key</a> <a class="code" href="hpack__table_8c.html#acd3d88da3c0e0313c3645ff34f62f542">key</a>, <a class="code" href="structgpr__timespec.html">gpr_timespec</a> token_lifetime);</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment">/* Private constructor for refresh token credentials from an already parsed</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> refresh token. Takes ownership of the refresh token. */</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="credentials_8h.html#af364310c463f2ddc7d714f2dbbd57e0d">grpc_refresh_token_credentials_create_from_auth_refresh_token</a>(</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="structgrpc__auth__refresh__token.html">grpc_auth_refresh_token</a> token);</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment">/* --- grpc_server_credentials. --- */</span></div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials__vtable.html"> 212</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials__vtable.html#a6b6179669f926a28f4b696928899a36b"> 213</a></span>  void (*destruct)(<a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *c);</div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials__vtable.html#af56836a7d92bb4475b92d5991eb9c30d"> 214</a></span>  <a class="code" href="security__connector_8h.html#a7a71a61785f1c3b13704bb735d2645f9">grpc_security_status</a> (*create_security_connector)(</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *c, <a class="code" href="structgrpc__security__connector.html">grpc_security_connector</a> **sc);</div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> } <a class="code" href="structgrpc__server__credentials__vtable.html">grpc_server_credentials_vtable</a>;</div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment">/* TODO(jboeuf): Add a refcount. */</span></div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials.html"> 220</a></span> <span class="keyword">struct </span><a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> {</div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials.html#aa1514867a5ea460ca43d0afebea72b63"> 221</a></span>  <span class="keyword">const</span> <a class="code" href="structgrpc__server__credentials__vtable.html">grpc_server_credentials_vtable</a> *<a class="code" href="structgrpc__server__credentials.html#aa1514867a5ea460ca43d0afebea72b63">vtable</a>;</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials.html#a96c8274aa0811620829537eb27bfcc1c"> 222</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structgrpc__server__credentials.html#a96c8274aa0811620829537eb27bfcc1c">type</a>;</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials.html#a09edf5dc25f9d65ca19fae28ea69f1b7"> 223</a></span>  <a class="code" href="structgpr__refcount.html">gpr_refcount</a> <a class="code" href="structgrpc__server__credentials.html#a09edf5dc25f9d65ca19fae28ea69f1b7">refcount</a>;</div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="structgrpc__server__credentials.html#a92b2187c2007c28901cbe6eda32dc592"> 224</a></span>  <a class="code" href="structgrpc__auth__metadata__processor.html">grpc_auth_metadata_processor</a> <a class="code" href="structgrpc__server__credentials.html#a92b2187c2007c28901cbe6eda32dc592">processor</a>;</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> };</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <a class="code" href="security__connector_8h.html#a7a71a61785f1c3b13704bb735d2645f9">grpc_security_status</a> <a class="code" href="credentials_8h.html#acc8fc30e87ddec6ff87dd6676215755a">grpc_server_credentials_create_security_connector</a>(</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *creds, <a class="code" href="structgrpc__security__connector.html">grpc_security_connector</a> **sc);</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *<a class="code" href="credentials_8h.html#ad3bd8c9c7aac0d407e081eff3dab3983">grpc_server_credentials_ref</a>(</div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *creds);</div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="keywordtype">void</span> <a class="code" href="credentials_8h.html#ad934e865fb25edae57900193337d798b">grpc_server_credentials_unref</a>(<a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> *creds);</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment">/* -- Ssl credentials. -- */</span></div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="structgrpc__ssl__credentials.html"> 237</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="structgrpc__ssl__credentials.html#a2745d407b41a3278d6701b10dd94c6e4"> 238</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__ssl__credentials.html#a2745d407b41a3278d6701b10dd94c6e4">base</a>;</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="structgrpc__ssl__credentials.html#a501050df420385527ac006a59e82dc06"> 239</a></span>  <a class="code" href="structgrpc__ssl__config.html">grpc_ssl_config</a> <a class="code" href="structgrpc__ssl__credentials.html#a501050df420385527ac006a59e82dc06">config</a>;</div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> } <a class="code" href="structgrpc__ssl__credentials.html">grpc_ssl_credentials</a>;</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="structgrpc__ssl__server__credentials.html"> 242</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="structgrpc__ssl__server__credentials.html#af476f00d0272add3ba170388460abc71"> 243</a></span>  <a class="code" href="structgrpc__server__credentials.html">grpc_server_credentials</a> <a class="code" href="structgrpc__ssl__server__credentials.html#af476f00d0272add3ba170388460abc71">base</a>;</div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="structgrpc__ssl__server__credentials.html#a00e6754957e007f8cc2926911c752fc3"> 244</a></span>  <a class="code" href="structgrpc__ssl__server__config.html">grpc_ssl_server_config</a> <a class="code" href="structgrpc__ssl__server__credentials.html#a00e6754957e007f8cc2926911c752fc3">config</a>;</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> } <a class="code" href="structgrpc__ssl__server__credentials.html">grpc_ssl_server_credentials</a>;</div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment">/* -- Jwt credentials -- */</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html"> 249</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#a9da87dad6986e218d5246fc125db04f4"> 250</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__service__account__jwt__access__credentials.html#a9da87dad6986e218d5246fc125db04f4">base</a>;</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="comment">/* Have a simple cache for now with just 1 entry. We could have a map based on</span></div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment"> the service_url for a more sophisticated one. */</span></div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#a641b64d26a1c7bdc348e960ed5400b94"> 254</a></span>  <a class="code" href="structgpr__mu.html">gpr_mu</a> <a class="code" href="structgrpc__service__account__jwt__access__credentials.html#a641b64d26a1c7bdc348e960ed5400b94">cache_mu</a>;</div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#a1bdefcea33f490d5a40414fa10938533"> 256</a></span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="structgrpc__service__account__jwt__access__credentials.html#a1bdefcea33f490d5a40414fa10938533">jwt_md</a>;</div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#abc57d00b1bfd2b26f3b50feebccc84fb"> 257</a></span>  <span class="keywordtype">char</span> *<a class="code" href="structgrpc__service__account__jwt__access__credentials.html#abc57d00b1bfd2b26f3b50feebccc84fb">service_url</a>;</div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#a3adac3e5a237a509291047037a5a892a"> 258</a></span>  <a class="code" href="structgpr__timespec.html">gpr_timespec</a> <a class="code" href="structgrpc__service__account__jwt__access__credentials.html#a3adac3e5a237a509291047037a5a892a">jwt_expiration</a>;</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  } cached;</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#abedd1fe434bdb017b566f5aa096d8f32"> 261</a></span>  <a class="code" href="structgrpc__auth__json__key.html">grpc_auth_json_key</a> <a class="code" href="structgrpc__service__account__jwt__access__credentials.html#abedd1fe434bdb017b566f5aa096d8f32">key</a>;</div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="structgrpc__service__account__jwt__access__credentials.html#a17f125b4f728143947f9917390316126"> 262</a></span>  <a class="code" href="structgpr__timespec.html">gpr_timespec</a> <a class="code" href="structgrpc__service__account__jwt__access__credentials.html#a17f125b4f728143947f9917390316126">jwt_lifetime</a>;</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> } <a class="code" href="structgrpc__service__account__jwt__access__credentials.html">grpc_service_account_jwt_access_credentials</a>;</div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment">/* -- Oauth2TokenFetcher credentials --</span></div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="comment"></span></div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="comment"> This object is a base for credentials that need to acquire an oauth2 token</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="comment"> from an http service. */</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="credentials_8h.html#ad254566b74763fc0ae17e07b230c862b"> 270</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structgrpc__credentials__metadata__request.html">grpc_credentials_metadata_request</a></div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="structgrpc__credentials__metadata__request.html">grpc_credentials_metadata_request</a>;</div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="credentials_8h.html#a6c5b440dff7801066f4afb03a60c249d"> 273</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="credentials_8h.html#a6c5b440dff7801066f4afb03a60c249d">grpc_fetch_oauth2_func</a>)(<a class="code" href="structgrpc__credentials__metadata__request.html">grpc_credentials_metadata_request</a> *req,</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="structgrpc__httpcli__context.html">grpc_httpcli_context</a> *http_context,</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="structgrpc__pollset.html">grpc_pollset</a> *pollset,</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="httpcli_8h.html#a00129a2e0bb8e9d9a6632e88f7a8c887">grpc_httpcli_response_cb</a> response_cb,</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="structgpr__timespec.html">gpr_timespec</a> deadline);</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html"> 279</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#acf21ce59c27d145279e5a26d561ea2d5"> 280</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#acf21ce59c27d145279e5a26d561ea2d5">base</a>;</div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#a1dec60523d8f3844032e213ea8766c45"> 281</a></span>  <a class="code" href="structgpr__mu.html">gpr_mu</a> <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#a1dec60523d8f3844032e213ea8766c45">mu</a>;</div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#abf3f319f98882bf7ae8fc81bd95076be"> 282</a></span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#abf3f319f98882bf7ae8fc81bd95076be">access_token_md</a>;</div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#a293a6ed6c4f54ef2de4de3e071ae6e13"> 283</a></span>  <a class="code" href="structgpr__timespec.html">gpr_timespec</a> <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#a293a6ed6c4f54ef2de4de3e071ae6e13">token_expiration</a>;</div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#a6c54ee9f6021c950777c42a4e34b71c8"> 284</a></span>  <a class="code" href="structgrpc__httpcli__context.html">grpc_httpcli_context</a> <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#a6c54ee9f6021c950777c42a4e34b71c8">httpcli_context</a>;</div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="structgrpc__oauth2__token__fetcher__credentials.html#af761ff685ab5e0c5884770d5bb52db54"> 285</a></span>  <a class="code" href="credentials_8h.html#a6c5b440dff7801066f4afb03a60c249d">grpc_fetch_oauth2_func</a> <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html#af761ff685ab5e0c5884770d5bb52db54">fetch_func</a>;</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> } <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html">grpc_oauth2_token_fetcher_credentials</a>;</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment">/* -- GoogleRefreshToken credentials. -- */</span></div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div>
<div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="structgrpc__google__refresh__token__credentials.html"> 290</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="structgrpc__google__refresh__token__credentials.html#acb22938435113c5479024c9e07648771"> 291</a></span>  <a class="code" href="structgrpc__oauth2__token__fetcher__credentials.html">grpc_oauth2_token_fetcher_credentials</a> <a class="code" href="structgrpc__google__refresh__token__credentials.html#acb22938435113c5479024c9e07648771">base</a>;</div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="structgrpc__google__refresh__token__credentials.html#acbb59e3fbd1704345eb8a74f51349e6e"> 292</a></span>  <a class="code" href="structgrpc__auth__refresh__token.html">grpc_auth_refresh_token</a> <a class="code" href="structgrpc__google__refresh__token__credentials.html#acbb59e3fbd1704345eb8a74f51349e6e">refresh_token</a>;</div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> } <a class="code" href="structgrpc__google__refresh__token__credentials.html">grpc_google_refresh_token_credentials</a>;</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment">/* -- Oauth2 Access Token credentials. -- */</span></div>
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="structgrpc__access__token__credentials.html"> 297</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="structgrpc__access__token__credentials.html#a594ae3c4f36d690eb29a8c0a1ec48d0b"> 298</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__access__token__credentials.html#a594ae3c4f36d690eb29a8c0a1ec48d0b">base</a>;</div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="structgrpc__access__token__credentials.html#a194d95853f9a3b3c8a4d9e421628ab09"> 299</a></span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="structgrpc__access__token__credentials.html#a194d95853f9a3b3c8a4d9e421628ab09">access_token_md</a>;</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> } <a class="code" href="structgrpc__access__token__credentials.html">grpc_access_token_credentials</a>;</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment">/* -- Metadata-only Test credentials. -- */</span></div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="structgrpc__md__only__test__credentials.html"> 304</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="structgrpc__md__only__test__credentials.html#acd1af26470e81702392e992e7f94cc31"> 305</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__md__only__test__credentials.html#acd1af26470e81702392e992e7f94cc31">base</a>;</div>
<div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="structgrpc__md__only__test__credentials.html#a9d19361a7dd9b782f911feee0d2223c8"> 306</a></span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="structgrpc__md__only__test__credentials.html#a9d19361a7dd9b782f911feee0d2223c8">md_store</a>;</div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="structgrpc__md__only__test__credentials.html#aa71665bdd39d5c6c0e0dd661af46d8f0"> 307</a></span>  <span class="keywordtype">int</span> <a class="code" href="structgrpc__md__only__test__credentials.html#aa71665bdd39d5c6c0e0dd661af46d8f0">is_async</a>;</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> } <a class="code" href="structgrpc__md__only__test__credentials.html">grpc_md_only_test_credentials</a>;</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="comment">/* -- GoogleIAM credentials. -- */</span></div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div>
<div class="line"><a name="l00312"></a><span class="lineno"><a class="line" href="structgrpc__google__iam__credentials.html"> 312</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="structgrpc__google__iam__credentials.html#a143cba2baf99785c3c4938ea4f7441e0"> 313</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__google__iam__credentials.html#a143cba2baf99785c3c4938ea4f7441e0">base</a>;</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="structgrpc__google__iam__credentials.html#acb33d32a9140096f8422683486b0e6a3"> 314</a></span>  <a class="code" href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a> *<a class="code" href="structgrpc__google__iam__credentials.html#acb33d32a9140096f8422683486b0e6a3">iam_md</a>;</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> } <a class="code" href="structgrpc__google__iam__credentials.html">grpc_google_iam_credentials</a>;</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div>
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="comment">/* -- Composite credentials. -- */</span></div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div>
<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="structgrpc__composite__credentials.html"> 319</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="structgrpc__composite__credentials.html#a96e8d7c765b0b1e37d025d8726fe57d2"> 320</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> <a class="code" href="structgrpc__composite__credentials.html#a96e8d7c765b0b1e37d025d8726fe57d2">base</a>;</div>
<div class="line"><a name="l00321"></a><span class="lineno"><a class="line" href="structgrpc__composite__credentials.html#a94a828068bb8844a20c6677b239ae805"> 321</a></span>  <a class="code" href="structgrpc__credentials__array.html">grpc_credentials_array</a> <a class="code" href="structgrpc__composite__credentials.html#a94a828068bb8844a20c6677b239ae805">inner</a>;</div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="structgrpc__composite__credentials.html#a02f10b8620b768e3402da78e83fef637"> 322</a></span>  <a class="code" href="structgrpc__credentials.html">grpc_credentials</a> *<a class="code" href="structgrpc__composite__credentials.html#a02f10b8620b768e3402da78e83fef637">connector_creds</a>;</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> } <a class="code" href="structgrpc__composite__credentials.html">grpc_composite_credentials</a>;</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="preprocessor">#endif </span><span class="comment">/* GRPC_INTERNAL_CORE_SECURITY_CREDENTIALS_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="credentials_8h_html_a2f0ff51afd60f456086f0db9b67a13e4"><div class="ttname"><a href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4">grpc_credentials_status</a></div><div class="ttdeci">grpc_credentials_status</div><div class="ttdef"><b>Definition:</b> credentials.h:50</div></div>
<div class="ttc" id="hpack__table_8c_html_a8556878012feffc9e0beb86cd78f424d"><div class="ttname"><a href="hpack__table_8c.html#a8556878012feffc9e0beb86cd78f424d">value</a></div><div class="ttdeci">const char * value</div><div class="ttdef"><b>Definition:</b> hpack_table.c:44</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_a1bdefcea33f490d5a40414fa10938533"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#a1bdefcea33f490d5a40414fa10938533">grpc_service_account_jwt_access_credentials::jwt_md</a></div><div class="ttdeci">grpc_credentials_md_store * jwt_md</div><div class="ttdef"><b>Definition:</b> credentials.h:256</div></div>
<div class="ttc" id="structgrpc__credentials__vtable_html"><div class="ttname"><a href="structgrpc__credentials__vtable.html">grpc_credentials_vtable</a></div><div class="ttdef"><b>Definition:</b> credentials.h:131</div></div>
<div class="ttc" id="structgrpc__md__only__test__credentials_html_aa71665bdd39d5c6c0e0dd661af46d8f0"><div class="ttname"><a href="structgrpc__md__only__test__credentials.html#aa71665bdd39d5c6c0e0dd661af46d8f0">grpc_md_only_test_credentials::is_async</a></div><div class="ttdeci">int is_async</div><div class="ttdef"><b>Definition:</b> credentials.h:307</div></div>
<div class="ttc" id="structgrpc__google__refresh__token__credentials_html"><div class="ttname"><a href="structgrpc__google__refresh__token__credentials.html">grpc_google_refresh_token_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:290</div></div>
<div class="ttc" id="structgrpc__credentials__md__store_html_ab5f2f62b101f1d05a11340bc45eb71c5"><div class="ttname"><a href="structgrpc__credentials__md__store.html#ab5f2f62b101f1d05a11340bc45eb71c5">grpc_credentials_md_store::entries</a></div><div class="ttdeci">grpc_credentials_md * entries</div><div class="ttdef"><b>Definition:</b> credentials.h:97</div></div>
<div class="ttc" id="structgrpc__server__credentials__vtable_html"><div class="ttname"><a href="structgrpc__server__credentials__vtable.html">grpc_server_credentials_vtable</a></div><div class="ttdef"><b>Definition:</b> credentials.h:212</div></div>
<div class="ttc" id="credentials_8h_html_a726f818ebdd9e781b090cf7d27347b7a"><div class="ttname"><a href="credentials_8h.html#a726f818ebdd9e781b090cf7d27347b7a">grpc_credentials_has_request_metadata_only</a></div><div class="ttdeci">int grpc_credentials_has_request_metadata_only(grpc_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:105</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_a17f125b4f728143947f9917390316126"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#a17f125b4f728143947f9917390316126">grpc_service_account_jwt_access_credentials::jwt_lifetime</a></div><div class="ttdeci">gpr_timespec jwt_lifetime</div><div class="ttdef"><b>Definition:</b> credentials.h:262</div></div>
<div class="ttc" id="structgrpc__credentials__md__store_html_adf0f64c7bbf264de9434ea9d656bf694"><div class="ttname"><a href="structgrpc__credentials__md__store.html#adf0f64c7bbf264de9434ea9d656bf694">grpc_credentials_md_store::refcount</a></div><div class="ttdeci">gpr_refcount refcount</div><div class="ttdef"><b>Definition:</b> credentials.h:100</div></div>
<div class="ttc" id="structgpr__refcount_html"><div class="ttname"><a href="structgpr__refcount.html">gpr_refcount</a></div><div class="ttdef"><b>Definition:</b> sync_generic.h:47</div></div>
<div class="ttc" id="credentials_8h_html_a3d93eb22b0fedde1b3f7b6b9ded3aaf2"><div class="ttname"><a href="credentials_8h.html#a3d93eb22b0fedde1b3f7b6b9ded3aaf2">grpc_credentials_metadata_cb</a></div><div class="ttdeci">void(* grpc_credentials_metadata_cb)(void *user_data, grpc_credentials_md *md_elems, size_t num_md, grpc_credentials_status status)</div><div class="ttdef"><b>Definition:</b> credentials.h:126</div></div>
<div class="ttc" id="structgrpc__credentials__md_html"><div class="ttname"><a href="structgrpc__credentials__md.html">grpc_credentials_md</a></div><div class="ttdef"><b>Definition:</b> credentials.h:91</div></div>
<div class="ttc" id="credentials_8h_html_aee28492ddb70e47b0778fc928be9159b"><div class="ttname"><a href="credentials_8h.html#aee28492ddb70e47b0778fc928be9159b">grpc_credentials_md_store_create</a></div><div class="ttdeci">grpc_credentials_md_store * grpc_credentials_md_store_create(size_t initial_capacity)</div><div class="ttdef"><b>Definition:</b> credentials_metadata.c:48</div></div>
<div class="ttc" id="structgrpc__channel__args_html"><div class="ttname"><a href="structgrpc__channel__args.html">grpc_channel_args</a></div><div class="ttdoc">An array of arguments that can be passed around. </div><div class="ttdef"><b>Definition:</b> grpc.h:111</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html">grpc_oauth2_token_fetcher_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:279</div></div>
<div class="ttc" id="structgrpc__server__credentials_html_a92b2187c2007c28901cbe6eda32dc592"><div class="ttname"><a href="structgrpc__server__credentials.html#a92b2187c2007c28901cbe6eda32dc592">grpc_server_credentials::processor</a></div><div class="ttdeci">grpc_auth_metadata_processor processor</div><div class="ttdef"><b>Definition:</b> credentials.h:224</div></div>
<div class="ttc" id="structgrpc__google__iam__credentials_html_acb33d32a9140096f8422683486b0e6a3"><div class="ttname"><a href="structgrpc__google__iam__credentials.html#acb33d32a9140096f8422683486b0e6a3">grpc_google_iam_credentials::iam_md</a></div><div class="ttdeci">grpc_credentials_md_store * iam_md</div><div class="ttdef"><b>Definition:</b> credentials.h:314</div></div>
<div class="ttc" id="httpcli_8h_html"><div class="ttname"><a href="httpcli_8h.html">httpcli.h</a></div></div>
<div class="ttc" id="structgrpc__google__iam__credentials_html_a143cba2baf99785c3c4938ea4f7441e0"><div class="ttname"><a href="structgrpc__google__iam__credentials.html#a143cba2baf99785c3c4938ea4f7441e0">grpc_google_iam_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:313</div></div>
<div class="ttc" id="structgrpc__google__refresh__token__credentials_html_acb22938435113c5479024c9e07648771"><div class="ttname"><a href="structgrpc__google__refresh__token__credentials.html#acb22938435113c5479024c9e07648771">grpc_google_refresh_token_credentials::base</a></div><div class="ttdeci">grpc_oauth2_token_fetcher_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:291</div></div>
<div class="ttc" id="structgrpc__server__credentials_html_a96c8274aa0811620829537eb27bfcc1c"><div class="ttname"><a href="structgrpc__server__credentials.html#a96c8274aa0811620829537eb27bfcc1c">grpc_server_credentials::type</a></div><div class="ttdeci">const char * type</div><div class="ttdef"><b>Definition:</b> credentials.h:222</div></div>
<div class="ttc" id="structgrpc__ssl__credentials_html_a501050df420385527ac006a59e82dc06"><div class="ttname"><a href="structgrpc__ssl__credentials.html#a501050df420385527ac006a59e82dc06">grpc_ssl_credentials::config</a></div><div class="ttdeci">grpc_ssl_config config</div><div class="ttdef"><b>Definition:</b> credentials.h:239</div></div>
<div class="ttc" id="credentials_8h_html_af0dac46697efd780811863ee13c73fbd"><div class="ttname"><a href="credentials_8h.html#af0dac46697efd780811863ee13c73fbd">grpc_oauth2_token_fetcher_credentials_parse_server_response</a></div><div class="ttdeci">grpc_credentials_status grpc_oauth2_token_fetcher_credentials_parse_server_response(const struct grpc_httpcli_response *response, grpc_credentials_md_store **token_md, gpr_timespec *token_lifetime)</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_abc57d00b1bfd2b26f3b50feebccc84fb"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#abc57d00b1bfd2b26f3b50feebccc84fb">grpc_service_account_jwt_access_credentials::service_url</a></div><div class="ttdeci">char * service_url</div><div class="ttdef"><b>Definition:</b> credentials.h:257</div></div>
<div class="ttc" id="credentials_8h_html_a5535f991ceb2b2160aee414cf013ed73"><div class="ttname"><a href="credentials_8h.html#a5535f991ceb2b2160aee414cf013ed73">grpc_credentials_md_store_ref</a></div><div class="ttdeci">grpc_credentials_md_store * grpc_credentials_md_store_ref(grpc_credentials_md_store *store)</div><div class="ttdef"><b>Definition:</b> credentials_metadata.c:81</div></div>
<div class="ttc" id="structgrpc__md__only__test__credentials_html_a9d19361a7dd9b782f911feee0d2223c8"><div class="ttname"><a href="structgrpc__md__only__test__credentials.html#a9d19361a7dd9b782f911feee0d2223c8">grpc_md_only_test_credentials::md_store</a></div><div class="ttdeci">grpc_credentials_md_store * md_store</div><div class="ttdef"><b>Definition:</b> credentials.h:306</div></div>
<div class="ttc" id="structgrpc__composite__credentials_html"><div class="ttname"><a href="structgrpc__composite__credentials.html">grpc_composite_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:319</div></div>
<div class="ttc" id="structgrpc__credentials_html_a4842bd6607dba5b1045e4ad4e167d20e"><div class="ttname"><a href="structgrpc__credentials.html#a4842bd6607dba5b1045e4ad4e167d20e">grpc_credentials::vtable</a></div><div class="ttdeci">const grpc_credentials_vtable * vtable</div><div class="ttdef"><b>Definition:</b> credentials.h:146</div></div>
<div class="ttc" id="json__token_8h_html"><div class="ttname"><a href="json__token_8h.html">json_token.h</a></div></div>
<div class="ttc" id="credentials_8h_html_a26715660e319377bdfc4f2476ff35505"><div class="ttname"><a href="credentials_8h.html#a26715660e319377bdfc4f2476ff35505">grpc_service_account_jwt_access_credentials_create_from_auth_json_key</a></div><div class="ttdeci">grpc_credentials * grpc_service_account_jwt_access_credentials_create_from_auth_json_key(grpc_auth_json_key key, gpr_timespec token_lifetime)</div><div class="ttdef"><b>Definition:</b> credentials.c:437</div></div>
<div class="ttc" id="structgrpc__md__only__test__credentials_html_acd1af26470e81702392e992e7f94cc31"><div class="ttname"><a href="structgrpc__md__only__test__credentials.html#acd1af26470e81702392e992e7f94cc31">grpc_md_only_test_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:305</div></div>
<div class="ttc" id="credentials_8h_html_af26c4ee0ed97f2e88958c54ba22d5759"><div class="ttname"><a href="credentials_8h.html#af26c4ee0ed97f2e88958c54ba22d5759">grpc_credentials_create_security_connector</a></div><div class="ttdeci">grpc_security_status grpc_credentials_create_security_connector(grpc_credentials *creds, const char *target, const grpc_channel_args *args, grpc_credentials *request_metadata_creds, grpc_channel_security_connector **sc, grpc_channel_args **new_args)</div><div class="ttdef"><b>Definition:</b> credentials.c:126</div></div>
<div class="ttc" id="credentials_8h_html_af364310c463f2ddc7d714f2dbbd57e0d"><div class="ttname"><a href="credentials_8h.html#af364310c463f2ddc7d714f2dbbd57e0d">grpc_refresh_token_credentials_create_from_auth_refresh_token</a></div><div class="ttdeci">grpc_credentials * grpc_refresh_token_credentials_create_from_auth_refresh_token(grpc_auth_refresh_token token)</div><div class="ttdef"><b>Definition:</b> credentials.c:711</div></div>
<div class="ttc" id="credentials_8h_html_a4a6be957afa38741405a5a41cdd752e1"><div class="ttname"><a href="credentials_8h.html#a4a6be957afa38741405a5a41cdd752e1">grpc_credentials_contains_type</a></div><div class="ttdeci">grpc_credentials * grpc_credentials_contains_type(grpc_credentials *creds, const char *type, grpc_credentials **composite_creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:1123</div></div>
<div class="ttc" id="credentials_8h_html_a6c5b440dff7801066f4afb03a60c249d"><div class="ttname"><a href="credentials_8h.html#a6c5b440dff7801066f4afb03a60c249d">grpc_fetch_oauth2_func</a></div><div class="ttdeci">void(* grpc_fetch_oauth2_func)(grpc_credentials_metadata_request *req, grpc_httpcli_context *http_context, grpc_pollset *pollset, grpc_httpcli_response_cb response_cb, gpr_timespec deadline)</div><div class="ttdef"><b>Definition:</b> credentials.h:273</div></div>
<div class="ttc" id="credentials_8h_html_ad44c9cce8c086f8c083e5d5006e3310a"><div class="ttname"><a href="credentials_8h.html#ad44c9cce8c086f8c083e5d5006e3310a">grpc_credentials_has_request_metadata</a></div><div class="ttdeci">int grpc_credentials_has_request_metadata(grpc_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:100</div></div>
<div class="ttc" id="structgrpc__ssl__server__credentials_html"><div class="ttname"><a href="structgrpc__ssl__server__credentials.html">grpc_ssl_server_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:242</div></div>
<div class="ttc" id="credentials_8h_html_a3676b161f50d5b36989af2624565596b"><div class="ttname"><a href="credentials_8h.html#a3676b161f50d5b36989af2624565596b">grpc_credentials_md_store_add</a></div><div class="ttdeci">void grpc_credentials_md_store_add(grpc_credentials_md_store *store, gpr_slice key, gpr_slice value)</div><div class="ttdef"><b>Definition:</b> credentials_metadata.c:61</div></div>
<div class="ttc" id="grpc__security_8h_html"><div class="ttname"><a href="grpc__security_8h.html">grpc_security.h</a></div></div>
<div class="ttc" id="credentials_8h_html_a3c03f6a39aec4530a4a3024a8f9c2716"><div class="ttname"><a href="credentials_8h.html#a3c03f6a39aec4530a4a3024a8f9c2716">grpc_get_well_known_google_credentials_file_path</a></div><div class="ttdeci">char * grpc_get_well_known_google_credentials_file_path(void)</div></div>
<div class="ttc" id="structgrpc__pollset_html"><div class="ttname"><a href="structgrpc__pollset.html">grpc_pollset</a></div><div class="ttdef"><b>Definition:</b> pollset_posix.h:55</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_a1dec60523d8f3844032e213ea8766c45"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#a1dec60523d8f3844032e213ea8766c45">grpc_oauth2_token_fetcher_credentials::mu</a></div><div class="ttdeci">gpr_mu mu</div><div class="ttdef"><b>Definition:</b> credentials.h:281</div></div>
<div class="ttc" id="structgrpc__credentials__array_html_a1a4ba8ed410c26eaee6aa5a7d5b36d96"><div class="ttname"><a href="structgrpc__credentials__array.html#a1a4ba8ed410c26eaee6aa5a7d5b36d96">grpc_credentials_array::num_creds</a></div><div class="ttdeci">size_t num_creds</div><div class="ttdef"><b>Definition:</b> credentials.h:172</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_abedd1fe434bdb017b566f5aa096d8f32"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#abedd1fe434bdb017b566f5aa096d8f32">grpc_service_account_jwt_access_credentials::key</a></div><div class="ttdeci">grpc_auth_json_key key</div><div class="ttdef"><b>Definition:</b> credentials.h:261</div></div>
<div class="ttc" id="structgrpc__server__credentials_html"><div class="ttname"><a href="structgrpc__server__credentials.html">grpc_server_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:220</div></div>
<div class="ttc" id="structgrpc__credentials_html"><div class="ttname"><a href="structgrpc__credentials.html">grpc_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:145</div></div>
<div class="ttc" id="structgrpc__credentials__array_html"><div class="ttname"><a href="structgrpc__credentials__array.html">grpc_credentials_array</a></div><div class="ttdef"><b>Definition:</b> credentials.h:170</div></div>
<div class="ttc" id="structgrpc__access__token__credentials_html"><div class="ttname"><a href="structgrpc__access__token__credentials.html">grpc_access_token_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:297</div></div>
<div class="ttc" id="structgrpc__credentials__md__store_html"><div class="ttname"><a href="structgrpc__credentials__md__store.html">grpc_credentials_md_store</a></div><div class="ttdef"><b>Definition:</b> credentials.h:96</div></div>
<div class="ttc" id="credentials_8h_html_a0694273fb180cefa4e2ec396651d9fdb"><div class="ttname"><a href="credentials_8h.html#a0694273fb180cefa4e2ec396651d9fdb">grpc_md_only_test_credentials_create</a></div><div class="ttdeci">grpc_credentials * grpc_md_only_test_credentials_create(const char *md_key, const char *md_value, int is_async)</div><div class="ttdef"><b>Definition:</b> credentials.c:782</div></div>
<div class="ttc" id="structgrpc__credentials__md_html_ae893ec4c5c65ffa395a5e12259089841"><div class="ttname"><a href="structgrpc__credentials__md.html#ae893ec4c5c65ffa395a5e12259089841">grpc_credentials_md::value</a></div><div class="ttdeci">gpr_slice value</div><div class="ttdef"><b>Definition:</b> credentials.h:93</div></div>
<div class="ttc" id="credentials_8h_html_a63d4aa3f072736ba5eb168e12c306e56"><div class="ttname"><a href="credentials_8h.html#a63d4aa3f072736ba5eb168e12c306e56">grpc_credentials_unref</a></div><div class="ttdeci">void grpc_credentials_unref(grpc_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:88</div></div>
<div class="ttc" id="structgrpc__server__credentials_html_aa1514867a5ea460ca43d0afebea72b63"><div class="ttname"><a href="structgrpc__server__credentials.html#aa1514867a5ea460ca43d0afebea72b63">grpc_server_credentials::vtable</a></div><div class="ttdeci">const grpc_server_credentials_vtable * vtable</div><div class="ttdef"><b>Definition:</b> credentials.h:221</div></div>
<div class="ttc" id="credentials_8h_html_a7e3aec152312d2b66ccd3b232317b10a"><div class="ttname"><a href="credentials_8h.html#a7e3aec152312d2b66ccd3b232317b10a">grpc_flush_cached_google_default_credentials</a></div><div class="ttdeci">void grpc_flush_cached_google_default_credentials(void)</div><div class="ttdef"><b>Definition:</b> google_default_credentials.c:217</div></div>
<div class="ttc" id="structgrpc__composite__credentials_html_a96e8d7c765b0b1e37d025d8726fe57d2"><div class="ttname"><a href="structgrpc__composite__credentials.html#a96e8d7c765b0b1e37d025d8726fe57d2">grpc_composite_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:320</div></div>
<div class="ttc" id="structgrpc__composite__credentials_html_a02f10b8620b768e3402da78e83fef637"><div class="ttname"><a href="structgrpc__composite__credentials.html#a02f10b8620b768e3402da78e83fef637">grpc_composite_credentials::connector_creds</a></div><div class="ttdeci">grpc_credentials * connector_creds</div><div class="ttdef"><b>Definition:</b> credentials.h:322</div></div>
<div class="ttc" id="structgrpc__auth__refresh__token_html"><div class="ttname"><a href="structgrpc__auth__refresh__token.html">grpc_auth_refresh_token</a></div><div class="ttdef"><b>Definition:</b> json_token.h:94</div></div>
<div class="ttc" id="credentials_8h_html_a60f9433cc38460bb83da148eff9475ae"><div class="ttname"><a href="credentials_8h.html#a60f9433cc38460bb83da148eff9475ae">grpc_fake_transport_security_server_credentials_create</a></div><div class="ttdeci">grpc_server_credentials * grpc_fake_transport_security_server_credentials_create(void)</div><div class="ttdef"><b>Definition:</b> credentials.c:902</div></div>
<div class="ttc" id="structgrpc__credentials__md__store_html_a6b9a6a36be981b53ce96afe727e8b95e"><div class="ttname"><a href="structgrpc__credentials__md__store.html#a6b9a6a36be981b53ce96afe727e8b95e">grpc_credentials_md_store::allocated</a></div><div class="ttdeci">size_t allocated</div><div class="ttdef"><b>Definition:</b> credentials.h:99</div></div>
<div class="ttc" id="credentials_8h_html_a2f0ff51afd60f456086f0db9b67a13e4aa187148e06f47b75b8f89794a837fb6a"><div class="ttname"><a href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4aa187148e06f47b75b8f89794a837fb6a">GRPC_CREDENTIALS_ERROR</a></div><div class="ttdef"><b>Definition:</b> credentials.h:52</div></div>
<div class="ttc" id="credentials_8h_html_afe8d4191ee0f0f67684fd2575173cabc"><div class="ttname"><a href="credentials_8h.html#afe8d4191ee0f0f67684fd2575173cabc">grpc_credentials_get_request_metadata</a></div><div class="ttdeci">void grpc_credentials_get_request_metadata(grpc_credentials *creds, grpc_pollset *pollset, const char *service_url, grpc_credentials_metadata_cb cb, void *user_data)</div><div class="ttdef"><b>Definition:</b> credentials.c:110</div></div>
<div class="ttc" id="structgrpc__credentials__md__store_html_adfddab340d1b7d7d51087b015f14b259"><div class="ttname"><a href="structgrpc__credentials__md__store.html#adfddab340d1b7d7d51087b015f14b259">grpc_credentials_md_store::num_entries</a></div><div class="ttdeci">size_t num_entries</div><div class="ttdef"><b>Definition:</b> credentials.h:98</div></div>
<div class="ttc" id="structgrpc__credentials_html_a823ba4bf9cc44b1173f6b4889a3446d6"><div class="ttname"><a href="structgrpc__credentials.html#a823ba4bf9cc44b1173f6b4889a3446d6">grpc_credentials::refcount</a></div><div class="ttdeci">gpr_refcount refcount</div><div class="ttdef"><b>Definition:</b> credentials.h:148</div></div>
<div class="ttc" id="structgrpc__access__token__credentials_html_a194d95853f9a3b3c8a4d9e421628ab09"><div class="ttname"><a href="structgrpc__access__token__credentials.html#a194d95853f9a3b3c8a4d9e421628ab09">grpc_access_token_credentials::access_token_md</a></div><div class="ttdeci">grpc_credentials_md_store * access_token_md</div><div class="ttdef"><b>Definition:</b> credentials.h:299</div></div>
<div class="ttc" id="structgpr__mu_html"><div class="ttname"><a href="structgpr__mu.html">gpr_mu</a></div><div class="ttdef"><b>Definition:</b> sync_win32.h:39</div></div>
<div class="ttc" id="structgrpc__md__only__test__credentials_html"><div class="ttname"><a href="structgrpc__md__only__test__credentials.html">grpc_md_only_test_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:304</div></div>
<div class="ttc" id="credentials_8h_html_afc507497ef8b5dda7074b63babaac366"><div class="ttname"><a href="credentials_8h.html#afc507497ef8b5dda7074b63babaac366">grpc_credentials_md_store_unref</a></div><div class="ttdeci">void grpc_credentials_md_store_unref(grpc_credentials_md_store *store)</div><div class="ttdef"><b>Definition:</b> credentials_metadata.c:88</div></div>
<div class="ttc" id="structgrpc__ssl__server__config_html"><div class="ttname"><a href="structgrpc__ssl__server__config.html">grpc_ssl_server_config</a></div><div class="ttdef"><b>Definition:</b> security_connector.h:196</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_a3adac3e5a237a509291047037a5a892a"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#a3adac3e5a237a509291047037a5a892a">grpc_service_account_jwt_access_credentials::jwt_expiration</a></div><div class="ttdeci">gpr_timespec jwt_expiration</div><div class="ttdef"><b>Definition:</b> credentials.h:258</div></div>
<div class="ttc" id="security__connector_8h_html"><div class="ttname"><a href="security__connector_8h.html">security_connector.h</a></div></div>
<div class="ttc" id="structgrpc__auth__metadata__processor_html"><div class="ttname"><a href="structgrpc__auth__metadata__processor.html">grpc_auth_metadata_processor</a></div><div class="ttdef"><b>Definition:</b> grpc_security.h:275</div></div>
<div class="ttc" id="structgrpc__security__connector_html"><div class="ttname"><a href="structgrpc__security__connector.html">grpc_security_connector</a></div><div class="ttdef"><b>Definition:</b> security_connector.h:75</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html">grpc_service_account_jwt_access_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:249</div></div>
<div class="ttc" id="structgrpc__channel__security__connector_html"><div class="ttname"><a href="structgrpc__channel__security__connector.html">grpc_channel_security_connector</a></div><div class="ttdef"><b>Definition:</b> security_connector.h:135</div></div>
<div class="ttc" id="structgrpc__auth__json__key_html"><div class="ttname"><a href="structgrpc__auth__json__key.html">grpc_auth_json_key</a></div><div class="ttdef"><b>Definition:</b> json_token.h:52</div></div>
<div class="ttc" id="structgrpc__ssl__credentials_html"><div class="ttname"><a href="structgrpc__ssl__credentials.html">grpc_ssl_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:237</div></div>
<div class="ttc" id="structgrpc__access__token__credentials_html_a594ae3c4f36d690eb29a8c0a1ec48d0b"><div class="ttname"><a href="structgrpc__access__token__credentials.html#a594ae3c4f36d690eb29a8c0a1ec48d0b">grpc_access_token_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:298</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_a6c54ee9f6021c950777c42a4e34b71c8"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#a6c54ee9f6021c950777c42a4e34b71c8">grpc_oauth2_token_fetcher_credentials::httpcli_context</a></div><div class="ttdeci">grpc_httpcli_context httpcli_context</div><div class="ttdef"><b>Definition:</b> credentials.h:284</div></div>
<div class="ttc" id="structgrpc__google__iam__credentials_html"><div class="ttname"><a href="structgrpc__google__iam__credentials.html">grpc_google_iam_credentials</a></div><div class="ttdef"><b>Definition:</b> credentials.h:312</div></div>
<div class="ttc" id="structgrpc__composite__credentials_html_a94a828068bb8844a20c6677b239ae805"><div class="ttname"><a href="structgrpc__composite__credentials.html#a94a828068bb8844a20c6677b239ae805">grpc_composite_credentials::inner</a></div><div class="ttdeci">grpc_credentials_array inner</div><div class="ttdef"><b>Definition:</b> credentials.h:321</div></div>
<div class="ttc" id="structgrpc__credentials_html_a40d9db6d1125238d7e1ceeeab886788b"><div class="ttname"><a href="structgrpc__credentials.html#a40d9db6d1125238d7e1ceeeab886788b">grpc_credentials::type</a></div><div class="ttdeci">const char * type</div><div class="ttdef"><b>Definition:</b> credentials.h:147</div></div>
<div class="ttc" id="credentials_8h_html_ab970b1925f494cb159a29a404f23d157"><div class="ttname"><a href="credentials_8h.html#ab970b1925f494cb159a29a404f23d157">grpc_fake_transport_security_credentials_create</a></div><div class="ttdeci">grpc_credentials * grpc_fake_transport_security_credentials_create(void)</div><div class="ttdef"><b>Definition:</b> credentials.c:893</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_a641b64d26a1c7bdc348e960ed5400b94"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#a641b64d26a1c7bdc348e960ed5400b94">grpc_service_account_jwt_access_credentials::cache_mu</a></div><div class="ttdeci">gpr_mu cache_mu</div><div class="ttdef"><b>Definition:</b> credentials.h:254</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_a293a6ed6c4f54ef2de4de3e071ae6e13"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#a293a6ed6c4f54ef2de4de3e071ae6e13">grpc_oauth2_token_fetcher_credentials::token_expiration</a></div><div class="ttdeci">gpr_timespec token_expiration</div><div class="ttdef"><b>Definition:</b> credentials.h:283</div></div>
<div class="ttc" id="structgrpc__ssl__config_html"><div class="ttname"><a href="structgrpc__ssl__config.html">grpc_ssl_config</a></div><div class="ttdef"><b>Definition:</b> security_connector.h:165</div></div>
<div class="ttc" id="sync_8h_html"><div class="ttname"><a href="sync_8h.html">sync.h</a></div></div>
<div class="ttc" id="credentials_8h_html_ad934e865fb25edae57900193337d798b"><div class="ttname"><a href="credentials_8h.html#ad934e865fb25edae57900193337d798b">grpc_server_credentials_unref</a></div><div class="ttdeci">void grpc_server_credentials_unref(grpc_server_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:148</div></div>
<div class="ttc" id="credentials_8h_html_a2f0ff51afd60f456086f0db9b67a13e4a24b48b91238fd97a3f02b97886e93c15"><div class="ttname"><a href="credentials_8h.html#a2f0ff51afd60f456086f0db9b67a13e4a24b48b91238fd97a3f02b97886e93c15">GRPC_CREDENTIALS_OK</a></div><div class="ttdef"><b>Definition:</b> credentials.h:51</div></div>
<div class="ttc" id="structgrpc__credentials__md_html_a8484aa32f640b1b127c1903e868a4a53"><div class="ttname"><a href="structgrpc__credentials__md.html#a8484aa32f640b1b127c1903e868a4a53">grpc_credentials_md::key</a></div><div class="ttdeci">gpr_slice key</div><div class="ttdef"><b>Definition:</b> credentials.h:92</div></div>
<div class="ttc" id="stream__op_8h_html"><div class="ttname"><a href="stream__op_8h.html">stream_op.h</a></div></div>
<div class="ttc" id="structgpr__timespec_html"><div class="ttname"><a href="structgpr__timespec.html">gpr_timespec</a></div><div class="ttdef"><b>Definition:</b> time.h:63</div></div>
<div class="ttc" id="credentials_8h_html_ae0ed8f1e7494e839a3992c0a19fe0c67"><div class="ttname"><a href="credentials_8h.html#ae0ed8f1e7494e839a3992c0a19fe0c67">grpc_composite_credentials_get_credentials</a></div><div class="ttdeci">const grpc_credentials_array * grpc_composite_credentials_get_credentials(grpc_credentials *composite_creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:1115</div></div>
<div class="ttc" id="credentials_8h_html_a51ccf8c724a8477d5efcf0e3f73ef3a4"><div class="ttname"><a href="credentials_8h.html#a51ccf8c724a8477d5efcf0e3f73ef3a4">grpc_credentials_md_store_add_cstrings</a></div><div class="ttdeci">void grpc_credentials_md_store_add_cstrings(grpc_credentials_md_store *store, const char *key, const char *value)</div><div class="ttdef"><b>Definition:</b> credentials_metadata.c:70</div></div>
<div class="ttc" id="httpcli_8h_html_a00129a2e0bb8e9d9a6632e88f7a8c887"><div class="ttname"><a href="httpcli_8h.html#a00129a2e0bb8e9d9a6632e88f7a8c887">grpc_httpcli_response_cb</a></div><div class="ttdeci">void(* grpc_httpcli_response_cb)(void *user_data, const grpc_httpcli_response *response)</div><div class="ttdef"><b>Definition:</b> httpcli.h:99</div></div>
<div class="ttc" id="credentials_8h_html_ad3bd8c9c7aac0d407e081eff3dab3983"><div class="ttname"><a href="credentials_8h.html#ad3bd8c9c7aac0d407e081eff3dab3983">grpc_server_credentials_ref</a></div><div class="ttdeci">grpc_server_credentials * grpc_server_credentials_ref(grpc_server_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:141</div></div>
<div class="ttc" id="credentials_8h_html_a62061acac11e854a58c5faca6956e609"><div class="ttname"><a href="credentials_8h.html#a62061acac11e854a58c5faca6956e609">grpc_credentials_ref</a></div><div class="ttdeci">grpc_credentials * grpc_credentials_ref(grpc_credentials *creds)</div><div class="ttdef"><b>Definition:</b> credentials.c:82</div></div>
<div class="ttc" id="structgrpc__httpcli__context_html"><div class="ttname"><a href="structgrpc__httpcli__context.html">grpc_httpcli_context</a></div><div class="ttdef"><b>Definition:</b> httpcli.h:58</div></div>
<div class="ttc" id="structgrpc__ssl__credentials_html_a2745d407b41a3278d6701b10dd94c6e4"><div class="ttname"><a href="structgrpc__ssl__credentials.html#a2745d407b41a3278d6701b10dd94c6e4">grpc_ssl_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:238</div></div>
<div class="ttc" id="structgrpc__ssl__server__credentials_html_af476f00d0272add3ba170388460abc71"><div class="ttname"><a href="structgrpc__ssl__server__credentials.html#af476f00d0272add3ba170388460abc71">grpc_ssl_server_credentials::base</a></div><div class="ttdeci">grpc_server_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:243</div></div>
<div class="ttc" id="structgrpc__credentials__metadata__request_html"><div class="ttname"><a href="structgrpc__credentials__metadata__request.html">grpc_credentials_metadata_request</a></div><div class="ttdef"><b>Definition:</b> credentials.c:54</div></div>
<div class="ttc" id="structgrpc__httpcli__response_html"><div class="ttname"><a href="structgrpc__httpcli__response.html">grpc_httpcli_response</a></div><div class="ttdef"><b>Definition:</b> httpcli.h:87</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_abf3f319f98882bf7ae8fc81bd95076be"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#abf3f319f98882bf7ae8fc81bd95076be">grpc_oauth2_token_fetcher_credentials::access_token_md</a></div><div class="ttdeci">grpc_credentials_md_store * access_token_md</div><div class="ttdef"><b>Definition:</b> credentials.h:282</div></div>
<div class="ttc" id="security__connector_8h_html_a7a71a61785f1c3b13704bb735d2645f9"><div class="ttname"><a href="security__connector_8h.html#a7a71a61785f1c3b13704bb735d2645f9">grpc_security_status</a></div><div class="ttdeci">grpc_security_status</div><div class="ttdef"><b>Definition:</b> security_connector.h:43</div></div>
<div class="ttc" id="hpack__table_8c_html_acd3d88da3c0e0313c3645ff34f62f542"><div class="ttname"><a href="hpack__table_8c.html#acd3d88da3c0e0313c3645ff34f62f542">key</a></div><div class="ttdeci">const char * key</div><div class="ttdef"><b>Definition:</b> hpack_table.c:43</div></div>
<div class="ttc" id="grpc_8h_html"><div class="ttname"><a href="grpc_8h.html">grpc.h</a></div></div>
<div class="ttc" id="structgpr__slice_html"><div class="ttname"><a href="structgpr__slice.html">gpr_slice</a></div><div class="ttdef"><b>Definition:</b> slice.h:79</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_af761ff685ab5e0c5884770d5bb52db54"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#af761ff685ab5e0c5884770d5bb52db54">grpc_oauth2_token_fetcher_credentials::fetch_func</a></div><div class="ttdeci">grpc_fetch_oauth2_func fetch_func</div><div class="ttdef"><b>Definition:</b> credentials.h:285</div></div>
<div class="ttc" id="structgrpc__google__refresh__token__credentials_html_acbb59e3fbd1704345eb8a74f51349e6e"><div class="ttname"><a href="structgrpc__google__refresh__token__credentials.html#acbb59e3fbd1704345eb8a74f51349e6e">grpc_google_refresh_token_credentials::refresh_token</a></div><div class="ttdeci">grpc_auth_refresh_token refresh_token</div><div class="ttdef"><b>Definition:</b> credentials.h:292</div></div>
<div class="ttc" id="credentials_8h_html_acc8fc30e87ddec6ff87dd6676215755a"><div class="ttname"><a href="credentials_8h.html#acc8fc30e87ddec6ff87dd6676215755a">grpc_server_credentials_create_security_connector</a></div><div class="ttdeci">grpc_security_status grpc_server_credentials_create_security_connector(grpc_server_credentials *creds, grpc_security_connector **sc)</div><div class="ttdef"><b>Definition:</b> credentials.c:163</div></div>
<div class="ttc" id="structgrpc__service__account__jwt__access__credentials_html_a9da87dad6986e218d5246fc125db04f4"><div class="ttname"><a href="structgrpc__service__account__jwt__access__credentials.html#a9da87dad6986e218d5246fc125db04f4">grpc_service_account_jwt_access_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:250</div></div>
<div class="ttc" id="structgrpc__credentials__array_html_a72172f932751c5d9fc7670af1a1cd231"><div class="ttname"><a href="structgrpc__credentials__array.html#a72172f932751c5d9fc7670af1a1cd231">grpc_credentials_array::creds_array</a></div><div class="ttdeci">grpc_credentials ** creds_array</div><div class="ttdef"><b>Definition:</b> credentials.h:171</div></div>
<div class="ttc" id="structgrpc__ssl__server__credentials_html_a00e6754957e007f8cc2926911c752fc3"><div class="ttname"><a href="structgrpc__ssl__server__credentials.html#a00e6754957e007f8cc2926911c752fc3">grpc_ssl_server_credentials::config</a></div><div class="ttdeci">grpc_ssl_server_config config</div><div class="ttdef"><b>Definition:</b> credentials.h:244</div></div>
<div class="ttc" id="structgrpc__server__credentials_html_a09edf5dc25f9d65ca19fae28ea69f1b7"><div class="ttname"><a href="structgrpc__server__credentials.html#a09edf5dc25f9d65ca19fae28ea69f1b7">grpc_server_credentials::refcount</a></div><div class="ttdeci">gpr_refcount refcount</div><div class="ttdef"><b>Definition:</b> credentials.h:223</div></div>
<div class="ttc" id="structgrpc__oauth2__token__fetcher__credentials_html_acf21ce59c27d145279e5a26d561ea2d5"><div class="ttname"><a href="structgrpc__oauth2__token__fetcher__credentials.html#acf21ce59c27d145279e5a26d561ea2d5">grpc_oauth2_token_fetcher_credentials::base</a></div><div class="ttdeci">grpc_credentials base</div><div class="ttdef"><b>Definition:</b> credentials.h:280</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Sep 3 2015 09:44:13 for GRPC Core by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
|