One Logo Pool Ball
Foundation · IOS API REFERENCE

URLAuthenticationChallenge

class · iOS 2.0+ · SDK 27.1

class URLAuthenticationChallenge

Members (8)

init · iOS 2.0+

init

TypeScript
static initAuthenticationChallengeSender(challenge: URLAuthenticationChallenge, sender: Implements<URLAuthenticationChallengeSender> | SDKHandle): URLAuthenticationChallenge
Swift declaration
init(authenticationChallenge challenge: URLAuthenticationChallenge, sender: any URLAuthenticationChallengeSender)
init · iOS 2.0+

init

TypeScript
static initProtectionSpaceProposedCredentialPreviousFailureCountFailureResponseErrorSender(space: URLProtectionSpace, credential: (URLCredential) | null, previousFailureCount: number, response: (URLResponse) | null, error: (NativeError) | null, sender: Implements<URLAuthenticationChallengeSender> | SDKHandle): URLAuthenticationChallenge
Swift declaration
init(protectionSpace space: URLProtectionSpace, proposedCredential credential: URLCredential?, previousFailureCount: Int, failureResponse response: URLResponse?, error: (any Error)?, sender: any URLAuthenticationChallengeSender)
get · iOS 2.0+

error

TypeScript
get error(): (NativeError) | null
Swift declaration
var error: (any Error)? { get }
get · iOS 2.0+

failureResponse

TypeScript
get failureResponse(): (URLResponse) | null
Swift declaration
@NSCopying var failureResponse: URLResponse? { get }
get · iOS 2.0+

previousFailureCount

TypeScript
get previousFailureCount(): number
Swift declaration
var previousFailureCount: Int { get }
get · iOS 2.0+

proposedCredential

TypeScript
get proposedCredential(): (URLCredential) | null
Swift declaration
@NSCopying var proposedCredential: URLCredential? { get }
get · iOS 2.0+

protectionSpace

TypeScript
get protectionSpace(): URLProtectionSpace
Swift declaration
@NSCopying var protectionSpace: URLProtectionSpace { get }
get · iOS 2.0+

sender

TypeScript
get sender(): (SDKHandle) | null
Swift declaration
var sender: (any URLAuthenticationChallengeSender)? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

URLAuthenticationChallenge.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All Foundation types →