154aa6d63Sopenharmony_ci/*
254aa6d63Sopenharmony_ci * Copyright (c) 2024-2024 Huawei Device Co., Ltd.
354aa6d63Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
454aa6d63Sopenharmony_ci * you may not use this file except in compliance with the License.
554aa6d63Sopenharmony_ci * You may obtain a copy of the License at
654aa6d63Sopenharmony_ci *
754aa6d63Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
854aa6d63Sopenharmony_ci *
954aa6d63Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1054aa6d63Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1154aa6d63Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1254aa6d63Sopenharmony_ci * See the License for the specific language governing permissions and
1354aa6d63Sopenharmony_ci * limitations under the License.
1454aa6d63Sopenharmony_ci */
1554aa6d63Sopenharmony_ci#ifndef SIGNATURETOOLS_PARAM_CONSTANTS_H
1654aa6d63Sopenharmony_ci#define SIGNATURETOOLS_PARAM_CONSTANTS_H
1754aa6d63Sopenharmony_ci#include <string>
1854aa6d63Sopenharmony_ci
1954aa6d63Sopenharmony_cinamespace OHOS {
2054aa6d63Sopenharmony_cinamespace SignatureTools {
2154aa6d63Sopenharmony_ciclass ParamConstants {
2254aa6d63Sopenharmony_cipublic:
2354aa6d63Sopenharmony_ci    const static int HAP_FORMAT_ERROR = 20001;
2454aa6d63Sopenharmony_ci    const static int HAP_PARSE_ERROR = 20002;
2554aa6d63Sopenharmony_ci    const static int HAP_SIGNATURE_ERROR = 20003;
2654aa6d63Sopenharmony_ci    const static int HAP_SIGNATURE_NOT_FOUND_ERROR = 20004;
2754aa6d63Sopenharmony_ci    static const std::string HAP_SIG_SCHEME_V256_DIGEST_ALGORITHM;
2854aa6d63Sopenharmony_ci    static const std::string HAP_SIG_SCHEME_V384_DIGEST_ALGORITHM;
2954aa6d63Sopenharmony_ci    static const std::string HAP_SIG_SCHEME_V512_DIGEST_ALGORITHM;
3054aa6d63Sopenharmony_ci    static const std::string HAP_SIG_ALGORITHM_SHA256_ECDSA;
3154aa6d63Sopenharmony_ci    static const std::string HAP_SIG_ALGORITHM_SHA384_ECDSA;
3254aa6d63Sopenharmony_ci    static const std::string HAP_SIG_ALGORITHM_SHA512_ECDSA;
3354aa6d63Sopenharmony_ci    static const std::string ALIGNMENT;
3454aa6d63Sopenharmony_ci    static const std::string PARAM_SIGN_MODE;
3554aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_CRL;
3654aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_PROPERTY;
3754aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_PROFILE;
3854aa6d63Sopenharmony_ci    static const std::string PARAM_PROFILE_JSON_CONTENT;
3954aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_PROOF;
4054aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_ALIGNMENT;
4154aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_PRIVATE_KEY;
4254aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_INPUT_FILE;
4354aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_OUTPUT_FILE;
4454aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_SIGANTURE_ALG;
4554aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_PROFILE_SIGNED;
4654aa6d63Sopenharmony_ci    static const std::string PARAM_BASIC_COMPATIBLE_VERSION;
4754aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_SERVER;
4854aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_USERNAME;
4954aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_USERPWD;
5054aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_CODE;
5154aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_ONLINEAUTHMODE;
5254aa6d63Sopenharmony_ci    static const std::string PARAM_REMOTE_SIGNERPLUGIN;
5354aa6d63Sopenharmony_ci    static const std::string PARAM_LOCAL_JKS_KEYSTORE;
5454aa6d63Sopenharmony_ci    static const std::string PARAM_LOCAL_JKS_KEYSTORE_CODE;
5554aa6d63Sopenharmony_ci    static const std::string PARAM_LOCAL_JKS_KEYALIAS_CODE;
5654aa6d63Sopenharmony_ci    static const std::string PARAM_LOCAL_PUBLIC_CERT;
5754aa6d63Sopenharmony_ci    static const std::string PARAM_VERIFY_CERTCHAIN_FILE;
5854aa6d63Sopenharmony_ci    static const std::string PARAM_VERIFY_PROFILE_FILE;
5954aa6d63Sopenharmony_ci    static const std::string PARAM_VERIFY_PROOF_FILE;
6054aa6d63Sopenharmony_ci    static const std::string PARAM_VERIFY_PROPERTY_FILE;
6154aa6d63Sopenharmony_ci    static const std::string PARAM_RESIGN_CONFIG_FILE;
6254aa6d63Sopenharmony_ci    static const std::string PARAM_IN_FORM;
6354aa6d63Sopenharmony_ci    static const std::string PARAM_SIGN_CODE;
6454aa6d63Sopenharmony_ci    static constexpr int FILE_NAME_MIN_LENGTH = 2;
6554aa6d63Sopenharmony_ci    static const std::string DISABLE_SIGN_CODE;
6654aa6d63Sopenharmony_ci    static const std::string ENABLE_SIGN_CODE;
6754aa6d63Sopenharmony_ci};
6854aa6d63Sopenharmony_ci} // namespace SignatureTools
6954aa6d63Sopenharmony_ci} // namespace OHOS
7054aa6d63Sopenharmony_ci#endif // SIGNATURETOOLS_PARAM_CONSTANTS_H
71