22 #ifndef NDN_CXX_SECURITY_PIB_KEY_HPP 
   23 #define NDN_CXX_SECURITY_PIB_KEY_HPP 
   78   Key(weak_ptr<detail::KeyImpl> impl);
 
  129   operator bool() 
const;
 
  140   addCertificate(
const Certificate& certificate) 
const;
 
  147   removeCertificate(
const Name& certName) 
const;
 
  156   setDefaultCertificate(
const Name& certName) 
const;
 
  164   setDefaultCertificate(
const Certificate& certificate) 
const;
 
  172   shared_ptr<detail::KeyImpl>
 
  176   weak_ptr<detail::KeyImpl> m_impl;
 
  188   return !(lhs != rhs);
 
  198 inline namespace v2 {
 
Represents an absolute name.
 
Represents a name component.
 
Container of certificates of a key.
 
A frontend handle of a key instance.
 
Key()
Default Constructor.
 
KeyType getKeyType() const
Get key type.
 
const Certificate & getDefaultCertificate() const
Get the default certificate for this Key.
 
friend bool operator!=(const Key &, const Key &)
 
const Name & getIdentity() const
Get the name of the belonging identity.
 
span< const uint8_t > getPublicKey() const
Get public key bits.
 
Certificate getCertificate(const Name &certName) const
Get a certificate with certName.
 
const Name & getName() const
Get key name.
 
const CertificateContainer & getCertificates() const
Get all certificates for this key.
 
Represents an NDN certificate following the version 2.0 format.
 
The interface of signing key management.
 
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
 
bool operator!=(const Identity &lhs, const Identity &rhs)
 
bool operator==(const Identity &lhs, const Identity &rhs)
 
std::ostream & operator<<(std::ostream &os, const Identity &id)
 
bool isValidKeyName(const Name &keyName)
Check if keyName follow the naming conventions for the key name.
 
Name extractIdentityFromKeyName(const Name &keyName)
Extract identity namespace from the key name keyName.
 
Name constructKeyName(const Name &identity, const name::Component &keyId)
Construct key name based on the appropriate naming conventions.
 
KeyType
The type of a cryptographic key.