1# IExecutor 2 3 4## 概述 5 6定义执行器接口,用于获取执行器,获取凭据模版信息,注册指纹特征模版,进行用户指纹认证,删除指纹特征模版等。 7 8**起始版本:** 4.0 9 10**相关模块:**[HdfFingerprintAuth](_hdf_fingerprint_auth_v11.md) 11 12 13## 汇总 14 15 16### Public 成员函数 17 18| 名称 | 描述 | 19| -------- | -------- | 20| [AuthenticateV1_1](#authenticatev1_1) ([in] unsigned long scheduleId, [in] unsigned long[] templateIdList, [in] boolean endAfterFirstFail, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj) | 指纹识别。 | 21| [GetProperty](#getproperty) ([in] unsigned long[] templateIdList, [in] enum [GetPropertyType](_hdf_fingerprint_auth_v11.md#getpropertytype)[] propertyTypes, [out] struct [Property](_property_fingerauth_v11.md) property) | 获取指纹执行器属性。 | 22| [SetCachedTemplates](#setcachedtemplates) ([in] unsigned long[] templateIdList) | 设置指纹缓存模板。 | 23| [RegisterSaCommandCallback](#registersacommandcallback) ([in] [ISaCommandCallback](interface_i_sa_command_callback_fingerauth_v11.md) callbackObj) | 注册sa命令回调。 | 24 25 26## 成员函数说明 27 28 29### AuthenticateV1_1() 30 31``` 32IExecutor::AuthenticateV1_1 ([in] unsigned long scheduleId, [in] unsigned long[] templateIdList, [in] boolean endAfterFirstFail, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj ) 33``` 34 35**描述** 36 37 38指纹识别。 39 40**起始版本:** 4.0 41 42**参数:** 43 44| 名称 | 描述 | 45| -------- | -------- | 46| scheduleId | 调度ID,用于标识一次操作请求的调度过程。 | 47| templateIdList | 指定要认证的模版ID列表。 | 48| endAfterFirstFail | 第一次认证失败后结束认证。 | 49| extraInfo | 其他相关信息,用于支持信息扩展。 | 50| callbackObj | 回调对象[IExecutorCallback](interface_i_executor_callback_fingerauth_v10.md)。 | 51 52**返回:** 53 540 表示操作成功。 55 56非0 表示操作失败。 57 58 59### GetProperty() 60 61``` 62IExecutor::GetProperty ([in] unsigned long[] templateIdList, [in] enum GetPropertyType[] propertyTypes, [out] struct Property property ) 63``` 64 65**描述** 66 67 68获取指纹执行器属性。 69 70**起始版本:** 4.0 71 72**参数:** 73 74| 名称 | 描述 | 75| -------- | -------- | 76| templateIdList | 指定要认证的模版ID列表。 | 77| propertyTypes | 指纹执行器属性类型,见[GetPropertyType](_hdf_fingerprint_auth_v11.md#getpropertytype)。 | 78| property | 指纹执行器属性[Property](_property_fingerauth_v11.md)。 | 79 80**返回:** 81 820 表示操作成功。 83 84非0 表示操作失败。 85 86 87### RegisterSaCommandCallback() 88 89``` 90IExecutor::RegisterSaCommandCallback ([in] ISaCommandCallback callbackObj) 91``` 92 93**描述** 94 95 96注册sa命令回调。 97 98**参数:** 99 100| 名称 | 描述 | 101| -------- | -------- | 102| callbackObj | sa命令回调对象。 | 103 104**返回:** 105 1060 表示操作成功。 107 108非0 表示操作失败。 109 110 111### SetCachedTemplates() 112 113``` 114IExecutor::SetCachedTemplates ([in] unsigned long[] templateIdList) 115``` 116 117**描述** 118 119 120设置指纹缓存模板。 121 122**起始版本:** 4.0 123 124**参数:** 125 126| 名称 | 描述 | 127| -------- | -------- | 128| templateIdList | 指纹缓存模板列表。 | 129 130**返回:** 131 1320 表示操作成功。 133 134非0 表示操作失败。 135