12
13
/// Class for converting credentials stored in file
13
/// in PEM format into Globus structire.
14
/// in PEM format into Globus structure.
14
15
/// It works only for full credentials containing
15
16
/// private key. This limitation is due to limited
17
18
class GSSCredential {
20
/// Load credentials from file(s)
19
21
GSSCredential(const std::string& proxyPath,
20
const std::string& certificatePath,
21
const std::string& keyPath);
22
const std::string& certificatePath,
23
const std::string& keyPath);
24
/// Load credentials from UserConfig information. First tries string then files.
25
GSSCredential(const UserConfig& usercfg);
22
26
GSSCredential(): credential(GSS_C_NO_CREDENTIAL) {};
24
28
operator gss_cred_id_t&();
25
29
operator gss_cred_id_t*();
26
30
static std::string ErrorStr(OM_uint32 majstat, OM_uint32 minstat);
32
std::string readCredFromFiles(const std::string& proxyPath,
33
const std::string& certificatePath,
34
const std::string& keyPath);
35
void initCred(const std::string& credbuf);
28
36
gss_cred_id_t credential;
29
37
//static Logger logger;