URLProtectionSpace
A server or an area on a server, commonly referred to as a realm, that requires authentication.
Declaration
class URLProtectionSpaceOverview
A protection space defines a series of matching constraints that determine which credential should be provided. For example, if a request provides your delegate with a URLAuthenticationChallenge object that requests a client username and password, your app should provide the correct username and password for the particular host, port, protocol, and realm, as specified in the challenge’s protection space.
Topics
Creating a protection space
init(host:port:protocol:realm:authenticationMethod:)init(proxyHost:port:type:realm:authenticationMethod:)
Getting protection space properties
authenticationMethoddistinguishedNameshostportprotocolproxyTyperealmreceivesCredentialSecurelyserverTrust
Identifying protection space properties
NSURLProtectionSpace protocol typesNSURLProtectionSpace proxy typesNSURLProtectionSpace authentication method constants