12 #ifndef VIRTRU_CREDENTIALS_HMAC_H_
13 #define VIRTRU_CREDENTIALS_HMAC_H_
25 CredentialsHmac(
const std::string &userId,
const std::string &apiKey,
const std::string &apiSecret);
31 virtual std::unique_ptr<Credentials>
clone()
const;
46 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);
54 virtual std::string
str()
const;
62 #endif // VIRTRU_CREDENTIALS_HMAC_H_
std::string m_apiSecret
Definition: virtru_credentials_hmac.h:59
virtual ~CredentialsHmac()
Destructor.
CredentialsHmac(const std::string &userId, const std::string &apiKey, const std::string &apiSecret)
virtual std::string getUserId() const
Get the userId associated with these credentials.
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)
std::string m_userId
Definition: virtru_credentials_hmac.h:57
virtual std::string str() const
std::string m_apiKey
Definition: virtru_credentials_hmac.h:58
Definition: virtru_credentials_hmac.h:19
Definition: virtru_credentials.h:31
virtual std::unique_ptr< Credentials > clone() const