setCredential(_:type:)

设置应用程序提供的证书,以在鉴定身份验证时使用。


声明

  1. func setCredential(_ credential: Data?,
  2. type: LACredentialType) -> Bool

参数

  • credential

    鉴定认证上下文时使用的凭证。

    将此参数设置为nil将删除所有指定类型的现有证书。

  • type

    指定的证书的类型。有关可能的值,请参阅LACredentialType

返回值

如果证书被设置则返回true,否则返回false


其他内容

管理证书

func isCredentialSet(LACredentialType)

返回是否设置了指定类型的证书。

var touchIDAuthenticationAllowableReuseDuration: TimeInterval

Touch ID身份验证允许的重用时间间隔。