CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
receiver Namespace Reference

Classes

class  CatalogMergeTool
 
class  CommitProcessor
 
struct  Params
 
struct  FileInfo
 
class  PayloadProcessor
 
class  Reactor
 

Enumerations

enum  TokenCheckResult { kValid = 0, kInvalid, kExpired }
 

Functions

bool IsSubPath (const PathString &parent, const PathString &path)
 
std::string GetSpoolerTempDir (const std::string &spooler_config)
 
bool GetParamsFromFile (const std::string &repo_name, Params *params)
 
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)
 

Detailed Description

This file is part of the CernVM File System.

This file is part of the CernVM File System.

This file contains a very simple implementation of session tokens.

Enumeration Type Documentation

Enumerator
kValid 
kInvalid 
kExpired 

Definition at line 13 of file session_token.h.

Function Documentation

TokenCheckResult receiver::CheckToken ( const std::string &  token,
const std::string &  secret,
std::string *  lease_path 
)

Definition at line 112 of file session_token.cc.

Referenced by receiver::Reactor::HandleCheckToken().

Here is the call graph for this function:

Here is the caller graph for this function:

bool receiver::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 
)

Generate a session token from a public key_id, a path argument and a max lease time (given in seconds).

The session token encodes a lease valid for "path" until now() + max_lease_time.

Returns the session token, the (public) token_id and the token secret.

Definition at line 30 of file session_token.cc.

Referenced by receiver::Reactor::HandleGenerateToken().

Here is the call graph for this function:

Here is the caller graph for this function:

bool receiver::GetParamsFromFile ( const std::string &  repo_name,
Params *  params 
)

Definition at line 20 of file params.cc.

Referenced by receiver::PayloadProcessor::Initialize(), and receiver::CommitProcessor::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string receiver::GetSpoolerTempDir ( const std::string &  spooler_config)

Definition at line 14 of file params.cc.

Referenced by receiver::PayloadProcessor::Initialize(), and receiver::CommitProcessor::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

bool receiver::GetTokenPublicId ( const std::string &  token,
std::string *  public_id 
)

Obtain the public_id from a session token

Definition at line 80 of file session_token.cc.

Referenced by receiver::Reactor::HandleGetTokenId().

Here is the call graph for this function:

Here is the caller graph for this function:

bool receiver::IsSubPath ( const PathString parent,
const PathString path 
)

Definition at line 9 of file lease_path_util.cc.

Referenced by receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::IsIgnoredPath(), and receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::IsReportablePath().

Here is the call graph for this function:

Here is the caller graph for this function: