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);
128 operator bool()
const;
150 removeCertificate(
const Name& certName)
const;
159 setDefaultCertificate(
const Name& certName)
const;
176 shared_ptr<detail::KeyImpl>
180 weak_ptr<detail::KeyImpl> m_impl;
214 #endif // NDN_SECURITY_PIB_KEY_HPP
const Name & getName() const
Copyright (c) 2013-2016 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 isValidKeyName(const Name &keyName)
Check if keyName follow the naming conventions for the key name.
Container of certificates of a key.
const CertificateContainer & getCertificates() const
Get all certificates for this key.
A frontend handle of a key instance.
KeyType getKeyType() const
Get key type.
v2::Certificate getCertificate(const Name &certName) const
Get a certificate with certName.
Name abstraction to represent an absolute name.
const Buffer & getPublicKey() const
Get public key bits.
const v2::Certificate & getDefaultCertificate() const
Get the default certificate for this Key.
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.
const Name & getIdentity() const
Get the name of the belonging identity.
bool operator!() const
Check if the Key instance is invalid.
Name extractIdentityFromKeyName(const Name &keyName)
Extract identity namespace from the key name keyName.
Class representing a general-use automatically managed/resized buffer.
Key()
Default Constructor.