15#define SKW_AUTH_TOKEN_MAX_TOKEN_SIZE (4096U)
41 const char *secret_key);
#define SKW_AUTH_TOKEN_MAX_TOKEN_SIZE
AuthTokenを格納するバッファのサイズ(NUL終端を含む)。
Definition auth_token.h:15
skw_auth_token_err_t skw_auth_token_generate_for_dev(skw_auth_token_t *out_token, const char *app_id, const char *secret_key)
SkyWayで利用するAuthTokenを生成します。このAuthTokenは開発用であり、商用環境での使用は推奨されません。
skw_auth_token_err_t
AuthToken APIのエラーコード。
Definition auth_token.h:18
@ SKW_AUTH_TOKEN_ERR_NULL_ARGS
引数がNULL
Definition auth_token.h:20
@ SKW_AUTH_TOKEN_ERR_CLOCK_INVALID
システム時刻が不正
Definition auth_token.h:24
@ SKW_AUTH_TOKEN_ERR_BUFFER_OVERFLOW
出力バッファが不足
Definition auth_token.h:21
@ SKW_AUTH_TOKEN_ERR_ENCODE_FAILED
AuthTokenの生成に失敗
Definition auth_token.h:22
@ SKW_AUTH_TOKEN_OK
正常終了
Definition auth_token.h:19
@ SKW_AUTH_TOKEN_ERR_INVALID_ARGS
引数の値が不正
Definition auth_token.h:23
生成したAuthTokenを保持する構造体。
Definition auth_token.h:28
size_t len
str内の文字列長(NUL終端を含まない)
Definition auth_token.h:30
char str[SKW_AUTH_TOKEN_MAX_TOKEN_SIZE]
NUL終端済みのAuthToken文字列
Definition auth_token.h:29