a secured container for sensitive information(certificate, private key) More...
#include <ndn-cxx/security/safe-bag.hpp>
| Public Member Functions | |
| SafeBag () | |
| Create a new empty SafeBag object.  More... | |
| SafeBag (const Block &wire) | |
| Create a new SafeBag object from the block.  More... | |
| SafeBag (const Data &certificate, const Buffer &encryptedKeyBag) | |
| Create a new Safe object with the given certificate and private key.  More... | |
| SafeBag (const Data &certificate, const uint8_t *encryptedKey, size_t encryptedKeyLen) | |
| Create a new Safe object with the given certificate and private key.  More... | |
| const Data & | getCertificate () const | 
| Get the certificate data packet from safe bag.  More... | |
| const Buffer & | getEncryptedKeyBag () const | 
| Get the private key in PKCS#8 from safe bag.  More... | |
| void | wireDecode (const Block &wire) | 
| Decode the input from wire format.  More... | |
| template<encoding::Tag TAG> | |
| size_t | wireEncode (EncodingImpl< TAG > &encoder) const | 
| Fast encoding or block size estimation.  More... | |
| const Block & | wireEncode () const | 
| Encode to a wire format.  More... | |
a secured container for sensitive information(certificate, private key)
Definition at line 37 of file safe-bag.hpp.
| 
 | default | 
Create a new empty SafeBag object.
| 
 | explicit | 
Create a new SafeBag object from the block.
Definition at line 37 of file safe-bag.cpp.
Create a new Safe object with the given certificate and private key.
| certificate | A reference to the certificate data packet | 
| encryptedKeyBag | A reference to the Buffer of private key in PKCS#8 | 
Definition at line 42 of file safe-bag.cpp.
| ndn::security::SafeBag::SafeBag | ( | const Data & | certificate, | 
| const uint8_t * | encryptedKey, | ||
| size_t | encryptedKeyLen | ||
| ) | 
Create a new Safe object with the given certificate and private key.
| certificate | A reference to the certificate data packet | 
| encryptedKey | A reference to the uint8_t* of private key in PKCS#8 | 
| encryptedKeyLen | The length of the encryptedKey | 
Definition at line 49 of file safe-bag.cpp.
| 
 | inline | 
Get the certificate data packet from safe bag.
Definition at line 96 of file safe-bag.hpp.
| 
 | inline | 
Get the private key in PKCS#8 from safe bag.
Definition at line 105 of file safe-bag.hpp.
| void ndn::security::SafeBag::wireDecode | ( | const Block & | wire | ) | 
Decode the input from wire format.
Definition at line 95 of file safe-bag.cpp.
| size_t ndn::security::SafeBag::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const | 
Fast encoding or block size estimation.
Definition at line 61 of file safe-bag.cpp.
| const Block & ndn::security::SafeBag::wireEncode | ( | ) | const | 
Encode to a wire format.
Definition at line 82 of file safe-bag.cpp.