CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
session_token.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_RECEIVER_SESSION_TOKEN_H_
6 #define CVMFS_RECEIVER_SESSION_TOKEN_H_
7 
8 #include <stdint.h>
9 #include <string>
10 
11 namespace receiver {
12 
14 
15 bool GenerateSessionToken(const std::string& key_id, const std::string& path,
16  uint64_t max_lease_time, std::string* session_token,
17  std::string* public_token_id,
18  std::string* token_secret);
19 
20 bool GetTokenPublicId(const std::string& token, std::string* public_id);
21 
22 TokenCheckResult CheckToken(const std::string& token, const std::string& secret,
23  std::string* lease_path);
24 
25 } // namespace receiver
26 
27 #endif // CVMFS_RECEIVER_SESSION_TOKEN_H_
bool GenerateSessionToken(const std::string &key_id, const std::string &path, uint64_t max_lease_time, std::string *session_token, std::string *public_token_id, std::string *token_secret)
bool GetTokenPublicId(const std::string &token, std::string *public_id)
TokenCheckResult CheckToken(const std::string &token, const std::string &secret, std::string *lease_path)