verifyRemoteServerTrust(for:)
Verifies the server certificate presented in a TLS authentication challenge.
Declaration
@MainActor final func verifyRemoteServerTrust(for challenge: URLAuthenticationChallenge) async -> BoolParameters
- challenge:
The authentication challenge to verify.
Return Value
true if the server is trusted; false otherwise.
Discussion
Streaming provider extensions are responsible for calling this method when handling authentication challenges from URLSession (or equivalent) for remote streaming endpoints, to validate the server’s certificate before completing the connection.