CMS 3D CMS Logo

Auth.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_Auth_h
2 #define CondCore_CondDB_Auth_h
3 
4 #include <string>
5 #include <set>
6 
7 namespace cond {
8 
9  namespace auth {
10 
11  static constexpr const char* const COND_AUTH_PATH = "COND_AUTH_PATH";
12  static constexpr const char* const COND_AUTH_SYS = "COND_AUTH_SYS";
13 
14  static constexpr const char* const COND_ADMIN_GROUP = "COND_ADMIN_GROUP";
15 
16  static constexpr const char* const COND_DEFAULT_ROLE = "COND_DEFAULT_ROLE";
17  static constexpr const char* const COND_WRITER_ROLE = "COND_WRITER_ROLE";
18  static constexpr const char* const COND_READER_ROLE = "COND_READER_ROLE";
19  static constexpr const char* const COND_ADMIN_ROLE = "COND_ADMIN_ROLE";
20 
21  static const std::set<std::string> ROLES = {std::string(COND_DEFAULT_ROLE),
25 
26  static constexpr const char* const COND_DEFAULT_PRINCIPAL = "COND_DEFAULT_PRINCIPAL";
27 
28  static constexpr const char* const COND_KEY = "Memento";
29 
30  static constexpr unsigned int COND_AUTHENTICATION_KEY_SIZE = 30;
31  static constexpr unsigned int COND_DB_KEY_SIZE = 30;
32 
33  static constexpr size_t COND_SESSION_HASH_SIZE = 16;
34 
35  static constexpr int COND_SESSION_HASH_CODE = 4;
36  static constexpr int COND_DBKEY_CREDENTIAL_CODE = 1;
37 
38  static constexpr int COND_DBTAG_LOCK_ACCESS_CODE = 8;
39  static constexpr int COND_DBTAG_WRITE_ACCESS_CODE = 2;
40  static constexpr int COND_DBTAG_READ_ACCESS_CODE = 1;
41  static constexpr int COND_DBTAG_NO_PROTECTION_CODE = 0;
42 
43  static constexpr const char* const COND_AUTH_PATH_PROPERTY = "AuthenticationFile";
44  } // namespace auth
45 
46 } // namespace cond
47 #endif
cond::auth::COND_READER_ROLE
static constexpr const char *const COND_READER_ROLE
Definition: Auth.h:18
cond::auth::COND_ADMIN_ROLE
static constexpr const char *const COND_ADMIN_ROLE
Definition: Auth.h:19
cond::auth::COND_DBTAG_LOCK_ACCESS_CODE
static constexpr int COND_DBTAG_LOCK_ACCESS_CODE
Definition: Auth.h:38
cond::auth::COND_DBKEY_CREDENTIAL_CODE
static constexpr int COND_DBKEY_CREDENTIAL_CODE
Definition: Auth.h:36
cond::auth::COND_ADMIN_GROUP
static constexpr const char *const COND_ADMIN_GROUP
Definition: Auth.h:14
cond::auth::COND_DEFAULT_PRINCIPAL
static constexpr const char *const COND_DEFAULT_PRINCIPAL
Definition: Auth.h:26
cond::auth::COND_WRITER_ROLE
static constexpr const char *const COND_WRITER_ROLE
Definition: Auth.h:17
cond::auth::COND_AUTH_SYS
static constexpr const char *const COND_AUTH_SYS
Definition: Auth.h:12
cond::auth::COND_SESSION_HASH_CODE
static constexpr int COND_SESSION_HASH_CODE
Definition: Auth.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::auth::COND_DEFAULT_ROLE
static constexpr const char *const COND_DEFAULT_ROLE
Definition: Auth.h:16
cond
Definition: plugin.cc:23
cond::auth::COND_KEY
static constexpr const char *const COND_KEY
Definition: Auth.h:28
cond::auth::COND_DBTAG_WRITE_ACCESS_CODE
static constexpr int COND_DBTAG_WRITE_ACCESS_CODE
Definition: Auth.h:39
cond::auth::COND_SESSION_HASH_SIZE
static constexpr size_t COND_SESSION_HASH_SIZE
Definition: Auth.h:33
beamvalidation.auth
auth
Definition: beamvalidation.py:384
cond::auth::COND_AUTH_PATH
static constexpr const char *const COND_AUTH_PATH
Definition: Auth.h:11
cond::auth::COND_AUTH_PATH_PROPERTY
static constexpr const char *const COND_AUTH_PATH_PROPERTY
Definition: Auth.h:43
cond::auth::ROLES
static const std::set< std::string > ROLES
Definition: Auth.h:21
cond::auth::COND_AUTHENTICATION_KEY_SIZE
static constexpr unsigned int COND_AUTHENTICATION_KEY_SIZE
Definition: Auth.h:30
cond::auth::COND_DBTAG_NO_PROTECTION_CODE
static constexpr int COND_DBTAG_NO_PROTECTION_CODE
Definition: Auth.h:41
cond::auth::COND_DBTAG_READ_ACCESS_CODE
static constexpr int COND_DBTAG_READ_ACCESS_CODE
Definition: Auth.h:40
cond::auth::COND_DB_KEY_SIZE
static constexpr unsigned int COND_DB_KEY_SIZE
Definition: Auth.h:31