Virgil Security Crypto library  2.6.3
VirgilPFSPrivateKey.h
1 
37 #ifndef VIRGIL_CRYPTO_PFS_VIRGIL_PFS_PRIVATE_KEY_H
38 #define VIRGIL_CRYPTO_PFS_VIRGIL_PFS_PRIVATE_KEY_H
39 
40 #include "../VirgilByteArray.h"
41 
42 namespace virgil { namespace crypto { namespace pfs {
43 
51 public:
57 
61  bool isEmpty() const;
62 
67  const VirgilByteArray& getKey() const;
68 
73  const VirgilByteArray& getPassword() const;
74 
76  VirgilPFSPrivateKey(const VirgilPFSPrivateKey& other) = default;
77 
78  VirgilPFSPrivateKey& operator=(const VirgilPFSPrivateKey& other) = default;
79 
80  VirgilPFSPrivateKey(VirgilPFSPrivateKey&& other) = default;
81 
82  VirgilPFSPrivateKey& operator=(VirgilPFSPrivateKey&& other) = default;
83 
84  ~VirgilPFSPrivateKey() noexcept;
86 
87 private:
88  VirgilByteArray key_;
89  VirgilByteArray password_;
90 };
91 
92 }}}
93 
94 #endif //VIRGIL_CRYPTO_PFS_VIRGIL_PFS_PRIVATE_KEY_H
const VirgilByteArray & getKey() const
Getter.
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:50
This is model object that handles private key.
Definition: VirgilPFSPrivateKey.h:50
const VirgilByteArray & getPassword() const
Getter.
VirgilPFSPrivateKey(VirgilByteArray key=VirgilByteArray(), VirgilByteArray password=VirgilByteArray())