MonoTouch.Security.SecAccessible Enumeration
An enumeration whose values specify when a keychain item should be readable.

Syntax

public enum SecAccessible

Remarks

There are a number of axis to consider for the accessible settings of an item.

Whether the information should be made accessible without entering a passcode, the device being unlocked or always available.

Another one is whether the information should be locked to this device, or whether the information can migrate to a new device via a backup restore.

Members

Member NameDescription
AfterFirstUnlock

The data is only available after the first time the device has been unlocked after booting.

Recommended use: when the data is required in the background.

Migration: When using encrypted backups, the data will be copied to a new device.

AfterFirstUnlockThisDeviceOnly

The data is only available after the first time the device has been unlocked after booting.

Recommended use: when the data is required in the background.

Migration: The data will not move to a new device after a backup restore.

Always

Always available.

Recommended use: Not recommended.

Migration: When using encrypted backups, the data will be copied to a new device.

AlwaysThisDeviceOnly

Always available.

Recommended use: Not recommended.

Migration: The data will not move to a new device after a backup restore.

Invalid.Invalid definition
WhenPasscodeSetThisDeviceOnly

Limits access to the item to both this device and requires a passcode to be set and the data is only available if the device is currently unlocked.

If the user removes the passcode on the device, these items are automatically removed.

WhenUnlocked

The data is only available when the device is unlocked.

Recommended use: when the data is only required when the application is in the foreground.

Migration: When using encrypted backups, the data will be copied to a new device.

WhenUnlockedThisDeviceOnly

Limits access to the item to this device and the device being unlocked.

Migration: The data will not move to a new device after a backup restore.

Requirements

Namespace: MonoTouch.Security
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0