Home
last modified time | relevance | path

Searched refs:json_key (Results 1 – 25 of 33) sorted by relevance

12

/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc73 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key) { in grpc_auth_json_key_is_valid() argument
74 return (json_key != nullptr) && in grpc_auth_json_key_is_valid()
75 strcmp(json_key->type, GRPC_AUTH_JSON_TYPE_INVALID) != 0; in grpc_auth_json_key_is_valid()
150 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key) { in grpc_auth_json_key_destruct() argument
151 if (json_key == nullptr) return; in grpc_auth_json_key_destruct()
152 json_key->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_json_key_destruct()
153 if (json_key->client_id != nullptr) { in grpc_auth_json_key_destruct()
154 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct()
155 json_key->client_id = nullptr; in grpc_auth_json_key_destruct()
157 if (json_key->private_key_id != nullptr) { in grpc_auth_json_key_destruct()
[all …]
Djson_token.h48 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key);
61 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key);
67 char* grpc_jwt_encode_and_sign(const grpc_auth_json_key* json_key,
73 const grpc_auth_json_key* json_key, const char* audience,
Djwt_credentials.cc143 static char* redact_private_key(const char* json_key) { in redact_private_key() argument
144 auto json = grpc_core::JsonParse(json_key); in redact_private_key()
156 const char* json_key, gpr_timespec token_lifetime, void* reserved) { in grpc_service_account_jwt_access_credentials_create() argument
158 char* clean_json = redact_private_key(json_key); in grpc_service_account_jwt_access_credentials_create()
174 grpc_auth_json_key_create_from_string(json_key), token_lifetime) in grpc_service_account_jwt_access_credentials_create()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djson_token.cc72 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key) { in grpc_auth_json_key_is_valid() argument
73 return (json_key != nullptr) && in grpc_auth_json_key_is_valid()
74 strcmp(json_key->type, GRPC_AUTH_JSON_TYPE_INVALID) != 0; in grpc_auth_json_key_is_valid()
145 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key) { in grpc_auth_json_key_destruct() argument
146 if (json_key == nullptr) return; in grpc_auth_json_key_destruct()
147 json_key->type = GRPC_AUTH_JSON_TYPE_INVALID; in grpc_auth_json_key_destruct()
148 if (json_key->client_id != nullptr) { in grpc_auth_json_key_destruct()
149 gpr_free(json_key->client_id); in grpc_auth_json_key_destruct()
150 json_key->client_id = nullptr; in grpc_auth_json_key_destruct()
152 if (json_key->private_key_id != nullptr) { in grpc_auth_json_key_destruct()
[all …]
Djson_token.h44 int grpc_auth_json_key_is_valid(const grpc_auth_json_key* json_key);
57 void grpc_auth_json_key_destruct(grpc_auth_json_key* json_key);
63 char* grpc_jwt_encode_and_sign(const grpc_auth_json_key* json_key,
69 const grpc_auth_json_key* json_key, const char* audience,
Djwt_credentials.cc143 static char* redact_private_key(const char* json_key) { in redact_private_key() argument
144 auto json = grpc_core::JsonParse(json_key); in redact_private_key()
156 const char* json_key, gpr_timespec token_lifetime, void* reserved) { in grpc_service_account_jwt_access_credentials_create() argument
158 char* clean_json = redact_private_key(json_key); in grpc_service_account_jwt_access_credentials_create()
174 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/
Djson_token_test.cc104 grpc_auth_json_key json_key = in TEST() local
106 ASSERT_TRUE(grpc_auth_json_key_is_valid(&json_key)); in TEST()
107 ASSERT_TRUE(json_key.type != nullptr && in TEST()
108 strcmp(json_key.type, "service_account") == 0); in TEST()
109 ASSERT_TRUE(json_key.private_key_id != nullptr && in TEST()
110 strcmp(json_key.private_key_id, in TEST()
112 ASSERT_TRUE(json_key.client_id != nullptr && in TEST()
113 strcmp(json_key.client_id, in TEST()
116 ASSERT_TRUE(json_key.client_email != nullptr && in TEST()
117 strcmp(json_key.client_email, in TEST()
[all …]
Dcredentials_test.cc1293 void validate_jwt_encode_and_sign_params(const grpc_auth_json_key* json_key, in validate_jwt_encode_and_sign_params() argument
1296 GPR_ASSERT(grpc_auth_json_key_is_valid(json_key)); in validate_jwt_encode_and_sign_params()
1297 GPR_ASSERT(json_key->private_key != nullptr); in validate_jwt_encode_and_sign_params()
1299 GPR_ASSERT(RSA_check_key(json_key->private_key)); in validate_jwt_encode_and_sign_params()
1301 EVP_PKEY_CTX* ctx = EVP_PKEY_CTX_new(json_key->private_key, NULL); in validate_jwt_encode_and_sign_params()
1305 GPR_ASSERT(json_key->type != nullptr && in validate_jwt_encode_and_sign_params()
1306 strcmp(json_key->type, "service_account") == 0); in validate_jwt_encode_and_sign_params()
1307 GPR_ASSERT(json_key->private_key_id != nullptr && in validate_jwt_encode_and_sign_params()
1308 strcmp(json_key->private_key_id, in validate_jwt_encode_and_sign_params()
1310 GPR_ASSERT(json_key->client_id != nullptr && in validate_jwt_encode_and_sign_params()
[all …]
/external/jemalloc_new/include/jemalloc/internal/
Demitter.h268 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/test/cpp/interop/
Dclient_helper.cc57 static std::string json_key; in GetServiceAccountJsonKey() local
58 if (json_key.empty()) { in GetServiceAccountJsonKey()
62 json_key = key_stream.str(); in GetServiceAccountJsonKey()
64 return json_key; in GetServiceAccountJsonKey()
98 std::string json_key = GetServiceAccountJsonKey(); in CreateChannelForTestCase() local
103 : ServiceAccountJWTAccessCredentials(json_key, in CreateChannelForTestCase()
Dinterop_client.h110 bool DoPerRpcCreds(const std::string& json_key);
Dinterop_client.cc324 bool InteropClient::DoPerRpcCreds(const std::string& json_key) { in DoPerRpcCreds() argument
333 ServiceAccountJWTAccessCredentials(json_key, token_lifetime.count()); in DoPerRpcCreds()
344 GPR_ASSERT(json_key.find(response.username()) != std::string::npos); in DoPerRpcCreds()
/external/tink/cc/core/
Djson_keyset_writer.cc72 rapidjson::Value* json_key, in ToJson() argument
76 json_key->AddMember("keyId", key_id, *allocator); in ToJson()
80 json_key->AddMember("status", key_status, *allocator); in ToJson()
85 json_key->AddMember("outputPrefixType", prefix_type, *allocator); in ToJson()
90 json_key->AddMember("keyData", json_key_data, *allocator); in ToJson()
104 rapidjson::Value json_key(rapidjson::kObjectType); in ToJsonString() local
105 auto status = ToJson(key, &json_key, &allocator); in ToJsonString()
107 key_array.PushBack(json_key, allocator); in ToJsonString()
Djson_keyset_reader.cc220 for (const auto& json_key : json_doc["key"].GetArray()) { in KeysetFromJson() local
221 auto key_result = KeyFromJson(json_key); in KeysetFromJson()
/external/grpc-grpc/src/ruby/pb/test/
Dclient.rb321 json_key = File.read(ENV[AUTH_ENV])
322 wanted_email = MultiJson.load(json_key)['client_email']
332 json_key = File.read(ENV[AUTH_ENV])
333 wanted_email = MultiJson.load(json_key)['client_email']
349 json_key = File.read(ENV[AUTH_ENV])
350 wanted_email = MultiJson.load(json_key)['client_email']
368 json_key = File.read(ENV[AUTH_ENV])
369 wanted_email = MultiJson.load(json_key)['client_email']
/external/ethtool/netlink/
Dnetlink.h101 const char *if_none, const char *json_key);
Dsettings.c198 unsigned int val, const char *label, const char *json_key) in print_enum() argument
207 print_string(PRINT_JSON, json_key, "%s", info[val]); in print_enum()
250 const char *json_key) in dump_link_modes() argument
275 open_json_array(json_key, ""); in dump_link_modes()
/external/grpc-grpc/src/cpp/client/
Dsecure_credentials.cc272 const std::string& json_key, long token_lifetime_seconds) { in ServiceAccountJWTAccessCredentials() argument
282 json_key.c_str(), lifetime, nullptr)); in ServiceAccountJWTAccessCredentials()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/cpp/client/
Dsecure_credentials.cc328 const std::string& json_key, long token_lifetime_seconds) { in ServiceAccountJWTAccessCredentials() argument
338 json_key.c_str(), lifetime, nullptr)); in ServiceAccountJWTAccessCredentials()
/external/rust/android-crates-io/crates/grpcio-sys/grpc/include/grpcpp/security/
Dcredentials.h195 const grpc::string& json_key,
/external/rust/android-crates-io/crates/grpcio-sys/grpc/spm-cpp-include/grpcpp/security/
Dcredentials.h195 const grpc::string& json_key,
/external/grpc-grpc/include/grpcpp/security/
Dcredentials.h189 const grpc::string& json_key,
/external/rust/android-crates-io/crates/grpcio-sys/grpc/include/grpc/
Dgrpc_security.h320 grpc_service_account_jwt_access_credentials_create(const char* json_key,
/external/rust/android-crates-io/crates/grpcio-sys/grpc/spm-core-include/grpc/
Dgrpc_security.h320 grpc_service_account_jwt_access_credentials_create(const char* json_key,
/external/grpc-grpc/include/grpc/
Dgrpc_security.h319 grpc_service_account_jwt_access_credentials_create(const char* json_key,

12