GRPC Core  9.0.0
Functions
jwt_credentials.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/credentials/jwt/jwt_credentials.h"
#include <inttypes.h>
#include <string.h>
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/surface/api_trace.h"
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/sync.h>

Functions

grpc_core::RefCountedPtr< grpc_call_credentialsgrpc_service_account_jwt_access_credentials_create_from_auth_json_key (grpc_auth_json_key key, gpr_timespec token_lifetime)
 
grpc_call_credentialsgrpc_service_account_jwt_access_credentials_create (const char *json_key, gpr_timespec token_lifetime, void *reserved)
 Creates a JWT credentials object. More...
 

Function Documentation

◆ grpc_service_account_jwt_access_credentials_create()

grpc_call_credentials* grpc_service_account_jwt_access_credentials_create ( const char *  json_key,
gpr_timespec  token_lifetime,
void *  reserved 
)

Creates a JWT credentials object.

May return NULL if the input is invalid.

  • json_key is the JSON key string containing the client's private key.
  • token_lifetime is the lifetime of each Json Web Token (JWT) created with this credentials. It should not exceed grpc_max_auth_token_lifetime or will be cropped to this value.

◆ grpc_service_account_jwt_access_credentials_create_from_auth_json_key()

grpc_core::RefCountedPtr<grpc_call_credentials> grpc_service_account_jwt_access_credentials_create_from_auth_json_key ( grpc_auth_json_key  key,
gpr_timespec  token_lifetime 
)