---
title: kCFStreamPropertySocketSecurityLevel
framework: corefoundation
role: symbol
role_heading: Global Variable
path: corefoundation/kcfstreampropertysocketsecuritylevel
---

# kCFStreamPropertySocketSecurityLevel

Socket Security Level property key.

## Declaration

```swift
let kCFStreamPropertySocketSecurityLevel: CFString
```

## Discussion

Discussion See CFStream Socket Security Level Constants for specific security level constants to use. note: If you set this key, you must do so before setting any other SSL options, such as kCFStreamPropertySSLSettings.

## See Also

### Constants

- [appendToFile](corefoundation/cfstreampropertykey/appendtofile.md)
- [dataWritten](corefoundation/cfstreampropertykey/datawritten.md)
- [fileCurrentOffset](corefoundation/cfstreampropertykey/filecurrentoffset.md)
- [socketNativeHandle](corefoundation/cfstreampropertykey/socketnativehandle.md)
- [socketRemoteHostName](corefoundation/cfstreampropertykey/socketremotehostname.md)
- [socketRemotePortNumber](corefoundation/cfstreampropertykey/socketremoteportnumber.md)
- [kCFStreamPropertyShouldCloseNativeSocket](corefoundation/kcfstreampropertyshouldclosenativesocket.md)
- [kCFStreamPropertySSLPeerCertificates](cfnetwork/kcfstreampropertysslpeercertificates.md)
- [kCFStreamPropertySSLPeerTrust](cfnetwork/kcfstreampropertysslpeertrust.md)
- [kCFStreamPropertySSLSettings](cfnetwork/kcfstreampropertysslsettings.md)
- [kCFStreamPropertySSLContext](cfnetwork/kcfstreampropertysslcontext.md)
- [kCFStreamPropertySOCKSProxy](corefoundation/kcfstreampropertysocksproxy.md)
- [kCFStreamPropertyProxyLocalBypass](cfnetwork/kcfstreampropertyproxylocalbypass.md)
- [kCFStreamPropertySocketRemoteHost](cfnetwork/kcfstreampropertysocketremotehost.md)
- [kCFStreamPropertySocketRemoteNetService](cfnetwork/kcfstreampropertysocketremotenetservice.md)
