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

# SecKeychainPromptSelector

Bits that define when a keychain should require a passphrase.

```
struct SecKeychainPromptSelector
```

## Topics

### Constants

[`kSecKeychainPromptRequirePassphase`](/documentation/Security/SecKeychainPromptSelector/requirePassphase)

Indicates that a passphrase should be required for every access.

[`kSecKeychainPromptUnsigned`](/documentation/Security/SecKeychainPromptSelector/unsigned)

Indicates that a passphrase should be required when an unsigned application attempts to use the keychain, overriding the system default.

[`kSecKeychainPromptUnsignedAct`](/documentation/Security/SecKeychainPromptSelector/unsignedAct)

Indicates that a passphrase should be required when an unsigned application attempts to use the keychain.

[`kSecKeychainPromptInvalid`](/documentation/Security/SecKeychainPromptSelector/invalid)

Indicates that a passphrase should be required when an application with an invalid signature attempts to use the keychain, overriding the system default.

[`kSecKeychainPromptInvalidAct`](/documentation/Security/SecKeychainPromptSelector/invalidAct)

Indicates that a passphrase should be required when an application with an invalid signature attempts to use the keychain.

### Initializers

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

Initializes a keychain prompt selector.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Sendable`](/documentation/Swift/Sendable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)