Open ClassFoundationNetworking5.9.0
URLCredentialStorage
class URLCredentialStorage
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in FoundationNetworking
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
init(
) class var shared: URLCredentialStorage
var allCredentials: [URLProtectionSpace : [String : URLCredential]]
func credentials(for: URLProtectionSpace
) -> [String : URLCredential]? func defaultCredential(for: URLProtectionSpace
) -> URLCredential? func getCredentials(for: URLProtectionSpace, task: URLSessionTask, completionHandler: ([String : URLCredential]?) -> Void
) func getDefaultCredential(for: URLProtectionSpace, task: URLSessionTask, completionHandler: (URLCredential?) -> Void
) func remove(URLCredential, for: URLProtectionSpace
) func remove(URLCredential, for: URLProtectionSpace, options: [String : AnyObject]?
) func remove(URLCredential, for: URLProtectionSpace, options: [String : AnyObject]?, task: URLSessionTask
) func set(URLCredential, for: URLProtectionSpace
) func set(URLCredential, for: URLProtectionSpace, task: URLSessionTask
) func setDefaultCredential(URLCredential, for: URLProtectionSpace
) func setDefaultCredential(URLCredential, for: URLProtectionSpace, task: URLSessionTask
)