22 #ifndef NDN_SECURITY_PIB_KEY_HPP 23 #define NDN_SECURITY_PIB_KEY_HPP 26 #include "../security-common.hpp" 78 Key(weak_ptr<detail::KeyImpl> impl);
102 getPublicKey()
const;
110 getCertificate(
const Name& certName)
const;
116 getCertificates()
const;
123 getDefaultCertificate()
const;
129 operator bool()
const;
147 removeCertificate(
const Name& certName)
const;
156 setDefaultCertificate(
const Name& certName)
const;
172 shared_ptr<detail::KeyImpl>
176 weak_ptr<detail::KeyImpl> m_impl;
188 return !(lhs != rhs);
223 #endif // NDN_SECURITY_PIB_KEY_HPP Copyright (c) 2013-2017 Regents of the University of California.
The certificate following the certificate format naming convention.
The interface of signing key management.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
bool operator!=(const Data &lhs, const Data &rhs)
bool isValidKeyName(const Name &keyName)
Check if keyName follow the naming conventions for the key name.
KeyType
The type of a cryptographic key.
Container of certificates of a key.
A frontend handle of a key instance.
Represents an absolute name.
std::ostream & operator<<(std::ostream &os, const AdditionalDescription &other)
Component holds a read-only name component value.
Name constructKeyName(const Name &identity, const name::Component &keyId)
Construct key name based on the appropriate naming conventions.
bool operator==(const Data &lhs, const Data &rhs)
Name extractIdentityFromKeyName(const Name &keyName)
Extract identity namespace from the key name keyName.
General-purpose automatically managed/resized buffer.