---
title: serverTrust
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotectionspace/servertrust
---

# serverTrust

A representation of the server’s SSL transaction state.

## Declaration

```swift
var serverTrust: SecTrust? { get }
```

## Mentioned in

Performing manual server trust authentication

## Discussion

Discussion This value is nil if the authentication method of the protection space is not server trust.

## See Also

### Getting protection space properties

- [authenticationMethod](foundation/urlprotectionspace/authenticationmethod.md)
- [distinguishedNames](foundation/urlprotectionspace/distinguishednames.md)
- [host](foundation/urlprotectionspace/host.md)
- [port](foundation/urlprotectionspace/port.md)
- [protocol](foundation/urlprotectionspace/protocol.md)
- [proxyType](foundation/urlprotectionspace/proxytype.md)
- [realm](foundation/urlprotectionspace/realm.md)
- [receivesCredentialSecurely](foundation/urlprotectionspace/receivescredentialsecurely.md)
