GRPC Core  0.11.0.0
 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_credentialsgrpc_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)
 
grpc_server_credentialsgrpc_server_credentials_ref (grpc_server_credentials *creds)
 
void grpc_server_credentials_unref (grpc_server_credentials *creds)
 
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)
 
void grpc_server_credentials_set_auth_metadata_processor (grpc_server_credentials *creds, grpc_auth_metadata_processor processor)
 
grpc_credentialsgrpc_ssl_credentials_create (const char *pem_root_certs, grpc_ssl_pem_key_cert_pair *pem_key_cert_pair, void *reserved)
 
grpc_server_credentialsgrpc_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 *reserved)
 
grpc_credentialsgrpc_service_account_jwt_access_credentials_create_from_auth_json_key (grpc_auth_json_key key, gpr_timespec token_lifetime)
 
grpc_credentialsgrpc_service_account_jwt_access_credentials_create (const char *json_key, gpr_timespec token_lifetime, void *reserved)
 
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_credentialsgrpc_google_compute_engine_credentials_create (void *reserved)
 
grpc_credentialsgrpc_refresh_token_credentials_create_from_auth_refresh_token (grpc_auth_refresh_token refresh_token)
 
grpc_credentialsgrpc_google_refresh_token_credentials_create (const char *json_refresh_token, void *reserved)
 
void on_simulated_token_fetch_done (void *user_data, int success)
 
grpc_credentialsgrpc_md_only_test_credentials_create (const char *md_key, const char *md_value, int is_async)
 
grpc_credentialsgrpc_access_token_credentials_create (const char *access_token, void *reserved)
 
grpc_credentialsgrpc_fake_transport_security_credentials_create (void)
 
grpc_server_credentialsgrpc_fake_transport_security_server_credentials_create (void)
 
grpc_credentialsgrpc_composite_credentials_create (grpc_credentials *creds1, grpc_credentials *creds2, void *reserved)
 
const grpc_credentials_arraygrpc_composite_credentials_get_credentials (grpc_credentials *creds)
 
grpc_credentialsgrpc_credentials_contains_type (grpc_credentials *creds, const char *type, grpc_credentials **composite_creds)
 
grpc_credentialsgrpc_google_iam_credentials_create (const char *token, const char *authority_selector, void *reserved)
 

Function Documentation

grpc_credentials* grpc_access_token_credentials_create ( const char *  access_token,
void *  reserved 
)
grpc_credentials* grpc_composite_credentials_create ( grpc_credentials creds1,
grpc_credentials creds2,
void *  reserved 
)
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_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_transport_security_credentials_create ( void  )
grpc_server_credentials* grpc_fake_transport_security_server_credentials_create ( void  )
grpc_credentials* grpc_google_compute_engine_credentials_create ( void *  reserved)
grpc_credentials* grpc_google_iam_credentials_create ( const char *  token,
const char *  authority_selector,
void *  reserved 
)
grpc_credentials* grpc_google_refresh_token_credentials_create ( const char *  json_refresh_token,
void *  reserved 
)
grpc_credentials* grpc_md_only_test_credentials_create ( const char *  md_key,
const char *  md_value,
int  is_async 
)
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_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 
)
grpc_server_credentials* grpc_server_credentials_ref ( grpc_server_credentials creds)
void grpc_server_credentials_release ( grpc_server_credentials creds)
void grpc_server_credentials_set_auth_metadata_processor ( grpc_server_credentials creds,
grpc_auth_metadata_processor  processor 
)
void grpc_server_credentials_unref ( grpc_server_credentials creds)
grpc_credentials* grpc_service_account_jwt_access_credentials_create ( const char *  json_key,
gpr_timespec  token_lifetime,
void *  reserved 
)
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,
void *  reserved 
)
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 *  reserved 
)
void on_simulated_token_fetch_done ( void *  user_data,
int  success 
)