security: Unify TPM creation
Change-Id: Id355abc852ed754efb718ac76893816f62cf8300
Refs: #2722
diff --git a/src/security/key-chain.hpp b/src/security/key-chain.hpp
index bdf3514..955733d 100644
--- a/src/security/key-chain.hpp
+++ b/src/security/key-chain.hpp
@@ -88,6 +88,22 @@
static void
registerTpm(std::initializer_list<std::string> aliases);
+ /// @brief Get default PIB locator
+ static std::string
+ getDefaultPibLocator();
+
+ /// @brief Create a PIB according to @p pibLocator
+ static unique_ptr<SecPublicInfo>
+ createPib(const std::string& pibLocator);
+
+ /// @brief Get default TPM locator
+ static std::string
+ getDefaultTpmLocator();
+
+ /// @brief Create a TPM according to @p tpmLocator
+ static unique_ptr<SecTpm>
+ createTpm(const std::string& tpmLocator);
+
/**
* @brief Constructor to create KeyChain with default PIB and TPM
*