【问题标题】:How to get touch id authentication information?如何获取touch id认证信息?
【发布时间】:2015-02-28 19:25:33
【问题描述】:

有没有什么方法可以获取某种 touch id 身份验证字符串?我想将其用作密码并将其与用户名相关联。

谢谢!

【问题讨论】:

    标签: ios ios8 passwords biometrics touch-id


    【解决方案1】:

    没有。没有办法做到这一点。 LAContext 类为您提供了几种状态(通过、失败、取消等),但您不会获得任何其他数据。以下是 LAError.h 文件中可能的状态值。

        /// Authentication was not successful, because user failed to provide valid credentials.
        LAErrorAuthenticationFailed = kLAErrorAuthenticationFailed,
    
        /// Authentication was canceled by user (e.g. tapped Cancel button).
        LAErrorUserCancel           = kLAErrorUserCancel,
    
        /// Authentication was canceled, because the user tapped the fallback button (Enter Password).
        LAErrorUserFallback         = kLAErrorUserFallback,
    
        /// Authentication was canceled by system (e.g. another application went to foreground).
        LAErrorSystemCancel         = kLAErrorSystemCancel,
    
        /// Authentication could not start, because passcode is not set on the device.
        LAErrorPasscodeNotSet       = kLAErrorPasscodeNotSet,
    
        /// Authentication could not start, because Touch ID is not available on the device.
        LAErrorTouchIDNotAvailable  = kLAErrorTouchIDNotAvailable,
    
        /// Authentication could not start, because Touch ID has no enrolled fingers.
        LAErrorTouchIDNotEnrolled   = kLAErrorTouchIDNotEnrolled,
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-20
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      • 2013-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多