<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFKeychainSettingsPanel",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFKeychainSettingsPanel"
  },
  "title" : "SFKeychainSettingsPanel"
}
-->

# SFKeychainSettingsPanel

A panel or sheet that allows users to change their keychain settings.

```
class SFKeychainSettingsPanel
```

## Overview

Keychain settings include:

- Lock after a set period of inactivity
- Lock on sleep
- Synchronize using .Mac

The following figure shows an example of a keychain settings panel.

![Keychain settings panel](images/com.apple.securityinterface/media-1965595.png)

For more information, see [Keychain Services Programming Guide](https://developer.apple.com/library/archive/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html#//apple_ref/doc/uid/TP30000897).

## Topics

### Returning a shared keychain save panel object

[`+  sharedKeychainSettingsPanel`](/documentation/SecurityInterface/SFKeychainSettingsPanel/shared())

Returns a shared keychain settings panel object.

### Displaying a sheet or panel

[`-  beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:settings:keychain:`](/documentation/SecurityInterface/SFKeychainSettingsPanel/beginSheet(for:modalDelegate:didEnd:contextInfo:settings:keychain:))

Displays a sheet that allows users to change keychain settings.

[`-  runModalForSettings:keychain:`](/documentation/SecurityInterface/SFKeychainSettingsPanel/runModal(for:keychain:))

Displays a panel that allows users to change keychain settings.

## Relationships

### Conforms To

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

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

[`NSMenuItemValidation`](/documentation/AppKit/NSMenuItemValidation)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`NSUserInterfaceValidations`](/documentation/AppKit/NSUserInterfaceValidations)

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

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

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

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

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

### Inherits From

[`NSPanel`](/documentation/AppKit/NSPanel)

---

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)