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#ifndef SIGNATRUETOOLS_PARAMS_H
17#define SIGNATRUETOOLS_PARAMS_H
18
19#include <string>
20#include <variant>
21#include <iostream>
22#include <memory>
23#include <unordered_set>
24#include <vector>
25
26#include "options.h"
27#include "signature_algorithm_helper.h"
28#include "param_constants.h"
29
30namespace OHOS {
31namespace SignatureTools {
32class Params {
33public:
34    static std::unordered_set<std::string> InitParamField(const std::vector<std::string>& paramFields);
35    static bool GetSignatureAlgorithm(const std::string& signatureAlgorithm, SignatureAlgorithmHelper& out);
36    Params();
37    ~Params();
38    std::string GetMethod();
39    void SetMethod(const std::string& method);
40    Options* GetOptions();
41
42private:
43    Options* options;
44    std::string method;
45};
46
47using ParamsSharedPtr = std::shared_ptr<Params>;
48
49} // namespace SignatureTools
50} // namespace OHOS
51#endif // SIGNATRUETOOLS_PARAMS_H
52