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

getDefaultCredentialForProtectionSpace:task:completionHandler:

Gets the default credential for the specified protection space, which is being accessed by the given task, and passes it to the provided completion handler. 指定された保護空間に対する資格情報を取得します、それは与えられたタスクによってアクセスされています、そしてそれをこの提供された完了ハンドラに渡します。

Declaration 宣言

- (void)getDefaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space 
                                          task:(NSURLSessionTask *)task 
                             completionHandler:(void (^)(NSURLCredential *credential))completionHandler;

Parameters パラメータ

space

The protection space of interest. 興味を引く保護空間。

task

The task seeking to use the protection space 保護空間を使おうとするタスク。

completionHandler

A completion handler that receives the default credential as its argument, or nil if there is no default credential for this combination of protection space and task. 省略時の資格情報をそれの引数として受け取る完了ハンドラ、またはnil、もし保護空間とタスクのこの組み合わせに対する省略時の資格情報が何もないならば。

See Also 参照

Getting and Setting Default Credentials 省略時の資格情報の取得と設定