comparison Core/WebServiceParameters.h @ 2022:fefbe71c2272

Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 Jun 2016 17:09:50 +0200
parents a0bd8cd55da7
children 39f4207727db
comparison
equal deleted inserted replaced
2021:bd143a77eb7a 2022:fefbe71c2272
45 std::string username_; 45 std::string username_;
46 std::string password_; 46 std::string password_;
47 std::string certificateFile_; 47 std::string certificateFile_;
48 std::string certificateKeyFile_; 48 std::string certificateKeyFile_;
49 std::string certificateKeyPassword_; 49 std::string certificateKeyPassword_;
50 bool pkcs11Enabled_;
50 51
51 void FromJsonArray(const Json::Value& peer); 52 void FromJsonArray(const Json::Value& peer);
52 53
53 void FromJsonObject(const Json::Value& peer); 54 void FromJsonObject(const Json::Value& peer);
54 55
83 void SetPassword(const std::string& password) 84 void SetPassword(const std::string& password)
84 { 85 {
85 password_ = password; 86 password_ = password;
86 } 87 }
87 88
89 void ClearClientCertificate();
90
88 void SetClientCertificate(const std::string& certificateFile, 91 void SetClientCertificate(const std::string& certificateFile,
89 const std::string& certificateKeyFile, 92 const std::string& certificateKeyFile,
90 const std::string& certificateKeyPassword); 93 const std::string& certificateKeyPassword);
91 94
92 const std::string& GetCertificateFile() const 95 const std::string& GetCertificateFile() const
102 const std::string& GetCertificateKeyPassword() const 105 const std::string& GetCertificateKeyPassword() const
103 { 106 {
104 return certificateKeyPassword_; 107 return certificateKeyPassword_;
105 } 108 }
106 109
110 void SetPkcs11Enabled(bool pkcs11Enabled)
111 {
112 pkcs11Enabled_ = pkcs11Enabled;
113 }
114
115 bool IsPkcs11Enabled() const
116 {
117 return pkcs11Enabled_;
118 }
119
107 void FromJson(const Json::Value& peer); 120 void FromJson(const Json::Value& peer);
108 121
109 void ToJson(Json::Value& value) const; 122 void ToJson(Json::Value& value) const;
110 }; 123 };
111 } 124 }