webEngineWebAuthPinRequest QML Value Type

封装 PIN WebAuth UX 请求的数据。更多

Import Statement: import QtWebEngine
Since: QtWebEngine 6.8

属性

详细说明

该模块封装了与验证器发出的 PIN 请求相关的以下信息。

  • PIN 提示的原因。
  • PIN 提示的错误详情。
  • 硬锁定前剩余的尝试次数。除非webEngineWebAuthPinRequest::reasonWebEngineWebAuthUxRequest.PinEntryReason.Challenge ,否则应忽略。
  • 验证器接受的最小 PIN 码长度。

当 WebAuth UXstateWebEngineWebAuthUxRequest.WebAuthUxState.CollectPin 时,使用此结构更新 WebAuth UX 对话框。

属性文档

error : enumeration

PIN 提示的错误详细信息。

常量说明
WebEngineWebAuthUxRequest.PinEntryError.NoError未发生错误。
WebEngineWebAuthUxRequest.PinEntryError.InternalUvLocked内部 UV 已锁定,因此我们退回到 PIN。
WebEngineWebAuthUxRequest.PinEntryError.WrongPin用户输入的 PIN 与身份验证 PIN 不匹配。
WebEngineWebAuthUxRequest.PinEntryError.TooShort用户输入的新 PIN 太短。
WebEngineWebAuthUxRequest.PinEntryError.InvalidCharacters用户输入的新 PIN 码包含无效字符。
WebEngineWebAuthUxRequest.PinEntryError.SameAsCurrentPin用户输入的新 PIN 码与当前设置的 PIN 码相同。

minPinLength : int

身份验证机接受的最小 PIN 码长度。


reason : enumeration

PIN 提示的原因。

常数说明
WebEngineWebAuthUxRequest.PinEntryReason.Set正在设置新 PIN 码。
WebEngineWebAuthUxRequest.PinEntryReason.Change使用此身份验证器前必须更改现有 PIN 码。
WebEngineWebAuthUxRequest.PinEntryReason.Challenge正在收集现有 PIN 码,以证明用户已通过验证。

remainingAttempts : int

硬锁定前剩余的尝试次数。除非webEngineWebAuthPinRequest::reasonWebEngineWebAuthUxRequest.PinEntryReason.Challenge ,否则应忽略。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.