2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file SignatureManager.h
19 * @brief This is the header file for the %SignatureManager class.
21 * This header file contains the declarations of the %SignatureManager class.
23 #ifndef _SIGNATURE_MANAGER_H_
24 #define _SIGNATURE_MANAGER_H_
26 #include <FSecCertX509CertificatePath.h>
28 #include "InstallationContext.h"
29 #include "SignatureHandler.h"
32 * @class SignatureManager
33 * @brief This class represents the class of SignatureManager.
36 * This class represents the class of SignatureManager.
40 class SignatureManager
43 SignatureManager(void);
44 virtual ~SignatureManager(void);
46 bool Construct(InstallationContext *pConext);
50 //bool VerifySignature();
51 bool ValidateSignatures();
54 SignatureManager(const SignatureManager& value);
55 SignatureManager& operator =(const SignatureManager& source);
57 bool Validate(Tizen::Security::Cert::X509CertificatePath* pCertPath);
58 bool AddCertificate(Tizen::Security::Cert::X509CertificatePath* pCertPath, Tizen::Base::Collection::IList* pCertChain);
59 bool AddDistributorRootCert(Tizen::Security::Cert::X509CertificatePath* pCertPath);
60 bool AddAuthorRootCert(Tizen::Security::Cert::X509CertificatePath* pCertPath);
63 InstallationContext* __pContext;
64 SignatureHandler* __pAuthorSignature;
65 SignatureHandler* __pDistributorSignature;
66 Tizen::Security::Cert::X509CertificatePath* __pAuthorCertPath;
67 Tizen::Security::Cert::X509CertificatePath* __pDistributorCertPath;
70 }; // SignatureManager
72 #endif // _SIGNATURE_MANAGER_H_