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 <manifest_parser/utils/logging.h>
10 #include "common/installer_context.h"
11 #include "common/step/recovery/step_recovery.h"
13 namespace common_installer {
17 * @brief responsible for restoring trust anchor values
20 * Part of Recovery Mode. In case of partial
21 * installation trust anchor values get unregistered
22 * In case of unsuccessful partial update
23 * trust anchor values for the app before update
26 class StepRecoverTrustAnchor : public recovery::StepRecovery {
28 using StepRecovery::StepRecovery;
30 Status RecoveryNew() override;
31 Status RecoveryUpdate() override;
33 STEP_NAME(RecoverTrustAnchor)
36 } // namespace security
37 } // namespace common_installer
39 #endif // COMMON_STEP_SECURITY_STEP_RECOVER_TRUST_ANCHOR_H_