CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 *, RoleCode
s_roleCodeArray []
 

Enumeration Type Documentation

Enumerator
DEFAULT_ROLE 
READER_ROLE 
WRITER_ROLE 
ADMIN_ROLE 

Definition at line 26 of file Auth.h.

Variable Documentation

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

Definition at line 14 of file Auth.h.

constexpr const char* const cond::auth::COND_ADMIN_ROLE = "COND_ADMIN_ROLE"
static
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().

constexpr const char* const cond::auth::COND_AUTH_PATH_PROPERTY = "AuthenticationFile"
static
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().

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

Definition at line 37 of file Auth.h.

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

Definition at line 43 of file Auth.h.

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

constexpr int cond::auth::COND_DBTAG_LOCK_ACCESS_CODE = 8
static
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().

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

Definition at line 47 of file Auth.h.

constexpr int cond::auth::COND_DBTAG_WRITE_ACCESS_CODE = 2
static
constexpr const char* const cond::auth::COND_DEFAULT_PRINCIPAL = "COND_DEFAULT_PRINCIPAL"
static

Definition at line 33 of file Auth.h.

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

Definition at line 35 of file Auth.h.

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

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().

constexpr int cond::auth::COND_SESSION_HASH_CODE = 4
static
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().

constexpr const char* const cond::auth::COND_WRITER_ROLE = "COND_WRITER_ROLE"
static
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().

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().