test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions | Variables
CredentialStore.cc File Reference
#include "CondCore/DBCommon/interface/CredentialStore.h"
#include "CondCore/DBCommon/interface/Cipher.h"
#include "CondCore/DBCommon/interface/Exception.h"
#include "CondCore/DBCommon/interface/Auth.h"
#include "CondCore/ORA/interface/SequenceManager.h"
#include "CoralBase/AttributeList.h"
#include "CoralBase/Attribute.h"
#include "CoralBase/MessageStream.h"
#include "CoralKernel/Context.h"
#include "CoralCommon/URIParser.h"
#include "RelationalAccess/AuthenticationCredentials.h"
#include "RelationalAccess/IBulkOperation.h"
#include "RelationalAccess/IConnection.h"
#include "RelationalAccess/ISession.h"
#include "RelationalAccess/IRelationalService.h"
#include "RelationalAccess/IRelationalDomain.h"
#include "RelationalAccess/ITransaction.h"
#include "RelationalAccess/ISchema.h"
#include "RelationalAccess/ITable.h"
#include "RelationalAccess/TableDescription.h"
#include "RelationalAccess/ITableDataEditor.h"
#include "RelationalAccess/IQuery.h"
#include "RelationalAccess/ICursor.h"
#include <sstream>
#include <fstream>
#include <boost/filesystem.hpp>

Go to the source code of this file.

Classes

struct  cond::AuthorizationData
 
struct  cond::CredentialData
 
class  cond::CSScopedSession
 
struct  cond::PrincipalData
 

Namespaces

 cond
 

Functions

static const std::string ADMIN_KEY_COL ("CRED2")
 
static const std::string AUTH_ID_COL ("AUTH_ID")
 
static const std::string AUTH_KEY_COL ("CRED3")
 
static const std::string C_ID_COL ("C_ID")
 
static const std::string COND_AUTHENTICATION_TABLE ("COND_AUTHENTICATION")
 
static const std::string COND_AUTHORIZATION_TABLE ("COND_AUTHORIZATION")
 
static const std::string COND_CREDENTIAL_TABLE ("COND_CREDENTIAL")
 
static const std::string CONNECTION_ID_COL ("CONN_ID")
 
static const std::string CONNECTION_KEY_COL ("CRED7")
 
static const std::string CONNECTION_LABEL_COL ("CONN_LABEL")
 
const std::string DEFAULT_DATA_SOURCE ("Cond_Default_Authentication")
 
static const std::string P_ID_COL ("P_ID")
 
static const std::string PASSWORD_COL ("CRED5")
 
static const std::string PRINCIPAL_ID_COL ("P_ID")
 
static const std::string PRINCIPAL_KEY_COL ("CRED1")
 
static const std::string PRINCIPAL_NAME_COL ("P_NAME")
 
static const std::string ROLE_COL ("C_ROLE")
 
static const std::string SCHEMA_COL ("C_SCHEMA")
 
std::string cond::schemaLabel (const std::string &serviceName, const std::string &userName)
 
std::string cond::schemaLabelForCredentialStore (const std::string &connectionString)
 
bool cond::selectAuthorization (coral::ISchema &schema, int principalId, const std::string &role, const std::string &connectionString, AuthorizationData &destination)
 
bool cond::selectConnection (coral::ISchema &schema, const std::string &connectionLabel, CredentialData &destination)
 
bool cond::selectPrincipal (coral::ISchema &schema, const std::string &principal, PrincipalData &destination)
 
static const std::string SEQUENCE_TABLE_NAME ("COND_CREDENTIAL_SEQUENCE")
 
static const std::string USERNAME_COL ("CRED4")
 
static const std::string VERIFICATION_COL ("CRED0")
 
static const std::string VERIFICATION_KEY_COL ("CRED6")
 

Variables

static const std::string serviceName = "CondAuthenticationService"
 

Function Documentation

static const std::string ADMIN_KEY_COL ( "CRED2"  )
static
static const std::string AUTH_ID_COL ( "AUTH_ID"  )
static
static const std::string AUTH_KEY_COL ( "CRED3"  )
static
static const std::string C_ID_COL ( "C_ID"  )
static
static const std::string COND_AUTHENTICATION_TABLE ( "COND_AUTHENTICATION"  )
static
static const std::string COND_AUTHORIZATION_TABLE ( "COND_AUTHORIZATION"  )
static
static const std::string COND_CREDENTIAL_TABLE ( "COND_CREDENTIAL"  )
static
static const std::string CONNECTION_ID_COL ( "CONN_ID"  )
static
static const std::string CONNECTION_KEY_COL ( "CRED7"  )
static
static const std::string CONNECTION_LABEL_COL ( "CONN_LABEL"  )
static
const std::string DEFAULT_DATA_SOURCE ( "Cond_Default_Authentication"  )
static const std::string P_ID_COL ( "P_ID"  )
static
static const std::string PASSWORD_COL ( "CRED5"  )
static
static const std::string PRINCIPAL_ID_COL ( "P_ID"  )
static
static const std::string PRINCIPAL_KEY_COL ( "CRED1"  )
static
static const std::string PRINCIPAL_NAME_COL ( "P_NAME"  )
static
static const std::string ROLE_COL ( "C_ROLE"  )
static
static const std::string SCHEMA_COL ( "C_SCHEMA"  )
static
static const std::string SEQUENCE_TABLE_NAME ( "COND_CREDENTIAL_SEQUENCE"  )
static
static const std::string USERNAME_COL ( "CRED4"  )
static
static const std::string VERIFICATION_COL ( "CRED0"  )
static
static const std::string VERIFICATION_KEY_COL ( "CRED6"  )
static

Variable Documentation

const std::string serviceName = "CondAuthenticationService"
static