/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/ |
D | json_token.cc | 68 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key) { in grpc_auth_json_key_is_valid() argument 69 return (json_key != nullptr) && in grpc_auth_json_key_is_valid() 70 strcmp(json_key->type, GRPC_AUTH_JSON_TYPE_INVALID) != 0; in grpc_auth_json_key_is_valid() 136 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key) { in grpc_auth_json_key_destruct() argument 137 if (json_key == nullptr) return; in grpc_auth_json_key_destruct() 138 json_key->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_json_key_destruct() 139 if (json_key->client_id != nullptr) { in grpc_auth_json_key_destruct() 140 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct() 141 json_key->client_id = nullptr; in grpc_auth_json_key_destruct() 143 if (json_key->private_key_id != nullptr) { in grpc_auth_json_key_destruct() [all …]
|
D | json_token.h | 43 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key); 56 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key); 62 char* grpc_jwt_encode_and_sign(const grpc_auth_json_key* json_key, 68 const grpc_auth_json_key* json_key, const char* audience,
|
D | jwt_credentials.cc | 143 static char* redact_private_key(const char* json_key) { in redact_private_key() argument 145 Json json = Json::Parse(json_key, &error); in redact_private_key() 155 const char* json_key, gpr_timespec token_lifetime, void* reserved) { in grpc_service_account_jwt_access_credentials_create() argument 157 char* clean_json = redact_private_key(json_key); in grpc_service_account_jwt_access_credentials_create() 173 grpc_auth_json_key_create_from_string(json_key), token_lifetime) in grpc_service_account_jwt_access_credentials_create()
|
/external/rust/crates/grpcio-sys/grpc/test/core/security/ |
D | json_token_test.cc | 99 grpc_auth_json_key json_key = in test_parse_json_key_success() local 101 GPR_ASSERT(grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_success() 102 GPR_ASSERT(json_key.type != nullptr && in test_parse_json_key_success() 103 strcmp(json_key.type, "service_account") == 0); in test_parse_json_key_success() 104 GPR_ASSERT(json_key.private_key_id != nullptr && in test_parse_json_key_success() 105 strcmp(json_key.private_key_id, in test_parse_json_key_success() 107 GPR_ASSERT(json_key.client_id != nullptr && in test_parse_json_key_success() 108 strcmp(json_key.client_id, in test_parse_json_key_success() 111 GPR_ASSERT(json_key.client_email != nullptr && in test_parse_json_key_success() 112 strcmp(json_key.client_email, in test_parse_json_key_success() [all …]
|
D | credentials_test.cc | 1269 const grpc_auth_json_key* json_key, const char* scope, in validate_jwt_encode_and_sign_params() argument 1271 GPR_ASSERT(grpc_auth_json_key_is_valid(json_key)); in validate_jwt_encode_and_sign_params() 1272 GPR_ASSERT(json_key->private_key != nullptr); in validate_jwt_encode_and_sign_params() 1273 GPR_ASSERT(RSA_check_key(json_key->private_key)); in validate_jwt_encode_and_sign_params() 1274 GPR_ASSERT(json_key->type != nullptr && in validate_jwt_encode_and_sign_params() 1275 strcmp(json_key->type, "service_account") == 0); in validate_jwt_encode_and_sign_params() 1276 GPR_ASSERT(json_key->private_key_id != nullptr && in validate_jwt_encode_and_sign_params() 1277 strcmp(json_key->private_key_id, in validate_jwt_encode_and_sign_params() 1279 GPR_ASSERT(json_key->client_id != nullptr && in validate_jwt_encode_and_sign_params() 1280 strcmp(json_key->client_id, in validate_jwt_encode_and_sign_params() [all …]
|
/external/grpc-grpc/src/core/lib/security/credentials/jwt/ |
D | json_token.cc | 62 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key) { in grpc_auth_json_key_is_valid() argument 63 return (json_key != nullptr) && in grpc_auth_json_key_is_valid() 64 strcmp(json_key->type, GRPC_AUTH_JSON_TYPE_INVALID); in grpc_auth_json_key_is_valid() 129 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key) { in grpc_auth_json_key_destruct() argument 130 if (json_key == nullptr) return; in grpc_auth_json_key_destruct() 131 json_key->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_json_key_destruct() 132 if (json_key->client_id != nullptr) { in grpc_auth_json_key_destruct() 133 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct() 134 json_key->client_id = nullptr; in grpc_auth_json_key_destruct() 136 if (json_key->private_key_id != nullptr) { in grpc_auth_json_key_destruct() [all …]
|
D | json_token.h | 46 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key); 58 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key); 64 char* grpc_jwt_encode_and_sign(const grpc_auth_json_key* json_key, 70 const grpc_auth_json_key* json_key, const char* audience,
|
D | jwt_credentials.cc | 145 static char* redact_private_key(const char* json_key) { in redact_private_key() argument 146 char* json_copy = gpr_strdup(json_key); in redact_private_key() 169 const char* json_key, gpr_timespec token_lifetime, void* reserved) { in grpc_service_account_jwt_access_credentials_create() argument 171 char* clean_json = redact_private_key(json_key); in grpc_service_account_jwt_access_credentials_create() 187 grpc_auth_json_key_create_from_string(json_key), token_lifetime); in grpc_service_account_jwt_access_credentials_create()
|
/external/grpc-grpc/test/core/security/ |
D | json_token_test.cc | 97 grpc_auth_json_key json_key = in test_parse_json_key_success() local 99 GPR_ASSERT(grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_success() 100 GPR_ASSERT(json_key.type != nullptr && in test_parse_json_key_success() 101 strcmp(json_key.type, "service_account") == 0); in test_parse_json_key_success() 102 GPR_ASSERT(json_key.private_key_id != nullptr && in test_parse_json_key_success() 103 strcmp(json_key.private_key_id, in test_parse_json_key_success() 105 GPR_ASSERT(json_key.client_id != nullptr && in test_parse_json_key_success() 106 strcmp(json_key.client_id, in test_parse_json_key_success() 109 GPR_ASSERT(json_key.client_email != nullptr && in test_parse_json_key_success() 110 strcmp(json_key.client_email, in test_parse_json_key_success() [all …]
|
D | credentials_test.cc | 716 const grpc_auth_json_key* json_key, const char* scope, in validate_jwt_encode_and_sign_params() argument 718 GPR_ASSERT(grpc_auth_json_key_is_valid(json_key)); in validate_jwt_encode_and_sign_params() 719 GPR_ASSERT(json_key->private_key != nullptr); in validate_jwt_encode_and_sign_params() 720 GPR_ASSERT(RSA_check_key(json_key->private_key)); in validate_jwt_encode_and_sign_params() 721 GPR_ASSERT(json_key->type != nullptr && in validate_jwt_encode_and_sign_params() 722 strcmp(json_key->type, "service_account") == 0); in validate_jwt_encode_and_sign_params() 723 GPR_ASSERT(json_key->private_key_id != nullptr && in validate_jwt_encode_and_sign_params() 724 strcmp(json_key->private_key_id, in validate_jwt_encode_and_sign_params() 726 GPR_ASSERT(json_key->client_id != nullptr && in validate_jwt_encode_and_sign_params() 727 strcmp(json_key->client_id, in validate_jwt_encode_and_sign_params() [all …]
|
/external/grpc-grpc/test/cpp/interop/ |
D | client_helper.cc | 54 static grpc::string json_key; in GetServiceAccountJsonKey() local 55 if (json_key.empty()) { in GetServiceAccountJsonKey() 59 json_key = key_stream.str(); in GetServiceAccountJsonKey() 61 return json_key; in GetServiceAccountJsonKey() 95 grpc::string json_key = GetServiceAccountJsonKey(); in CreateChannelForTestCase() local 99 : ServiceAccountJWTAccessCredentials(json_key, in CreateChannelForTestCase()
|
D | interop_client.h | 91 bool DoPerRpcCreds(const grpc::string& json_key);
|
D | interop_client.cc | 255 bool InteropClient::DoPerRpcCreds(const grpc::string& json_key) { in DoPerRpcCreds() argument 264 ServiceAccountJWTAccessCredentials(json_key, token_lifetime.count()); in DoPerRpcCreds() 275 GPR_ASSERT(json_key.find(response.username()) != grpc::string::npos); in DoPerRpcCreds()
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | emitter.h | 268 emitter_kv_note(emitter_t *emitter, const char *json_key, const char *table_key, in emitter_kv_note() argument 275 emitter_printf(emitter, "\"%s\": ", json_key); in emitter_kv_note() 295 emitter_kv(emitter_t *emitter, const char *json_key, const char *table_key, in emitter_kv() argument 297 emitter_kv_note(emitter, json_key, table_key, value_type, value, NULL, in emitter_kv() 302 emitter_json_kv(emitter_t *emitter, const char *json_key, in emitter_json_kv() argument 305 emitter_kv(emitter, json_key, NULL, value_type, value); in emitter_json_kv() 318 emitter_dict_begin(emitter_t *emitter, const char *json_key, in emitter_dict_begin() argument 322 emitter_printf(emitter, "\"%s\": {", json_key); in emitter_dict_begin() 345 emitter_json_dict_begin(emitter_t *emitter, const char *json_key) { in emitter_json_dict_begin() argument 347 emitter_dict_begin(emitter, json_key, NULL); in emitter_json_dict_begin() [all …]
|
/external/grpc-grpc/src/ruby/pb/test/ |
D | client.rb | 318 json_key = File.read(ENV[AUTH_ENV]) 319 wanted_email = MultiJson.load(json_key)['client_email'] 329 json_key = File.read(ENV[AUTH_ENV]) 330 wanted_email = MultiJson.load(json_key)['client_email'] 346 json_key = File.read(ENV[AUTH_ENV]) 347 wanted_email = MultiJson.load(json_key)['client_email'] 365 json_key = File.read(ENV[AUTH_ENV]) 366 wanted_email = MultiJson.load(json_key)['client_email']
|
/external/grpc-grpc/src/cpp/client/ |
D | secure_credentials.cc | 128 const grpc::string& json_key, long token_lifetime_seconds) { in ServiceAccountJWTAccessCredentials() argument 138 json_key.c_str(), lifetime, nullptr)); in ServiceAccountJWTAccessCredentials()
|
/external/grpc-grpc/include/grpcpp/security/ |
D | credentials.h | 146 const grpc::string& json_key,
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/client/ |
D | secure_credentials.cc | 327 const std::string& json_key, long token_lifetime_seconds) { in ServiceAccountJWTAccessCredentials() argument 337 json_key.c_str(), lifetime, nullptr)); in ServiceAccountJWTAccessCredentials()
|
/external/grpc-grpc/include/grpc/ |
D | grpc_security.h | 244 grpc_service_account_jwt_access_credentials_create(const char* json_key,
|
/external/rust/crates/grpcio-sys/grpc/include/grpcpp/security/ |
D | credentials.h | 201 const grpc::string& json_key,
|
/external/rust/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/ |
D | credentials.h | 201 const grpc::string& json_key,
|
/external/rust/crates/grpcio-sys/grpc/include/grpc/ |
D | grpc_security.h | 329 grpc_service_account_jwt_access_credentials_create(const char* json_key,
|
/external/rust/crates/grpcio-sys/grpc/spm-core-include/grpc/ |
D | grpc_security.h | 329 grpc_service_account_jwt_access_credentials_create(const char* json_key,
|
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | grpc.pxi | 488 const char *json_key,
|
/external/grpc-grpc/src/ruby/ext/grpc/ |
D | rb_grpc_imports.generated.h | 356 …*(*grpc_service_account_jwt_access_credentials_create_type)(const char* json_key, gpr_timespec tok…
|