1# AuthSolution
2
3
4## 概述
5
6认证方案。
7
8**弃用:**
9
10从4.1版本开始废弃,使用[AuthSolutionV1_2](_auth_solution_v1__2_v12.md)接口代替
11
12**起始版本:** 4.1
13
14**相关模块:**[HdfUserAuth](_hdf_user_auth_v12.md)
15
16
17## 汇总
18
19
20### Public 属性
21
22| 名称 | 描述 |
23| -------- | -------- |
24| int [userId](#userid) | 用户ID。  |
25| unsigned int [authTrustLevel](#authtrustlevel) | 认证结果可信等级。  |
26| enum [AuthType](_hdf_user_auth_v12.md#authtype)[authType](#authtype) | 用户认证凭据类型[AuthType](_hdf_user_auth_v12.md#authtype)。  |
27| unsigned int [executorSensorHint](#executorsensorhint) | 既定用户认证凭据类型的执行器传感器提示,用于找到对应认证方式的传感器。  |
28| unsigned char[] [challenge](#challenge) | 挑战值,用于签发认证令牌。  |
29
30
31## 类成员变量说明
32
33
34### authTrustLevel
35
36```
37unsigned int AuthSolution::authTrustLevel
38```
39**描述**
40
41认证结果可信等级。
42
43
44### authType
45
46```
47enum AuthType AuthSolution::authType
48```
49**描述**
50
51用户认证凭据类型[AuthType](_hdf_user_auth_v12.md#authtype)。
52
53
54### challenge
55
56```
57unsigned char [] AuthSolution::challenge
58```
59**描述**
60
61挑战值,用于签发认证令牌。
62
63
64### executorSensorHint
65
66```
67unsigned int AuthSolution::executorSensorHint
68```
69**描述**
70
71既定用户认证凭据类型的执行器传感器提示,用于找到对应认证方式的传感器。
72
73
74### userId
75
76```
77int AuthSolution::userId
78```
79**描述**
80
81用户ID。
82