Skip to content
Snippets Groups Projects

CCDB integration

Merged Nikola Hardi requested to merge feature-ccdb-integration into master
2 files
+ 98
6
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 9
2
@@ -22,6 +22,7 @@ using std::map;
using std::string;
enum CredentialsKind {
cNOT_FOUND = -1,
cJBOX_TOKEN = 0,
cFULL_GRID_CERT,
cJOB_TOKEN,
@@ -73,11 +74,15 @@ public:
static string getHomeDir();
void loadCredentials();
bool has(CredentialsKind kind);
TJAlienCredentialsObject get(CredentialsKind kind);
bool has(CredentialsKind kind) const;
TJAlienCredentialsObject get(CredentialsKind kind) const;
TJAlienCredentialsObject get();
void removeCredentials(CredentialsKind kind);
short count();
void selectPreferedCredentials();
CredentialsKind getPreferedCredentials() const;
const string& getMessages() const;
bool checkCertValidity(const char *path);
static const char *ENV_JOBTOKEN_KEY;
static const char *ENV_JOBTOKEN_CERT;
@@ -85,6 +90,7 @@ public:
static const char *TMP_JOBTOKEN_CERT_FNAME_PREFIX;
private:
CredentialsKind preferedCredentials;
void loadTokenCertificate();
void loadFullGridCertificate();
void loadJobTokenCertificate();
@@ -98,6 +104,7 @@ private:
string tmpdir;
string homedir;
string msg;
map<CredentialsKind, TJAlienCredentialsObject> found_credentials;
};
#endif
Loading