Instance Property インスタンスプロパティ

sender

The sender of the challenge. チャレンジの送信側。

Declaration 宣言

@property(nullable, readonly, retain) id<NSURLAuthenticationChallengeSender> sender;

Discussion 議論

If you are using the NSURLSession API, this value is purely informational, because you must respond to authentication challenges in your NSURLSessionDelegate or NSURLSessionTaskDelegate implementations, by passing NSURLSessionAuthChallengeDisposition constants to the provided completion handler blocks. あなたがNSURLSession APIを使っているならば、この値は純粋に情報に関するものです、あなたは認証チャレンジに応答する必要があります、あなたのNSURLSessionDelegateまたはNSURLSessionTaskDelegate実装において、NSURLSessionAuthChallengeDisposition定数をその提供された完了ハンドラブロックに渡して。

However, if you are using the legacy NSURLConnection or NSURLDownload API, you use this object directly in your authentication handler delegate method. With these APIs, after you finish processing the authentication challenge, you respond by calling methods defined in the NSURLAuthenticationChallengeSender protocol on this sender. しかしながら、あなたがレガシーNSURLConnectionまたはNSURLDownload APIを使っているならば、あなたはこのオブジェクトを直接にあなたの認証ハンドラ委任先メソッドにおいて使います。これらAPIで、あなたが認証チャレンジを処理する後、あなたはNSURLAuthenticationChallengeSenderプロトコルにおいて定義されるメソッドをこのセンダー上で呼び出すことによって応答します。