Public Methods | |
UserCredential () | |
Empty Constructor. | |
int | checkProxy (const std::string &cred_path="") |
Check if the Proxy Certificate is valid. More... | |
std::string | getIssuer (const std::string &cred_path="") |
Return the Issuer of the Proxy Certificate. More... | |
std::string | getSubject (const std::string &cred_path="") |
Return the Issuer of the Proxy Certificate. More... | |
int | getCredType (const std::string &cred_path="") |
Return the Subject of the Proxy Certificate. More... | |
int | getStrenght (const std::string &cred_path="") |
Return the Cred type of the Proxy Certificate. More... | |
int | getTimeLeft (const std::string &cred_path="") |
Return the Strenght of the Proxy Certificate. More... | |
void | getInfo (std::string &subj, std::string &issuer, int &cred_type, int &strength, int &time_left, const std::string &cred_path="") |
Return the lasting time of the Proxy Certificate. More... | |
void | destroy (const std::string &cred_path="") |
Destroy the proxy file (if present). More... | |
std::string | getDefaultVoName () |
Retrieve the default Virtual Organisation name. | |
std::vector< std::string > | getVoNames () |
Retrieve the vector of all the Virtual Organisation names. | |
std::vector< std::string > | getDefaultGroups () |
Returns the groups belonging to the default VirtualOrganisation. | |
bool | containsVo (const std::string &voName) |
Check wheater the specifie Virtual Organisation is contained in the Vo certificate extension. More... |
It does not allow the creation of proxy certificates that have to be generated by using the grid-proxy-init Globus command (the only way of handling credentials that is considered really safe). Namely this is needed since the pass-phrase (very sensitive information) should not be passed through any complex (hence likely to be insecure) software components like GUI. It is recalled that proxy existence and correct setting of the X509* variables is required by all job monitoring and control methods.
This class can manipulate standard proxies as well as edg-VOMS certificates, in order to extract the extension information The main operation are:
|
Check if the Proxy Certificate is valid.
|
|
Check wheater the specifie Virtual Organisation is contained in the Vo certificate extension.
|
|
Destroy the proxy file (if present).
|
|
Return the Subject of the Proxy Certificate.
|
|
Return the lasting time of the Proxy Certificate.
|
|
Return the Issuer of the Proxy Certificate.
|
|
Return the Cred type of the Proxy Certificate.
|
|
Return the Issuer of the Proxy Certificate.
|
|
Return the Strenght of the Proxy Certificate.
|