Contents

defaultCredential(for:)

Returns the default credential for the specified protection space.

Declaration

func defaultCredential(for space: URLProtectionSpace) -> URLCredential?

Parameters

  • space:

    The URL protection space of interest.

Return Value

The default credential for space or nil if no default has been set.

Discussion

If you override this method, also override getDefaultCredential(for:task:completionHandler:).

See Also

Getting and setting default credentials