---
title: kSecAttrPort
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrport
---

# kSecAttrPort

A key whose value indicates the item’s port.

## Declaration

```swift
let kSecAttrPort: CFString
```

## Discussion

Discussion The corresponding value is of type CFNumber and represents an Internet port number. Items of class kSecClassInternetPassword have this attribute.
