22 #ifndef NDN_SECURITY_PIB_KEY_HPP 23 #define NDN_SECURITY_PIB_KEY_HPP 78 Key(weak_ptr<detail::KeyImpl> impl);
129 operator bool()
const;
172 shared_ptr<detail::KeyImpl>
176 weak_ptr<detail::KeyImpl> m_impl;
188 return !(lhs != rhs);
223 #endif // NDN_SECURITY_PIB_KEY_HPP std::ostream & operator<<(std::ostream &os, const Identity &id)
Copyright (c) 2011-2015 Regents of the University of California.
The certificate following the certificate format naming convention.
The interface of signing key management.
bool operator==(const Identity &lhs, const Identity &rhs)
KeyType getKeyType() const
Get key type.
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.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Represents an absolute name.
const Name & getName() const
Get key name.
const v2::Certificate & setDefaultCertificate(const Name &certName) const
Set an existing certificate with certName as the default certificate.
Represents a name component.
Name constructKeyName(const Name &identity, const name::Component &keyId)
Construct key name based on the appropriate naming conventions.
const v2::Certificate & getDefaultCertificate() const
Get the default certificate for this Key.
bool operator!=(const Identity &lhs, const Identity &rhs)
const Buffer & getPublicKey() const
Get public key bits.
v2::Certificate getCertificate(const Name &certName) const
Get a certificate with certName.
Name extractIdentityFromKeyName(const Name &keyName)
Extract identity namespace from the key name keyName.
General-purpose automatically managed/resized buffer.
void removeCertificate(const Name &certName) const
Remove a certificate with certName.
Key()
Default Constructor.
friend bool operator!=(const Key &, const Key &)
const Name & getIdentity() const
Get the name of the belonging identity.
const CertificateContainer & getCertificates() const
Get all certificates for this key.