NSURLProtectionSpace Authentication Method Constants

Constants describing known values of the authenticationMethod property of a NSURLProtectionSpace.

Overview

These constants are also used with the NSURLProtectionSpace initializers initWithHost:port:protocol:realm:authenticationMethod: and initWithProxyHost:port:type:realm:authenticationMethod:.

Topics

Session-Wide Authentication Challenges

These constants indicate session-wide challenges. Delegates handle these challenges in the NSURLSessionDelegate method URLSession:didReceiveChallenge:completionHandler:.

NSURLAuthenticationMethodClientCertificate

Use client certificate authentication for this protection space.

NSURLAuthenticationMethodNegotiate

Negotiate whether to use Kerberos or NTLM authentication for this protection space.

NSURLAuthenticationMethodNTLM

Use NTLM authentication for this protection space.

NSURLAuthenticationMethodServerTrust

Perform server trust authentication (certificate validation) for this protection space.

Task-Specific Authentication Challenges

These constants indicate task-specific challenges. Delegates handle these challenges in the NSURLSessionTaskDelegate method URLSession:task:didReceiveChallenge:completionHandler:.

NSURLAuthenticationMethodDefault

Use the default authentication method for a protocol.

NSURLAuthenticationMethodHTMLForm

Use HTML form authentication for this protection space.

NSURLAuthenticationMethodHTTPBasic

Use HTTP basic authentication for this protection space.

NSURLAuthenticationMethodHTTPDigest

Use HTTP digest authentication for this protection space.

See Also

Identifying Protection Space Properties

NSURLProtectionSpace Protocol Types

These constants describe the supported protocols for a protection space, as returned by protocol.

NSURLProtectionSpace Proxy Types

These constants describe the supported proxy types used in initWithProxyHost:port:type:realm:authenticationMethod: and returned by proxyType.