One Logo Pool Ball
Foundation · IOS API REFERENCE

URLCredentialStorage

class · iOS 2.0+ · SDK 27.1

class URLCredentialStorage

Members (14)

get · iOS 2.0+

shared

TypeScript
static get shared(): URLCredentialStorage
Swift declaration
class var shared: URLCredentialStorage { get }
method · iOS 2.0+

credentials

TypeScript
credentials(space: URLProtectionSpace): (Record<string, URLCredential>) | null
Swift declaration
func credentials(for space: URLProtectionSpace) -> [String : URLCredential]?
method · iOS 2.0+

defaultCredential

TypeScript
defaultCredential(space: URLProtectionSpace): (URLCredential) | null
Swift declaration
func defaultCredential(for space: URLProtectionSpace) -> URLCredential?
method · iOS 8.0+

getCredentials

TypeScript
getCredentials(protectionSpace: URLProtectionSpace, task: URLSessionTask, completionHandler: ((arg0: (Record<string, URLCredential>) | null) => void)): void
Swift declaration
func credentials(for protectionSpace: URLProtectionSpace, task: URLSessionTask) async -> [String : URLCredential]?
method · iOS 8.0+

getDefaultCredential

TypeScript
getDefaultCredential(space: URLProtectionSpace, task: URLSessionTask, completionHandler: ((arg0: (URLCredential) | null) => void)): void
Swift declaration
func defaultCredential(for space: URLProtectionSpace, task: URLSessionTask) async -> URLCredential?
init

init

TypeScript
static init(): URLCredentialStorage
Swift declaration
init()
method · iOS 2.0+

remove

TypeScript
removeFor(credential: URLCredential, space: URLProtectionSpace): void
Swift declaration
func remove(_ credential: URLCredential, for space: URLProtectionSpace)
method · iOS 7.0+

remove

TypeScript
removeForOptions(credential: URLCredential, space: URLProtectionSpace, options?: (Record<string, unknown>) | null): void
Swift declaration
func remove(_ credential: URLCredential, for space: URLProtectionSpace, options: [String : Any]? = nil)
method · iOS 8.0+

remove

TypeScript
removeForOptionsTask(credential: URLCredential, protectionSpace: URLProtectionSpace, options: (Record<string, unknown>) | null, task: URLSessionTask): void
Swift declaration
func remove(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, options: [String : Any]? = nil, task: URLSessionTask)
method · iOS 2.0+

set

TypeScript
setFor(credential: URLCredential, space: URLProtectionSpace): void
Swift declaration
func set(_ credential: URLCredential, for space: URLProtectionSpace)
method · iOS 8.0+

set

TypeScript
setForTask(credential: URLCredential, protectionSpace: URLProtectionSpace, task: URLSessionTask): void
Swift declaration
func set(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, task: URLSessionTask)
method · iOS 2.0+

setDefaultCredential

TypeScript
setDefaultCredentialFor(credential: URLCredential, space: URLProtectionSpace): void
Swift declaration
func setDefaultCredential(_ credential: URLCredential, for space: URLProtectionSpace)
method · iOS 8.0+

setDefaultCredential

TypeScript
setDefaultCredentialForTask(credential: URLCredential, protectionSpace: URLProtectionSpace, task: URLSessionTask): void
Swift declaration
func setDefaultCredential(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, task: URLSessionTask)
get · iOS 2.0+

allCredentials

TypeScript
get allCredentials(): NativeMap<URLProtectionSpace, Record<string, URLCredential>>
Swift declaration
var allCredentials: [URLProtectionSpace : [String : URLCredential]] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →