webEngineWebAuthPinRequest QML Value Type
封装 PIN WebAuth UX 请求的数据。更多
Import Statement: | import QtWebEngine |
Since: | QtWebEngine 6.8 |
属性
- error : enumeration
- minPinLength : int
- reason : enumeration
- remainingAttempts : int
详细说明
该模块封装了与验证器发出的 PIN 请求相关的以下信息。
- PIN 提示的原因。
- PIN 提示的错误详情。
- 硬锁定前剩余的尝试次数。除非webEngineWebAuthPinRequest::reason 是
WebEngineWebAuthUxRequest.PinEntryReason.Challenge
,否则应忽略。 - 验证器接受的最小 PIN 码长度。
当 WebAuth UXstate 为WebEngineWebAuthUxRequest.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::reason 是WebEngineWebAuthUxRequest.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.