Enumeration

SecKeychainEventMask

Bit masks corresponding to the events that can trigger a keychain callback.

Declaration

typedef enum SecKeychainEventMask : UInt32 {
    ...
} SecKeychainEventMask;

Overview

Bitwise OR one or more of these masks together to provide the eventMask input to the SecKeychainAddCallback function to indicate what event or events should trigger your callback.

Topics

Constants

kSecLockEventMask

If the bit specified by this mask is set, your callback function is invoked when a keychain is locked.

kSecUnlockEventMask

If the bit specified by this mask is set, your callback function is invoked when a keychain is unlocked.

kSecAddEventMask

If the bit specified by this mask is set, your callback function is invoked when an item is added to a keychain.

kSecDeleteEventMask

If the bit specified by this mask is set, your callback function is invoked when an item is deleted from a keychain.

kSecUpdateEventMask

If the bit specified by this mask is set, your callback function is invoked when a keychain item is updated.

kSecPasswordChangedEventMask

If the bit specified by this mask is set, your callback function is invoked when the keychain password is changed.

kSecDefaultChangedEventMask

If the bit specified by this mask is set, your callback function is invoked when a different keychain is specified as the default.

kSecDataAccessEventMask

If the bit specified by this mask is set, your callback function is invoked when a process accesses a keychain item’s data.

Deprecated
kSecKeychainListChangedMask

If the bit specified by this mask is set, your callback function is invoked when a keychain list is changed.

kSecTrustSettingsChangedEventMask

If the bit specified by this mask is set, your callback function is invoked when there is a change in certificate trust settings.

kSecEveryEventMask

If all the bits are set, your callback function is invoked whenever any event occurs.

See Also

Callbacks

SecKeychainAddCallback

Registers your keychain event callback function.

SecKeychainRemoveCallback

Unregisters your keychain event callback function.

SecKeychainCallback

A customized callback function that keychain services call when a keychain event has occurred.

SecKeychainCallbackInfo

Information about a keychain event that keychain services deliver to your app via a callback function.

SecKeychainEvent

The list of keychain events that can trigger a callback.