#include <DelegationInterface.h>
Public Member Functions | |
DelegationProvider (const std::string &credentials) | |
DelegationProvider (const std::string &cert_file, const std::string &key_file, std::istream *inpwd=NULL) | |
std::string | Delegate (const std::string &request, const DelegationRestrictions &restrictions=DelegationRestrictions()) |
A provider of delegated credentials. During delegation procedure this class generates new credential to be used in proxy/delegated credential.
Arc::DelegationProvider::DelegationProvider | ( | const std::string & | credentials | ) |
Creates instance from provided credentials. Credentials are used to sign delegated credentials. Arguments should contain PEM-encoded certificate, private key and optionally certificates chain.
Arc::DelegationProvider::DelegationProvider | ( | const std::string & | cert_file, | |
const std::string & | key_file, | |||
std::istream * | inpwd = NULL | |||
) |
Creates instance from provided credentials. Credentials are used to sign delegated credentials. Arguments should contain filesystem path to PEM-encoded certificate and private key. Optionally cert_file may contain certificates chain.
std::string Arc::DelegationProvider::Delegate | ( | const std::string & | request, | |
const DelegationRestrictions & | restrictions = DelegationRestrictions() | |||
) |
Perform delegation. Takes X509 certificate request and creates proxy credentials excluding private key. Result is then to be fed into DelegationConsumer::Acquire