<!--
{
  "availability" : [
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoveatedStreaming",
  "identifier" : "/documentation/FoveatedStreaming/FoveatedStreamingProviderContext/verifyRemoteServerTrust(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foveated Streaming"
    ],
    "preciseIdentifier" : "s:17FoveatedStreaming0aB15ProviderContextC23verifyRemoteServerTrust3forSbSo28NSURLAuthenticationChallengeC_tYaF"
  },
  "title" : "verifyRemoteServerTrust(for:)"
}
-->

# verifyRemoteServerTrust(for:)

Verifies the server certificate presented in a TLS authentication challenge.

```
@MainActor final func verifyRemoteServerTrust(for challenge: URLAuthenticationChallenge) async -> Bool
```

## Parameters

`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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)