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