Next Page > Hide TOC

NSURLAuthenticationChallengeSender Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac OS X v10.2 with Safari 1.0 installed.
Available in Mac OS X v10.2.7 and later.
Companion guide
Declared in
NSURLAuthenticationChallenge.h

Overview

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

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

Tasks

Protocol Methods

Instance Methods

cancelAuthenticationChallenge:

Cancels a given authentication challenge.

- (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge

Parameters
challenge

The authentication challenge to cancel.

Availability
Declared In
NSURLAuthenticationChallenge.h

continueWithoutCredentialForAuthenticationChallenge:

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

- (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge

Parameters
challenge

A challenge without authentication credentials.

Discussion

This method has no effect if it is called with an authentication challenge that has already been handled.

Availability
Declared In
NSURLAuthenticationChallenge.h

useCredential:forAuthenticationChallenge:

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

- (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge

Parameters
credential

The credential to use for authentication.

challenge

The challenge for which to use credential.

Discussion

This method has no effect if it is called with an authentication challenge that has already been handled.

Availability
Declared In
NSURLAuthenticationChallenge.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.