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