gpt4 book ai didi

IOS:proposalCredentials 和 URLCredential 之间的信任差异

转载 作者:行者123 更新时间:2023-11-29 05:45:07 29 4
gpt4 key购买 nike

URLSession:task:didReceiveChallenge:completionHandler: ,使用.proposedCredential有区别吗?与 URLCredential(trust:)挑战保护空间中的服务器信任对象是什么?

这将作为委托(delegate)方法的完成处理程序中的第二个参数与 .useCredentials 一起传回。 .

最佳答案

此处收到的答复:https://forums.developer.apple.com/message/361609

Realistically there’s no difference here. For server trust authentication challenges, the system does not actually look at the trust object embedded in the credential you pass to the completion handler; all that matters is that you pass in something.

Having said that, I recommend that you stick on the well-trodden path and construct a new credential. I’m actually quite surprised that proposedCredential is even populated in this case.

关于IOS:proposalCredentials 和 URLCredential 之间的信任差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56224690/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com