#include <grpc/support/port_platform.h>
#include <openssl/crypto.h>
#include <grpc/impl/codegen/gpr_types.h>
#include "src/core/lib/json/json.h"
Go to the source code of this file.
Classes | |
struct | grpc_auth_json_key |
Macros | |
#define | GRPC_JWT_OAUTH2_AUDIENCE "https://oauth2.googleapis.com/token" |
Typedefs | |
typedef char *(* | grpc_jwt_encode_and_sign_override) (const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope) |
Functions | |
grpc_auth_json_key | grpc_auth_json_key_create_from_json (const grpc_core::Json &json) |
grpc_auth_json_key | grpc_auth_json_key_create_from_string (const char *json_string) |
void | grpc_auth_json_key_destruct (grpc_auth_json_key *json_key) |
int | grpc_auth_json_key_is_valid (const grpc_auth_json_key *json_key) |
char * | grpc_jwt_encode_and_sign (const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope) |
void | grpc_jwt_encode_and_sign_set_override (grpc_jwt_encode_and_sign_override func) |
#define GRPC_JWT_OAUTH2_AUDIENCE "https://oauth2.googleapis.com/token" |
Definition at line 32 of file json_token.h.
typedef char*(* grpc_jwt_encode_and_sign_override) (const grpc_auth_json_key *json_key, const char *audience, gpr_timespec token_lifetime, const char *scope) |
Definition at line 68 of file json_token.h.
grpc_auth_json_key grpc_auth_json_key_create_from_json | ( | const grpc_core::Json & | json | ) |
Definition at line 71 of file json_token.cc.
grpc_auth_json_key grpc_auth_json_key_create_from_string | ( | const char * | json_string | ) |
Definition at line 126 of file json_token.cc.
void grpc_auth_json_key_destruct | ( | grpc_auth_json_key * | json_key | ) |
Definition at line 134 of file json_token.cc.
int grpc_auth_json_key_is_valid | ( | const grpc_auth_json_key * | json_key | ) |
Definition at line 66 of file json_token.cc.
char* grpc_jwt_encode_and_sign | ( | const grpc_auth_json_key * | json_key, |
const char * | audience, | ||
gpr_timespec | token_lifetime, | ||
const char * | scope | ||
) |
Definition at line 266 of file json_token.cc.
void grpc_jwt_encode_and_sign_set_override | ( | grpc_jwt_encode_and_sign_override | func | ) |
Definition at line 286 of file json_token.cc.