Instance Method インスタンスメソッド

URLProtocol:didReceiveAuthenticationChallenge:

Tells the client that the URL Loading System received an authentication challenge. クライアントに、URLローディングシステムがある認証チャレンジを受け取ったことを伝えます。

Declaration 宣言

- (void)URLProtocol:(NSURLProtocol *)protocol 
didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge;

Parameters パラメータ

protocol

The URL protocol object sending the message. メッセージを送っているURLプロトコルオブジェクト。

challenge

The authentication challenge that has been received. 受け取られた認証チャレンジ。

Discussion 議論

The protocol client guarantees that it will answer the request on the same thread that called this method. The client may add a default credential to the challenge it issues to the connection delegate, if protocol did not provide one. プロトコルクライアントは、それがこのメソッドを呼び出した同じスレッド上のリクエストに応えることを保証します。クライアントは、省略時の資格情報を、それが接続委任先に発行するチャレンジに加えるかもしれません、もしprotocolがそれを提供しないならば。

See Also 参照

Handling Authentication Challenges 認証チャレンジを取り扱う