<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeyImportExportFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecKeyImportExportFlags"
  },
  "title" : "SecKeyImportExportFlags"
}
-->

# SecKeyImportExportFlags

The import/export parameter structure flags.

```
struct SecKeyImportExportFlags
```

## Overview

Use an instance of this structure to set the [`flags`](/documentation/Security/SecItemImportExportKeyParameters/flags) property in the [`SecItemImportExportKeyParameters`](/documentation/Security/SecItemImportExportKeyParameters) import/export structure.

## Topics

### Initializers

[`init(rawValue:)`](/documentation/Security/SecKeyImportExportFlags/init(rawValue:))

Initialize a key import/export flag structure.

### Constants

[`importOnlyOne`](/documentation/Security/SecKeyImportExportFlags/importOnlyOne)

A flag that you set to prevent importing more than one private key.

[`securePassphrase`](/documentation/Security/SecKeyImportExportFlags/securePassphrase)

A flag that indicates the user should be prompted for a passphrase on import or export.

[`noAccessControl`](/documentation/Security/SecKeyImportExportFlags/noAccessControl)

A flag that indicates imported private keys have no access object attached to them.



---

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)