Protocol

URLAuthenticationChallengeSender

The URLAuthenticationChallengeSender protocol represents the interface that the sender of an authentication challenge must implement.

Declaration

protocol URLAuthenticationChallengeSender

Overview

The methods in the protocol are generally sent by a delegate in response to receiving a connection(_:didReceive:): or download(_:didReceive:):. The different methods provide different ways of responding to authentication challenges.

Topics

Protocol Methods

func cancel(URLAuthenticationChallenge)

Cancels a given authentication challenge.

Required.

func continueWithoutCredential(for: URLAuthenticationChallenge)

Attempt to continue downloading a request without providing a credential for a given challenge.

Required.

func use(URLCredential, for: URLAuthenticationChallenge)

Attempt to use a given credential for a given authentication challenge.

Required.

func performDefaultHandling(for: URLAuthenticationChallenge)

Causes the system-provided default behavior to be used.

func rejectProtectionSpaceAndContinue(with: URLAuthenticationChallenge)

Rejects the currently supplied protection space.

Relationships

Inherits From