openharmony 鸿蒙 interface_i_all_in_one_executor_v20

2025-06-16 浏览 (1)

IAllInOneExecutor

概述

定义全功能执行器标准API接口。接口可用于获取执行器信息,获取凭据模版信息,注册口令,认证口令,删除口令等。

起始版本: 5.0

相关模块:HdfPinAuth

汇总

Public 成员函数

名称描述
GetExecutorInfo ([out] struct ExecutorInfo executorInfo)获取执行器信息。
OnRegisterFinish ([in] unsigned long[] templateIdList, [in] unsigned char[] frameworkPublicKey, [in] unsigned char[] extraInfo)完成执行器注册,对口令模版信息进行对账,用于删除无效的口令模板及相关信息。
Cancel ([in] unsigned long scheduleId)取消操作请求。
SendMessage ([in] unsigned long scheduleId, [in] int srcRole, [in] unsigned char[] msg)发送消息。
SetData ([in] unsigned long scheduleId, [in] unsigned long authSubType, [in] unsigned char[] data, [in] int resultCode)设置口令数据,口令认证驱动处理注册或认证口令请求时,如果口令数据由口令认证服务获取,需要通过该接口将口令数据传给口令认证驱动。
Enroll ([in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj)注册口令。
Authenticate ([in] unsigned long scheduleId, [in] unsigned long[] templateIdList, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj)认证口令。
Delete ([in] unsigned long templateId)删除口令。
GetProperty ([in] unsigned long[] templateIdList, [in] int[] propertyTypes, [out] struct Property property)获取属性。

成员函数说明

Authenticate()

IAllInOneExecutor::Authenticate ([in] unsigned long scheduleId, [in] unsigned long[] templateIdList, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj )

描述

认证口令。

起始版本: 5.0

参数:

名称描述
scheduleId调度ID,用于标识一次操作请求的调度过程。
templateIdList指定要认证的模版ID列表。
extraInfo其他相关信息,用于支持信息扩展。
callbackObj回调对象IExecutorCallback

返回:

0 表示操作成功。

非0 表示操作失败。

Cancel()

IAllInOneExecutor::Cancel ([in] unsigned long scheduleId)

描述

取消操作请求。

起始版本: 5.0

参数:

名称描述
scheduleId调度ID,用于标识一次操作请求的调度过程。

返回:

0 表示操作成功。

非0 表示操作失败。

Delete()

IAllInOneExecutor::Delete ([in] unsigned long templateId)

描述

删除口令。

起始版本: 5.0

参数:

名称描述
templateId模版ID。

返回:

0 表示操作成功。

非0 表示操作失败。

Enroll()

IAllInOneExecutor::Enroll ([in] unsigned long scheduleId, [in] unsigned char[] extraInfo, [in] IExecutorCallback callbackObj )

描述

注册口令。

起始版本: 5.0

参数:

名称描述
scheduleId调度ID,用于标识一次操作请求的调度过程。
extraInfo其他相关信息,用于支持信息扩展。
callbackObj回调对象IExecutorCallback

返回:

0 表示操作成功。

非0 表示操作失败。

GetExecutorInfo()

IAllInOneExecutor::GetExecutorInfo ([out] struct ExecutorInfo executorInfo)

描述

获取执行器信息。

起始版本: 5.0

参数:

名称描述
executorInfo标识执行器信息ExecutorInfo

返回:

0 表示操作成功。

非0 表示操作失败。

GetProperty()

IAllInOneExecutor::GetProperty ([in] unsigned long[] templateIdList, [in] int[] propertyTypes, [out] struct Property property )

描述

获取属性。

起始版本: 5.0

参数:

名称描述
templateIdList标识需要处理的模板。
propertyTypes标识需要获取的属性类型GetPropertyType
property标识获取的属性Property

返回:

0 表示操作成功。

非0 表示操作失败。

OnRegisterFinish()

IAllInOneExecutor::OnRegisterFinish ([in] unsigned long[] templateIdList, [in] unsigned char[] frameworkPublicKey, [in] unsigned char[] extraInfo )

描述

完成执行器注册,对口令模版信息进行对账,用于删除无效的口令模板及相关信息。

起始版本: 5.0

参数:

名称描述
templateIdList用户认证框架内由该执行器注册的口令凭据模版ID列表。
frameworkPublicKey用户认证框架的公钥,用于校验用户认证框架私钥签名的信息。
extraInfo其他相关信息,用于支持信息扩展。

返回:

0 表示操作成功。

非0 表示操作失败。

SendMessage()

IAllInOneExecutor::SendMessage ([in] unsigned long scheduleId, [in] int srcRole, [in] unsigned char[] msg )

描述

发送消息。

起始版本: 5.0

参数:

名称描述
scheduleId标识消息的调度ID。
srcRole源执行器角色ExecutorRole
msg消息。

返回:

0 表示操作成功。

非0 表示操作失败。

SetData()

IAllInOneExecutor::SetData ([in] unsigned long scheduleId, [in] unsigned long authSubType, [in] unsigned char[] data, [in] int resultCode )

描述

设置口令数据,口令认证驱动处理注册或认证口令请求时,如果口令数据由口令认证服务获取,需要通过该接口将口令数据传给口令认证驱动。

起始版本: 5.0

参数:

名称描述
scheduleId调度ID,用于标识一次操作请求的调度过程。
authSubType口令子类型,如六位数字PIN码等PinAuthTypes
data口令数据。
resultCode返回结果状态码。

返回:

0 表示操作成功。

非0 表示操作失败。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙PinAuth HDI 参考

harmony 鸿蒙ExecutorInfo

harmony 鸿蒙ExecutorInfo

harmony 鸿蒙HdfPinAuth (V1_0)

harmony 鸿蒙HdfPinAuth (V1_1)

harmony 鸿蒙HdfPinAuth (V2_0)

harmony 鸿蒙IAllInOneExecutor.idl

harmony 鸿蒙ICollector.idl

harmony 鸿蒙IExecutor.idl

harmony 鸿蒙IExecutor.idl

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/mbe6cj