Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
<PTDiffusionHTTPAuthenticationChallengeHandler> Protocol Reference

The protocol implemented by classes providing an authentication challenge handler implementation for HTTP connections. More...

#include <PTDiffusionHTTPAuthenticationChallengeHandler.h>

Instance Methods

(NSDictionary< NSString *, NSString * > *) - responseForChallenge:

Properties

NSUInteger maximumConversations

Detailed Description

The protocol implemented by classes providing an authentication challenge handler implementation for HTTP connections.

See also
PTDiffusionHTTPAuthentication
Since
6.0

Method Documentation

◆ responseForChallenge:

- (NSDictionary< NSString *, NSString * > *) responseForChallenge: (PTDiffusionHTTPAuthenticationChallenge *) challenge

Called when a challenge is received. The receiver must return a response to the challenge.

Parameters
challengeThe challenge received from the HTTP server, encapsulating Status-Code and headers.
Returns
HTTP headers to be sent in response to the challenge.
Exceptions
NSInvalidArgumentExceptionIf challenge is `nil`.
Since
6.0

Property Documentation

◆ maximumConversations

- (NSUInteger) maximumConversations
readnonatomicassign

The maximum number of HTTP transactions permitted before authentication fails.

Since
6.0