首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏一“技”之长

    iOS网络编程之一——iOS网络框架简介 原

    3.NSURLCredential、NSURLProtectionSpace、NSURLCredentialStorage、NSURLAuthenticatioChallenge         一些访问请求需要证书或者身份凭证进行验证

    1.5K21发布于 2018-08-16
  • 来自专栏欧阳大哥的轮子

    HTTP协议中的401授权认证机制在iOS上的实现

    因此系统提供了一个地方来保存这些凭证,这样我们的挑战对象NSURLAuthenticationChallenge就可以根据特殊的信息(后面说明)来获取这些凭证而不必要每次都需要手动处理,这个保存的地方叫做NSURLCredentialStorage 我们知道一个挑战是服务器端向客户端发起的,所以提供一个凭证是根据服务端要求的信息来建立的,我们的挑战类NSURLAuthenticationChallenge根据服务端要求的挑战方式,从凭证存储类NSURLCredentialStorage

    1.9K30发布于 2018-08-22
  • 来自专栏QA一隅

    iOS安全测试—网络通讯安全

    它不单单是一个网络请求类,而是指代Foundation 框架的 URL 系统中的一系列关联的组件: NSURLRequest、NSURLResponse、NSURLProtocol、NSHTTPCookieStorage、NSURLCredentialStorage

    1.7K20发布于 2021-08-09
  • 来自专栏正则

    AFNetworking源码探究(六) —— AFURLSessionManager(2)

    + defaultSessionConfiguration 返回一个标准的 configuration,具有相同的共享 NSHTTPCookieStorage,共享 NSURLCache 和共享NSURLCredentialStorage

    76930发布于 2021-09-02
  • 来自专栏iOS开发~

    iOS_AFNetworking 结构解析+用例分析+源码阅读

    configuration(配置) // NSURLSessionConfiguration 有3个工厂方法 // default: 共享 NSHTTPCookieStorage, NSURLCache, NSURLCredentialStorage

    81520编辑于 2022-07-20
  • 来自专栏云原生布道专栏

    【IOS】总结-AFNetworking学习笔记

    Foundation框架中URL加载系统的相互关联的组件:NSURLRequest,NSURLResponse,NSURLProtocol,NSURLCache,NSHTTPCookieStorage,NSURLCredentialStorage credential storage object, or nil to indicate thatno credential storage is to be used */ @property (retain) NSURLCredentialStorage plaincopy /* * The shared session uses the currently set global NSURLCache, * NSHTTPCookieStorage and NSURLCredentialStorage NSObject /* * The sharedsession uses the currently set global NSURLCache, *NSHTTPCookieStorage and NSURLCredentialStorage

    1.9K30编辑于 2022-03-08
  • 来自专栏Timhbw博客

    NSURLSession与NSURLConnection区别

    */ @property (nullable, retain) NSURLCredentialStorage *URLCredentialStorage; /* 缓存NSURLRequest的response

    2K60发布于 2018-05-03
  • 来自专栏Timhbw博客

    iOS基础问答面试题连载(三)-附答案

    defaultSessionConfiguration"返回标准配置,这实际上与NSURLConnection的网络协议栈是一样的,具有相同的共享NSHTTPCookieStorage,共享NSURLCache和共享NSURLCredentialStorage

    1.1K50发布于 2018-05-03
领券