Contents

init(version:lockOnSleep:useLockInterval:lockInterval:)

Initializes a keychain settings structures with the given values.

Declaration

init(version: UInt32, lockOnSleep: DarwinBoolean, useLockInterval: DarwinBoolean, lockInterval: UInt32)

Parameters

  • version:

    The keychain version. Use Sec_keychain_settings_vers1.

  • lockOnSleep:

    A Boolean indicating whether the keychain locks when the system enters sleep mode.

  • useLockInterval:

    A Boolean indicating whether the keychain locks after an time period elapses, as given by Lockinterval.

  • lockInterval:

    The number of seconds after which the keychain should lock if Uselockinterval is True.