Creates a URL credential instance for server trust authentication, initialized with a accepted trust.
- iOS 3.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The accepted trust.
A new URL credential object, containing the provided server trust.
Before your implementation of
URLSession: uses this initializer to create a server trust credential, you are responsible for evaluating the received
Sec instance. You get this
server from the
protection of the
NSURLAuthentication parameter that is passed to your delegate method. Pass the trust instance to
Sec to evaluate it. If this call indicates the trust is invalid, you should cancel the challenge by passing the
NSURLSession disposition to the completion handler.