blob: 332fc48756db6b966f87af3c01ff0268767a791e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (c) 2018 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
#include <memory>
#include <boost/optional.hpp>
#include <Swiften/Base/SafeByteArray.h>
#include <Swiften/TLS/PrivateKey.h>
namespace Swift {
class PrivateKey {
public:
using ref = std::shared_ptr<PrivateKey>;
public:
PrivateKey(const SafeByteArray& data, boost::optional<SafeByteArray> password = boost::optional<SafeByteArray>());
const SafeByteArray& getData() const;
const boost::optional<SafeByteArray>& getPassword() const;
private:
SafeByteArray data_;
boost::optional<SafeByteArray> password_;
};
}
|