Sent to determine whether the delegate is able to respond to a protection space’s form of authentication.
- iOS 3.0–8.0Deprecated
- macOS 10.6–10.10Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
The connection sending the message.
The protection space that generates an authentication challenge.
YES if the delegate if able to respond to a protection space’s form of authentication, otherwise
This method is called before
connection:, allowing the delegate to inspect a protection space before attempting to authenticate against it. By returning
YES, the delegate indicates that it can handle the form of authentication, which it does in the subsequent call to
connection:. If the delegate returns
NO, the system attempts to use the user’s keychain to authenticate. If your delegate does not implement this method and the protection space uses client certificate authentication or server trust authentication, the system behaves as if you returned
NO. The system behaves as if you returned
YES for all other authentication methods.