/* * Copyright (c) 2018 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include namespace Swift { class PrivateKey { public: using ref = std::shared_ptr; public: PrivateKey(const SafeByteArray& data, boost::optional password = boost::optional()); const SafeByteArray& getData() const; const boost::optional& getPassword() const; private: SafeByteArray data_; boost::optional password_; }; }