SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
auth_token_builder.hpp
1#ifndef SKYWAY_GLOBAL_UTIL_AUTH_TOKEN_BUILDER_HPP_
2#define SKYWAY_GLOBAL_UTIL_AUTH_TOKEN_BUILDER_HPP_
3
4#include <json.hpp>
5#include <string>
6
7namespace skyway {
8namespace global {
9namespace util {
10
12class AuthTokenBuilder {
13public:
14 const static std::string Create(const std::string app_id, const std::string secret_key);
15
16private:
17 const static std::string EncodeBase64Url(const std::string& token);
18 const static std::string BuildSHA256(const std::string& key, const std::string& data);
19};
21
22} // namespace util
23} // namespace global
24} // namespace skyway
25#endif // SKYWAY_GLOBAL_UTIL_AUTH_TOKEN_BUILDER_HPP_