shared
TypeScriptstatic get shared(): URLCredentialStorageSwift declarationclass var shared: URLCredentialStorage { get }class · iOS 2.0+ · SDK 27.1
class URLCredentialStoragestatic get shared(): URLCredentialStorageSwift declarationclass var shared: URLCredentialStorage { get }credentials(space: URLProtectionSpace): (Record<string, URLCredential>) | nullSwift declarationfunc credentials(for space: URLProtectionSpace) -> [String : URLCredential]?defaultCredential(space: URLProtectionSpace): (URLCredential) | nullSwift declarationfunc defaultCredential(for space: URLProtectionSpace) -> URLCredential?getCredentials(protectionSpace: URLProtectionSpace, task: URLSessionTask, completionHandler: ((arg0: (Record<string, URLCredential>) | null) => void)): voidSwift declarationfunc credentials(for protectionSpace: URLProtectionSpace, task: URLSessionTask) async -> [String : URLCredential]?getDefaultCredential(space: URLProtectionSpace, task: URLSessionTask, completionHandler: ((arg0: (URLCredential) | null) => void)): voidSwift declarationfunc defaultCredential(for space: URLProtectionSpace, task: URLSessionTask) async -> URLCredential?static init(): URLCredentialStorageSwift declarationinit()removeFor(credential: URLCredential, space: URLProtectionSpace): voidSwift declarationfunc remove(_ credential: URLCredential, for space: URLProtectionSpace)removeForOptions(credential: URLCredential, space: URLProtectionSpace, options?: (Record<string, unknown>) | null): voidSwift declarationfunc remove(_ credential: URLCredential, for space: URLProtectionSpace, options: [String : Any]? = nil)removeForOptionsTask(credential: URLCredential, protectionSpace: URLProtectionSpace, options: (Record<string, unknown>) | null, task: URLSessionTask): voidSwift declarationfunc remove(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, options: [String : Any]? = nil, task: URLSessionTask)setFor(credential: URLCredential, space: URLProtectionSpace): voidSwift declarationfunc set(_ credential: URLCredential, for space: URLProtectionSpace)setForTask(credential: URLCredential, protectionSpace: URLProtectionSpace, task: URLSessionTask): voidSwift declarationfunc set(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, task: URLSessionTask)setDefaultCredentialFor(credential: URLCredential, space: URLProtectionSpace): voidSwift declarationfunc setDefaultCredential(_ credential: URLCredential, for space: URLProtectionSpace)setDefaultCredentialForTask(credential: URLCredential, protectionSpace: URLProtectionSpace, task: URLSessionTask): voidSwift declarationfunc setDefaultCredential(_ credential: URLCredential, for protectionSpace: URLProtectionSpace, task: URLSessionTask)get allCredentials(): NativeMap<URLProtectionSpace, Record<string, URLCredential>>Swift declarationvar allCredentials: [URLProtectionSpace : [String : URLCredential]] { get }No declarations were skipped in this snapshot.