Rename http folder to backend to better align with the classes inside

This commit is contained in:
Cameron Gutman
2018-06-27 22:30:33 -07:00
parent 1b36071e02
commit 6fa4faa285
14 changed files with 19 additions and 20 deletions
+49
View File
@@ -0,0 +1,49 @@
#pragma once
#include <QSslConfiguration>
#include <QSslCertificate>
#include <QSslKey>
#include <QSettings>
class IdentityManager
{
public:
QString
getUniqueId();
QByteArray
getCertificate();
QByteArray
getPrivateKey();
QSslConfiguration
getSslConfig();
static
IdentityManager*
get();
private:
IdentityManager();
QSslCertificate
getSslCertificate();
QSslKey
getSslKey();
void
createCredentials(QSettings& settings);
// Initialized in constructor
QByteArray m_CachedPrivateKey;
QByteArray m_CachedPemCert;
// Lazy initialized
QString m_CachedUniqueId;
QSslCertificate m_CachedSslCert;
QSslKey m_CachedSslKey;
static IdentityManager* s_Im;
};