<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecItemAttr/portItemAttr",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecItemAttr@kSecPortItemAttr"
  },
  "title" : "SecItemAttr.portItemAttr"
}
-->

# SecItemAttr.portItemAttr

Identifies the port attribute.

```
case portItemAttr
```

## Discussion

You use this tag to set or get a value of type `UInt32` that represents the Internet port number. This is unique to Internet password attributes.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)