GRPC Core 0.10.0.0

- Main Page
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
credentials.c File Reference
`#include "src/core/security/credentials.h"`
`#include <string.h>`
`#include <stdio.h>`
`#include "src/core/channel/channel_args.h"`
`#include "src/core/channel/http_client_filter.h"`
`#include "src/core/json/json.h"`
`#include "src/core/httpcli/httpcli.h"`
`#include "src/core/iomgr/iomgr.h"`
`#include <grpc/support/alloc.h>`
`#include <grpc/support/log.h>`
`#include <grpc/support/string_util.h>`
`#include <grpc/support/sync.h>`
`#include <grpc/support/time.h>`

## Data Structures
struct | grpc_credentials_metadata_request
struct | grpc_composite_credentials_metadata_context

## Functions
grpc_credentials * | grpc_credentials_ref (grpc_credentials *creds)
void | grpc_credentials_unref (grpc_credentials *creds)
void | grpc_credentials_release (grpc_credentials *creds)
int | grpc_credentials_has_request_metadata (grpc_credentials *creds)
int | grpc_credentials_has_request_metadata_only (grpc_credentials *creds)
void | grpc_credentials_get_request_metadata (grpc_credentials *creds, grpc_pollset *pollset, const char *service_url, grpc_credentials_metadata_cb cb, void *user_data)
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)
void | grpc_server_credentials_release (grpc_server_credentials *creds)
grpc_security_status | grpc_server_credentials_create_security_connector (grpc_server_credentials *creds, grpc_security_connector **sc)
grpc_credentials * | grpc_ssl_credentials_create (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair)
grpc_server_credentials * | grpc_ssl_server_credentials_create (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pairs, size_t num_key_cert_pairs, int force_client_auth)
grpc_credentials * | grpc_service_account_jwt_access_credentials_create_from_auth_json_key (grpc_auth_json_key key, gpr_timespec token_lifetime)
grpc_credentials * | grpc_service_account_jwt_access_credentials_create (const char *json_key, gpr_timespec token_lifetime)
grpc_credentials_status | grpc_oauth2_token_fetcher_credentials_parse_server_response (const grpc_httpcli_response *response, grpc_credentials_md_store **token_md, gpr_timespec *token_lifetime)
grpc_credentials * | grpc_compute_engine_credentials_create (void)
grpc_credentials * | grpc_service_account_credentials_create (const char *json_key, const char *scope, gpr_timespec token_lifetime)
grpc_credentials * | grpc_refresh_token_credentials_create_from_auth_refresh_token (grpc_auth_refresh_token refresh_token)
grpc_credentials * | grpc_refresh_token_credentials_create (const char *json_refresh_token)
void | on_simulated_token_fetch_done (void *user_data, int success)
grpc_credentials * | grpc_fake_oauth2_credentials_create (const char *token_md_value, int is_async)
grpc_credentials * | grpc_access_token_credentials_create (const char *access_token)
grpc_credentials * | grpc_fake_transport_security_credentials_create (void)
grpc_server_credentials * | grpc_fake_transport_security_server_credentials_create (void)
grpc_credentials * | grpc_composite_credentials_create (grpc_credentials *creds1, grpc_credentials *creds2)
const grpc_credentials_array * | grpc_composite_credentials_get_credentials (grpc_credentials *creds)
grpc_credentials * | grpc_credentials_contains_type (grpc_credentials *creds, const char *type, grpc_credentials **composite_creds)
grpc_credentials * | grpc_iam_credentials_create (const char *token, const char *authority_selector)

## Function Documentation

grpc_credentials* grpc_access_token_credentials_create | ( | const char * | access_token | ) |

grpc_credentials* grpc_composite_credentials_create | ( | grpc_credentials * | creds1,
|  | grpc_credentials * | creds2
| ) |  |

const grpc_credentials_array* grpc_composite_credentials_get_credentials | ( | grpc_credentials * | creds | ) |

grpc_credentials* grpc_compute_engine_credentials_create | ( | void |  | ) |

grpc_credentials* grpc_credentials_contains_type | ( | grpc_credentials * | creds,
|  | const char * | type,
|  | grpc_credentials ** | composite_creds
| ) |  |

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
| ) |  |

void grpc_credentials_get_request_metadata | ( | grpc_credentials * | creds,
|  | grpc_pollset * | pollset,
|  | const char * | service_url,
|  | grpc_credentials_metadata_cb | cb,
|  | void * | user_data
| ) |  |

int grpc_credentials_has_request_metadata | ( | grpc_credentials * | creds | ) |

int grpc_credentials_has_request_metadata_only | ( | grpc_credentials * | creds | ) |

grpc_credentials* grpc_credentials_ref | ( | grpc_credentials * | creds | ) |

void grpc_credentials_release | ( | grpc_credentials * | creds | ) |

void grpc_credentials_unref | ( | grpc_credentials * | creds | ) |

grpc_credentials* grpc_fake_oauth2_credentials_create | ( | const char * | token_md_value,
|  | int | is_async
| ) |  |

grpc_credentials* grpc_fake_transport_security_credentials_create | ( | void |  | ) |

grpc_server_credentials* grpc_fake_transport_security_server_credentials_create | ( | void |  | ) |

grpc_credentials* grpc_iam_credentials_create | ( | const char * | token,
|  | const char * | authority_selector
| ) |  |

grpc_credentials_status grpc_oauth2_token_fetcher_credentials_parse_server_response | ( | const grpc_httpcli_response * | response,
|  | grpc_credentials_md_store ** | token_md,
|  | gpr_timespec * | token_lifetime
| ) |  |

grpc_credentials* grpc_refresh_token_credentials_create | ( | const char * | json_refresh_token | ) |

grpc_credentials* grpc_refresh_token_credentials_create_from_auth_refresh_token | ( | grpc_auth_refresh_token | refresh_token | ) |

grpc_security_status grpc_server_credentials_create_security_connector | ( | grpc_server_credentials * | creds,
|  | grpc_security_connector ** | sc
| ) |  |

void grpc_server_credentials_release | ( | grpc_server_credentials * | creds | ) |

grpc_credentials* grpc_service_account_credentials_create | ( | const char * | json_key,
|  | const char * | scope,
|  | gpr_timespec | token_lifetime
| ) |  |

grpc_credentials* grpc_service_account_jwt_access_credentials_create | ( | const char * | json_key,
|  | gpr_timespec | token_lifetime
| ) |  |

grpc_credentials* grpc_service_account_jwt_access_credentials_create_from_auth_json_key | ( | grpc_auth_json_key | key,
|  | gpr_timespec | token_lifetime
| ) |  |

grpc_credentials* grpc_ssl_credentials_create | ( | const char * | pem_root_certs,
|  | grpc_ssl_pem_key_cert_pair * | pem_key_cert_pair
| ) |  |

grpc_server_credentials* grpc_ssl_server_credentials_create | ( | const char * | pem_root_certs,
|  | grpc_ssl_pem_key_cert_pair * | pem_key_cert_pairs,
|  | size_t | num_key_cert_pairs,
|  | int | force_client_auth
| ) |  |

void on_simulated_token_fetch_done | ( | void * | user_data,
|  | int | success
| ) |  |