CMS 3D CMS Logo

Classes | Enumerations | Variables
cond::auth Namespace Reference

Classes

class  Cipher
 
class  DecodingKey
 
class  KeyGenerator
 
struct  ServiceCredentials
 

Enumerations

enum  RoleCode { DEFAULT_ROLE = 0, READER_ROLE = 1, WRITER_ROLE = 2, ADMIN_ROLE = 3 }
 

Variables

static constexpr const char *const COND_ADMIN_GROUP = "COND_ADMIN_GROUP"
 
static constexpr const char *const COND_ADMIN_ROLE = "COND_ADMIN_ROLE"
 
static constexpr const char *const COND_AUTH_PATH = "COND_AUTH_PATH"
 
static constexpr const char *const COND_AUTH_PATH_PROPERTY = "AuthenticationFile"
 
static constexpr const char *const COND_AUTH_SYS = "COND_AUTH_SYS"
 
static constexpr unsigned int COND_AUTHENTICATION_KEY_SIZE = 30
 
static constexpr unsigned int COND_DB_KEY_SIZE = 30
 
static constexpr int COND_DBKEY_CREDENTIAL_CODE = 1
 
static constexpr int COND_DBTAG_LOCK_ACCESS_CODE = 8
 
static constexpr int COND_DBTAG_NO_PROTECTION_CODE = 0
 
static constexpr int COND_DBTAG_READ_ACCESS_CODE = 1
 
static constexpr int COND_DBTAG_WRITE_ACCESS_CODE = 2
 
static constexpr const char *const COND_DEFAULT_PRINCIPAL = "COND_DEFAULT_PRINCIPAL"
 
static constexpr const char *const COND_DEFAULT_ROLE = "COND_DEFAULT_ROLE"
 
static constexpr const char *const COND_KEY = "Memento"
 
static constexpr const char *const COND_READER_ROLE = "COND_READER_ROLE"
 
static constexpr int COND_SESSION_HASH_CODE = 4
 
static constexpr size_t COND_SESSION_HASH_SIZE = 16
 
static constexpr const char *const COND_WRITER_ROLE = "COND_WRITER_ROLE"
 
static const std::set< std::string > ROLES
 
static const std::pair< const char *, RoleCodes_roleCodeArray []
 

Enumeration Type Documentation

◆ RoleCode

Enumerator
DEFAULT_ROLE 
READER_ROLE 
WRITER_ROLE 
ADMIN_ROLE 

Definition at line 26 of file Auth.h.

Variable Documentation

◆ COND_ADMIN_GROUP

constexpr const char* const cond::auth::COND_ADMIN_GROUP = "COND_ADMIN_GROUP"
static

Definition at line 14 of file Auth.h.

◆ COND_ADMIN_ROLE

constexpr const char* const cond::auth::COND_ADMIN_ROLE = "COND_ADMIN_ROLE"
static

◆ COND_AUTH_PATH

constexpr const char* const cond::auth::COND_AUTH_PATH = "COND_AUTH_PATH"
static

Definition at line 11 of file Auth.h.

Referenced by cond::persistency::ConnectionPool::configure(), and cond::getDbCredentials().

◆ COND_AUTH_PATH_PROPERTY

constexpr const char* const cond::auth::COND_AUTH_PATH_PROPERTY = "AuthenticationFile"
static

◆ COND_AUTH_SYS

constexpr const char* const cond::auth::COND_AUTH_SYS = "COND_AUTH_SYS"
static

Definition at line 12 of file Auth.h.

Referenced by cond::persistency::ConnectionPool::configure().

◆ COND_AUTHENTICATION_KEY_SIZE

constexpr unsigned int cond::auth::COND_AUTHENTICATION_KEY_SIZE = 30
static

Definition at line 37 of file Auth.h.

◆ COND_DB_KEY_SIZE

constexpr unsigned int cond::auth::COND_DB_KEY_SIZE = 30
static

