Instance Property

protectionSpace

The receiver’s protection space.

Declaration

@property(readonly, copy) NSURLProtectionSpace *protectionSpace;

Discussion

A protection space object provides additional information about the authentication request, such as the host, port, authentication realm, and so on. The protection space also tells you whether the authentication challenge is asking you to provide the user’s credentials or to verify the TLS credentials provided by the server.

See Also

Getting authentication challenge properties

error

The error object representing the last authentication failure.

failureResponse

The URL response object representing the last authentication failure.

previousFailureCount

The receiver’s count of failed authentication attempts.

proposedCredential

The proposed credential for this challenge.

sender

The receiver’s sender.

NSURLAuthenticationChallengeSender

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