developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
//
//  TBSDKMtopSecruityEnumMapping.h
//  MtopSDK
//
//  Created by jiangpan on 2017/12/21.
//  Copyright © 2017年 Taobao. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
/**
 *  umid 使用的环境变量定义 MTOP内部映射
 */
typedef NS_ENUM(NSInteger,SDP_ENVIRONMENT_MTOP) {
    /**
     *  线上环境
     */
    SDP_ENVIRONMENT_ONLINE_MTOP = 0,
    /**
     *  预发布环境
     */
    SDP_ENVIRONMENT_PRE_MTOP,
    /**
     *  日常环境
     */
    SDP_ENVIRONMENT_DAILY_MTOP,
    /**
     *  美国线上环境
     */
    SDP_ENVIRONMENT_ONLINE_US_MTOP,
    /**
     *  未设置
     */
    SDP_ENVIRONMENT_UNSET_MTOP
    
};
 
/**
 *  使用默认的人机格式,没有特定需求使用此flag
 */
extern int const OPEN_SECURITYBODY_FLAG_FORMAT_DEFAULT_MTOP;
 
/**
 *  通用人机格式
 */
extern int const OPEN_SECURITYBODY_FLAG_FORMAT_GENERAL_MTOP;
 
/**
 *  mini 人机格式
 */
extern int const OPEN_SECURITYBODY_FLAG_FORMAT_MINI_MTOP;
 
/**
 *  使用 白盒加密人机数据,没有特别需求不要指定
 */
extern int const OPEN_SECURITYBODY_FLAG_CRYPTOR_ATLAS_MTOP;
 
/**
 *  人机的环境标识,线上
 */
extern int const OPEN_SECURITYBODY_ENV_ONLINE_MTOP;
 
/**
 *  人机的环境标识,预发
 */
extern int const OPEN_SECURITYBODY_ENV_PRE_MTOP;
 
/**
 *  人机的环境标识,日常
 */
extern int const OPEN_SECURITYBODY_ENV_DAILY_MTOP;
 
 
#pragma mark 签名接口入参
 
/**
 *  签名接口入参key,top, umid签名使用
 */
extern NSString* const OPEN_KEY_SIGN_INPUT_MTOP;
 
/**
 *  seedkey,top 签名使用
 */
extern NSString* const OPEN_KEY_SIGN_SEEDKEY_MTOP;
 
/**
 *  atlaskey,atlas 签名使用
 */
extern NSString* const OPEN_KEY_SIGN_ATLAS_MTOP;
 
/**
 *  签名调用中,OpenSecurityGuardParamContex中requestType参数中使用到的值
 */
 
/**
 *  top签名
 */
extern NSInteger const OPEN_ENUM_SIGN_TOP_MTOP;
 
/**
 *  umid签名
 */
extern NSInteger const OPEN_ENUM_SIGN_UMID_MTOP;
 
/**
 *  原始top签名(无seekKey)
 */
extern NSInteger const OPEN_ENUM_SIGN_TOP_OLD_MTOP;
 
/**
 *  common hmac sha1签名
 */
extern NSInteger const OPEN_ENUM_SIGN_COMMON_HMAC_SHA1_MTOP;
 
/**
 *  common md5签名
 */
extern NSInteger const OPEN_ENUM_SIGN_COMMON_MD5_MTOP;
 
/**
 *  atlas签名
 */
extern NSInteger const OPEN_ENUM_SIGN_ATLAS_MTOP;
 
/**
 *  带模拟器检测功能的hmac-sha1签名
 */
extern NSInteger const OPEN_ENUM_SIGN_SIM_HMAC_SHA1_MTOP;
 
/**
 *  Fast atlas签名 签名String长度50
 */
extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST_MTOP;
 
/**
 *  Fast atlas签名2
 */
extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST2_MTOP;
 
/**
 *  xiami签名
 */
extern NSInteger const OPEN_ENUM_SIGN_XIAMI_MTOP;
 
/**
 *  无效签名类型
 */
extern NSInteger const OPEN_ENUM_SIGN_INVALID_MTOP;