---
title: keyUsage
framework: security
role: symbol
role_heading: Instance Property
path: security/secitemimportexportkeyparameters/keyusage
---

# keyUsage

An array containing usage attributes applied to a key on import.

## Declaration

```swift
var keyUsage: Unmanaged<CFArray>?
```

## Discussion

Discussion The array may contain any of the following key usage constants: kSecAttrCanEncrypt kSecAttrCanDecrypt kSecAttrCanDerive kSecAttrCanSign kSecAttrCanVerify kSecAttrCanWrap kSecAttrCanUnwrap If the array is NULL, all operations are allowed by default.
