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 |
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.
– cancelAuthenticationChallenge:
– continueWithoutCredentialForAuthenticationChallenge:
– useCredential:forAuthenticationChallenge:
Cancels a given authentication challenge.
- (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
The authentication challenge to cancel.
NSURLAuthenticationChallenge.h
Attempt to continue downloading a request without providing a credential for a given challenge.
- (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
A challenge without authentication credentials.
This method has no effect if it is called with an authentication challenge that has already been handled.
NSURLAuthenticationChallenge.h
Attempt to use a given credential for a given authentication challenge.
- (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
The credential to use for authentication.
The challenge for which to use credential.
This method has no effect if it is called with an authentication challenge that has already been handled.
NSURLAuthenticationChallenge.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)