---
title: receivesCredentialSecurely
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotectionspace/receivescredentialsecurely
---

# receivesCredentialSecurely

A Boolean value that indicates whether the credentials for the protection space can be sent securely.

## Declaration

```swift
var receivesCredentialSecurely: Bool { get }
```

## Discussion

Discussion This value is true if the credentials for the protection space represented by the receiver can be sent securely, false otherwise.

## 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)
- [serverTrust](foundation/urlprotectionspace/servertrust.md)
