Creates a URL credential instance for server trust authentication with a given accepted trust.
- iOS 3.0+
- macOS 10.6+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The accepted trust.
A new URL credential object, containing the accepted server trust.
Before creating a server trust credential, it is the responsibility of the delegate of an
NSURLConnection instance or an
NSURLDownload instance to evaluate the trust. Do this by calling
Sec, passing it the trust obtained from the
server method of the server’s
NSURLProtection instance. If the trust is invalid, the authentication challenge should be cancelled with