#include <DelegationInterface.h>
Public Member Functions | |
| DelegationConsumer (void) | |
| DelegationConsumer (const std::string &content) | |
| const std::string & | ID (void) |
| bool | Backup (std::string &content) |
| bool | Restore (const std::string &content) |
| bool | Request (std::string &content) |
| bool | Acquire (std::string &content) |
| bool | Acquire (std::string &content, std::string &identity) |
Protected Member Functions | |
| bool | Generate (void) |
| void | LogError (void) |
A consumer of delegated X509 credentials. During delegation procedure this class acquires delegated credentials aka proxy - certificate, private key and chain of previous certificates. Delegation procedure consists of calling Request() method for generating certificate request followed by call to Acquire() method for making complete credentials from certificate chain.
| Arc::DelegationConsumer::DelegationConsumer | ( | void | ) |
Creates object with new private key
| Arc::DelegationConsumer::DelegationConsumer | ( | const std::string & | content | ) |
Creates object with provided private key
| bool Arc::DelegationConsumer::Acquire | ( | std::string & | content, | |
| std::string & | identity | |||
| ) |
Includes the functionality of Acquire(content) plus extracting the credential identity.
| bool Arc::DelegationConsumer::Acquire | ( | std::string & | content | ) |
Ads private key into certificates chain in 'content' On exit content contains complete delegated credentials.
| bool Arc::DelegationConsumer::Backup | ( | std::string & | content | ) |
Stores content of this object into a string
| bool Arc::DelegationConsumer::Generate | ( | void | ) | [protected] |
Private key
| const std::string& Arc::DelegationConsumer::ID | ( | void | ) |
Return identifier of this object - not implemented
| void Arc::DelegationConsumer::LogError | ( | void | ) | [protected] |
Creates private key
| bool Arc::DelegationConsumer::Request | ( | std::string & | content | ) |
Make X509 certificate request from internal private key
| bool Arc::DelegationConsumer::Restore | ( | const std::string & | content | ) |
Restores content of object from string
1.6.3