CernVM-FS  2.13.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 
10 #include <string>
11 
12 namespace receiver {
13 
15  kValid = 0,
18 };
19 
20 bool GenerateSessionToken(const std::string &key_id, const std::string &path,
21  uint64_t max_lease_time, std::string *session_token,
22  std::string *public_token_id,
23  std::string *token_secret);
24 
25 bool GetTokenPublicId(const std::string &token, std::string *public_id);
26 
27 TokenCheckResult CheckToken(const std::string &token, const std::string &secret,
28  std::string *lease_path);
29 
30 } // namespace receiver
31 
32 #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)