◆ COND_DBKEY_CREDENTIAL_CODE

constexpr int cond::auth::COND_DBKEY_CREDENTIAL_CODE = 1
static

Definition at line 43 of file Auth.h.

Referenced by cond::persistency::IOVEditor::load().

◆ COND_DBTAG_LOCK_ACCESS_CODE

constexpr int cond::auth::COND_DBTAG_LOCK_ACCESS_CODE = 8
static

◆ COND_DBTAG_NO_PROTECTION_CODE

constexpr int cond::auth::COND_DBTAG_NO_PROTECTION_CODE = 0
static

Definition at line 48 of file Auth.h.

Referenced by cond::persistency::TAG::Table::insert().

◆ COND_DBTAG_READ_ACCESS_CODE

constexpr int cond::auth::COND_DBTAG_READ_ACCESS_CODE = 1
static

Definition at line 47 of file Auth.h.

◆ COND_DBTAG_WRITE_ACCESS_CODE

constexpr int cond::auth::COND_DBTAG_WRITE_ACCESS_CODE = 2
static

◆ COND_DEFAULT_PRINCIPAL

constexpr const char* const cond::auth::COND_DEFAULT_PRINCIPAL = "COND_DEFAULT_PRINCIPAL"
static

Definition at line 33 of file Auth.h.

◆ COND_DEFAULT_ROLE

constexpr const char* const cond::auth::COND_DEFAULT_ROLE = "COND_DEFAULT_ROLE"
static

◆ COND_KEY

constexpr const char* const cond::auth::COND_KEY = "Memento"
static

Definition at line 35 of file Auth.h.

Referenced by cond::CredentialStore::setUpForService().

◆ COND_READER_ROLE

constexpr const char* const cond::auth::COND_READER_ROLE = "COND_READER_ROLE"
static

Definition at line 18 of file Auth.h.

Referenced by cond::persistency::ConnectionPool::createCoralSession().

◆ COND_SESSION_HASH_CODE

constexpr int cond::auth::COND_SESSION_HASH_CODE = 4
static

◆ COND_SESSION_HASH_SIZE

constexpr size_t cond::auth::COND_SESSION_HASH_SIZE = 16
static

Definition at line 40 of file Auth.h.

Referenced by cond::persistency::SessionImpl::SessionImpl().

◆ COND_WRITER_ROLE

constexpr const char* const cond::auth::COND_WRITER_ROLE = "COND_WRITER_ROLE"
static

◆ ROLES

const std::set<std::string> cond::auth::ROLES
static
Initial value:
static constexpr const char *const COND_READER_ROLE
Definition: Auth.h:18
static constexpr const char *const COND_ADMIN_ROLE
Definition: Auth.h:19
static constexpr const char *const COND_WRITER_ROLE
Definition: Auth.h:17
static constexpr const char *const COND_DEFAULT_ROLE
Definition: Auth.h:16

Definition at line 21 of file Auth.h.

Referenced by cond::setPermissionData(), and cond::CredentialStore::unsetPermission().

◆ s_roleCodeArray

const std::pair<const char*, RoleCode> cond::auth::s_roleCodeArray[]
static
Initial value:
= {std::make_pair(COND_DEFAULT_ROLE, DEFAULT_ROLE),
std::make_pair(COND_READER_ROLE, READER_ROLE),
std::make_pair(COND_WRITER_ROLE, WRITER_ROLE),
std::make_pair(COND_ADMIN_ROLE, ADMIN_ROLE)}
static constexpr const char *const COND_READER_ROLE
Definition: Auth.h:18
static constexpr const char *const COND_ADMIN_ROLE
Definition: Auth.h:19
static constexpr const char *const COND_WRITER_ROLE
Definition: Auth.h:17
static constexpr const char *const COND_DEFAULT_ROLE
Definition: Auth.h:16

Definition at line 28 of file Auth.h.

Referenced by cond::getDbCredentials().