security: Make public interface of Pib, Identity, and Key as read-only
Change-Id: I7b3fac583c00cce2fa09802fa4d0aff2ace4aca2
Refs: #2928
diff --git a/src/security/identity.cpp b/src/security/identity.cpp
index 7662a0a..128b7bc 100644
--- a/src/security/identity.cpp
+++ b/src/security/identity.cpp
@@ -90,7 +90,7 @@
}
Key
-Identity::getKey(const name::Component& keyId)
+Identity::getKey(const name::Component& keyId) const
{
validityCheck();
@@ -98,7 +98,7 @@
}
const KeyContainer&
-Identity::getKeys()
+Identity::getKeys() const
{
validityCheck();
@@ -130,7 +130,7 @@
}
Key&
-Identity::getDefaultKey()
+Identity::getDefaultKey() const
{
validityCheck();