22 #ifndef NDN_SECURITY_PIB_IMPL_HPP 23 #define NDN_SECURITY_PIB_IMPL_HPP 46 class Error :
public std::runtime_error
51 :
std::runtime_error(what)
116 virtual std::set<Name>
197 virtual std::set<name::Component>
273 virtual std::set<Name>
286 const Name& certName) = 0;
304 #endif // NDN_SECURITY_PIB_IMPL_HPP virtual void removeKey(const Name &identity, const name::Component &keyId)=0
Remove a key.
virtual IdentityCertificate getDefaultCertificateOfKey(const Name &identity, const name::Component &keyId) const =0
Get the default certificate of a key with id of .
represents a non-semantic error
Copyright (c) 2011-2015 Regents of the University of California.
virtual void removeCertificate(const Name &certName)=0
Remove a certificate with name certName.
virtual Name getDefaultIdentity() const =0
Get the default identity.
virtual void addKey(const Name &identity, const name::Component &keyId, const PublicKey &publicKey)=0
Add a key.
virtual std::set< Name > getCertificatesOfKey(const Name &identity, const name::Component &keyId) const =0
Get a list of certificate names of a key with id keyId of identity.
virtual bool hasCertificate(const Name &certName) const =0
Check the existence of a certificate with name certName.
virtual std::string getTpmLocator() const =0
Get TPM Locator.
virtual void addIdentity(const Name &identity)=0
Add an identity.
virtual bool hasIdentity(const Name &identity) const =0
Check the existence of an identity.
virtual PublicKey getKeyBits(const Name &identity, const name::Component &keyId) const =0
Get the key bits of a key.
virtual std::set< Name > getIdentities() const =0
Get the name of all the identities.
Error(const std::string &what)
virtual name::Component getDefaultKeyOfIdentity(const Name &identity) const =0
Get the id of the default key of an identity with name identity.
Name abstraction to represent an absolute name.
Abstract class of PIB implementation.
virtual std::set< name::Component > getKeysOfIdentity(const Name &identity) const =0
Get all the key ids of an identity with name identity.
virtual void addCertificate(const IdentityCertificate &certificate)=0
Add a certificate.
virtual void setDefaultKeyOfIdentity(const Name &identity, const name::Component &keyId)=0
Set an key with id keyId as the default key of an identity with name identity.
Component holds a read-only name component value.
virtual void setDefaultCertificateOfKey(const Name &identity, const name::Component &keyId, const Name &certName)=0
Set a cert with name certName as the default of a key with id of .
virtual void setTpmLocator(const std::string &tpmLocator)=0
Set the corresponding TPM information to tpmLocator.
virtual void removeIdentity(const Name &identity)=0
Remove an identity.
virtual void setDefaultIdentity(const Name &identityName)=0
Set an identity with name identityName as the default identity.
virtual bool hasKey(const Name &identity, const name::Component &keyId) const =0
Check the existence of a key.
virtual IdentityCertificate getCertificate(const Name &certName) const =0
Get a certificate with name certName.