ocolCredentials和URLCredential之间的

ocolCredentials和URLCredential之间的

本文介绍了IOS:protocolCredentials和URLCredential之间的信任差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

URLSession:task:didReceiveChallenge:completionHandler: 中,使用之间有区别 .proposedCredential URLCredential(trust:) ?

这将作为委托方法的完成处理程序中的第二个参数以及 .useCredentials .

This is to pass back as the second parameter in the completion handler of the delegate method, along with .useCredentials.

推荐答案

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

话虽如此,我建议您坚持循序渐进,并建立一个新的凭证.实际上,我很惊讶在这种情况下甚至填充了proposedCredential.

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:protocolCredentials和URLCredential之间的信任差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 17:52