Contents

downloadShouldUseCredentialStorage(_:)

Sent to determine whether the URL loader should consult the credential storage to authenticate the download.

Declaration

optional func downloadShouldUseCredentialStorage(_ download: NSURLDownload) -> Bool

Parameters

  • download:

    The connection sending the message.

Discussion

This method is called before any attempt to authenticate is made. By returning false, the delegate tells the download not to consult the credential storage and makes itself responsible for providing credentials for any authentication challenges. Not implementing this method is the same as returing true. The delegate is free to consult the credential storage itself when it receives a download(_:didReceive:) message.

See Also

Download Authentication