Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSURLAuthenticationChallengeMBS class.

NSURLAuthenticationChallengeMBS.cancelAuthenticationChallenge

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Tells the system to cancel this challenge.

NSURLAuthenticationChallengeMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The private constructor.

NSURLAuthenticationChallengeMBS.continueWithoutCredentialForAuthenticationChallenge

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Tells the system to continue this challenge without a password.

NSURLAuthenticationChallengeMBS.error as NSErrorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the NSError object representing the last authentication failure.

This method returns nil if the protocol doesn't use errors to indicate an authentication failure.

Available in Mac OS X v10.2 with Safari 1.0 installed.
Available in Mac OS X v10.2.7 and later.

NSURLAuthenticationChallengeMBS.failureResponse as NSURLResponseMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Get the response representing authentication failure.

If there was a previous authentication failure, and this protocol uses responses to indicate authentication failure, then this method will return the response. Otherwise it will return nil.

NSURLAuthenticationChallengeMBS.previousFailureCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Get count of previous failed authentication attempts.

NSURLAuthenticationChallengeMBS.proposedCredential as NSURLCredentialMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Get the proposed credential for this challenge.

proposedCredential may be nil, if there is no default credential to use for this challenge (either stored or in the URL). If the credential is not nil and returns true for hasPassword, this means the NSURLConnection thinks the credential is ready to use as-is. If it returns false for hasPassword, then the credential is not ready to use as-is, but provides a default username the client could use when prompting.

NSURLAuthenticationChallengeMBS.protectionSpace as NSURLProtectionSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Get a description of the protection space that requires authentication.

Returns the protection space that needs authentication.

Some examples using this method:

NSURLAuthenticationChallengeMBS.useCredential(credential as NSURLCredentialMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Networking MBS MacBase Plugin 7.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Tells the system to use a certain credential for this challenge.

The items on this page are in the following plugins: MBS MacBase Plugin.


The biggest plugin in space...