13 #ifndef VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_H
14 #define VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_H
41 virtual std::unique_ptr<Credentials>
clone()
const;
58 virtual std::string
str()
const;
68 virtual std::map<std::string, std::string>
generateAuthHeaders(
const std::string& url,
const std::string& method,
const std::string& body,
const std::map<std::string, std::string> &headers,
const std::string& date);
76 std::map<std::string, std::string>
parseUrlTODO(
const std::string& url)
const;
80 #endif //VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_H
virtual std::string str() const
CredentialsType
Definition: virtru_credentials.h:23
virtual std::unique_ptr< Credentials > clone() const
Credentials(CredentialsType type=CredentialsType::None)
CredentialsType m_type
Definition: virtru_credentials.h:75
issuer, tokenId, and secret
virtual ~Credentials()
Destructor.
virtual std::map< std::string, std::string > generateAuthHeaders(const std::string &url, const std::string &method, const std::string &body, const std::map< std::string, std::string > &headers, const std::string &date)
Definition: virtru_credentials.h:31
std::string getTypeStr() const
owner, apikey, and secret
virtual std::string getUserId() const
Get the userId associated with these credentials.
std::map< std::string, std::string > parseUrlTODO(const std::string &url) const
CredentialsType getType() const
default - no credentials specified