Virtru SDK for C++  2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtru_credentials_appid.h
Go to the documentation of this file.
1 /*
2 * Copyright © 2020 Virtru Corporation
3 *
4 * SPDX - License - Identifier: MIT
5 *
6 */
7 //
8 // Virtru TDF3 SDK
9 //
10 // Created by Pat Mancuso on 2020/10/12
11 //
12 
13 // DEPRECATED non-OIDC flows are deprecated, and should be dropped eventually
14 #ifndef VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_APPID_H
15 #define VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_APPID_H
16 
17 #include <string>
18 #include <map>
19 #include <vector>
20 #include <memory>
21 #include "virtru_credentials.h"
22 
23 namespace virtru {
24  class CredentialsAppId : public Credentials {
25  public:
29  CredentialsAppId(const std::string& owner, const std::string& appId);
30 
31  //JAVACPPSKIPBEGIN
34 #ifndef SWIG
35  virtual std::unique_ptr<Credentials> clone() const;
36 #endif
37  //JAVACPPSKIPEND
38 
40  virtual ~CredentialsAppId();
41 
42  //JAVACPPSKIPBEGIN
50  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);
51  //JAVACPPSKIPEND
52 
54  virtual std::string getUserId() const;
55 
58  virtual std::string str() const;
59 
60  private:
61  std::string m_owner;
62  std::string m_appId;
63  };
64 }
65 
66 #endif //VIRTRU_TDF3_SDK_VIRTRU_CREDENTIALS_APPID_H
Definition: virtru_credentials_appid.h:24
std::string m_appId
Definition: virtru_credentials_appid.h:62
virtual ~CredentialsAppId()
Destructor.
virtual std::string str() const
std::string m_owner
Definition: virtru_credentials_appid.h:61
Definition: virtru_credentials.h:31
virtual std::unique_ptr< Credentials > clone() const
CredentialsAppId(const std::string &owner, const std::string &appId)
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)
virtual std::string getUserId() const
Get the userId associated with these credentials.