credentials(for:)
Returns a dictionary containing the credentials for the specified protection space.
Declaration
func credentials(for space: URLProtectionSpace) -> [String : URLCredential]?Parameters
- space:
The protection space whose credentials you want to retrieve.
Return Value
A dictionary containing the credentials for the specified protection space. The dictionary’s keys are user name strings, and each value is the corresponding URLCredential.
Discussion
If you override this method, also override getCredentials(for:task:completionHandler:).