22 #ifndef NDN_SECURITY_PIB_DETAIL_KEY_IMPL_HPP
23 #define NDN_SECURITY_PIB_DETAIL_KEY_IMPL_HPP
25 #include "../../../data.hpp"
26 #include "../certificate-container.hpp"
27 #include "../../security-common.hpp"
59 KeyImpl(
const Name& keyName,
const uint8_t* key,
size_t keyLen, shared_ptr<PibImpl> impl);
68 KeyImpl(
const Name& keyName, shared_ptr<PibImpl> impl);
166 mutable bool m_isDefaultCertificateLoaded;
171 shared_ptr<PibImpl> m_impl;
179 #endif // NDN_SECURITY_PIB_DETAIL_KEY_IMPL_HPP
KeyType getKeyType() const
Get key type.
Copyright (c) 2013-2016 Regents of the University of California.
KeyImpl(const Name &keyName, const uint8_t *key, size_t keyLen, shared_ptr< PibImpl > impl)
Create a KeyImpl with keyName.
The certificate following the certificate format naming convention.
const v2::Certificate & setDefaultCertificate(const Name &certName)
Set an existing one with certName as the default certificate.
const CertificateContainer & getCertificates() const
Get all the certificates for this key.
Container of certificates of a key.
Name abstraction to represent an absolute name.
void removeCertificate(const Name &certName)
Remove a certificate with certName.
const Name & getName() const
Get the name of the key.
v2::Certificate getCertificate(const Name &certName) const
Get a certificate with certName.
const Buffer & getPublicKey() const
Get public key bits.
void addCertificate(const v2::Certificate &certificate)
Add certificate.
const Name & getIdentity() const
Get the name of the belonging identity.
Class representing a general-use automatically managed/resized buffer.
const v2::Certificate & getDefaultCertificate() const
Get the default certificate for this Key.