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

# protocol

The receiver’s protocol.

## Declaration

```swift
var `protocol`: String? { get }
```

## Discussion

Discussion This value is nil if the receiver represents a proxy protection space.

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