1 /*
2 * Copyright (c) 2024-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "unzip_handle_param.h"
17
18 namespace OHOS {
19 namespace SignatureTools {
20
UnzipHandleParam(const CodeSignBlock & csb,const std::pair<std::string,std::string> & pairResult,bool isSign)21 UnzipHandleParam::UnzipHandleParam(const CodeSignBlock& csb, const std::pair<std::string, std::string>& pairResult,
22 bool isSign)
23 {
24 this->csb = csb;
25 this->pairResult = pairResult;
26 this->isSign = isSign;
27 }
28
UnzipHandleParam(std::vector<std::pair<std::string,SignInfo>> & ret,const std::string & ownerID,bool isSign)29 UnzipHandleParam::UnzipHandleParam(std::vector<std::pair<std::string, SignInfo>>& ret,
30 const std::string& ownerID, bool isSign)
31 {
32 this->ret = ret;
33 this->ownerID = ownerID;
34 this->isSign = isSign;
35 }
36
GetCodeSignBlock()37 CodeSignBlock& UnzipHandleParam::GetCodeSignBlock()
38 {
39 return csb;
40 }
41
GetPairResult()42 std::pair<std::string, std::string>& UnzipHandleParam::GetPairResult()
43 {
44 return pairResult;
45 }
46
GetRet()47 std::vector<std::pair<std::string, SignInfo>>& UnzipHandleParam::GetRet()
48 {
49 return ret;
50 }
51
GetOwnerID()52 std::string& UnzipHandleParam::GetOwnerID()
53 {
54 return ownerID;
55 }
56
IsSign()57 bool UnzipHandleParam::IsSign()
58 {
59 return isSign;
60 }
61
62 } // namespace SignatureTools
63 } // namespace OHOS