diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-07-22 16:20:13 -0700 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-07-22 16:20:13 -0700 |
commit | fe4c3f4f1436e2fc2297d5544859ce14e03659bf (patch) | |
tree | 202e31e66c9652738a13b9a6740fd8191400c8ca /src/cpp/client | |
parent | 6a7418cd20f065f8d6e7f73e82b6d465c75514f5 (diff) |
Renaming jwt_credentials to service_account_jwt_access_credentials.
Diffstat (limited to 'src/cpp/client')
-rw-r--r-- | src/cpp/client/secure_credentials.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpp/client/secure_credentials.cc b/src/cpp/client/secure_credentials.cc index 01c7f14f1a..abf0cb387e 100644 --- a/src/cpp/client/secure_credentials.cc +++ b/src/cpp/client/secure_credentials.cc @@ -99,8 +99,8 @@ std::shared_ptr<Credentials> ServiceAccountCredentials( } // Builds JWT credentials. -std::shared_ptr<Credentials> JWTCredentials(const grpc::string& json_key, - long token_lifetime_seconds) { +std::shared_ptr<Credentials> ServiceAccountJWTAccessCredentials( + const grpc::string& json_key, long token_lifetime_seconds) { if (token_lifetime_seconds <= 0) { gpr_log(GPR_ERROR, "Trying to create JWTCredentials with non-positive lifetime"); @@ -108,8 +108,8 @@ std::shared_ptr<Credentials> JWTCredentials(const grpc::string& json_key, } gpr_timespec lifetime = gpr_time_from_seconds(token_lifetime_seconds, GPR_TIMESPAN); - return WrapCredentials( - grpc_jwt_credentials_create(json_key.c_str(), lifetime)); + return WrapCredentials(grpc_service_account_jwt_access_credentials_create( + json_key.c_str(), lifetime)); } // Builds refresh token credentials. |