1 // Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache 2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_
6 #define COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_
8 #include <boost/filesystem/path.hpp>
9 #include <manifest_parser/utils/logging.h>
11 #include "common/installer_context.h"
12 #include "common/step/recovery/step_recovery.h"
14 namespace common_installer {
18 * @brief responsible for restoring trust anchor values
21 * Part of Recovery Mode. In case of partial
22 * installation trust anchor values get unregistered
23 * In case of unsuccessful partial update
24 * trust anchor values for the app before update
27 class StepRecoverTrustAnchor : public recovery::StepRecovery {
29 using StepRecovery::StepRecovery;
31 Status RecoveryNew() override;
32 Status RecoveryUpdate() override;
34 STEP_NAME(RecoverTrustAnchor)
37 } // namespace security
38 } // namespace common_installer
40 #endif // COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_