iOS Guides | Samples

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.

This value is used by the SecAccessControl constructor and surfaced as a property of the SecRecord.

Members

Member NameDescription
AfterFirstUnlockThe data is only available after the first time the device has been unlocked after booting.
AfterFirstUnlockThisDeviceOnlyThe data is only available after the first time the device has been unlocked after booting.
AlwaysAlways available.
AlwaysThisDeviceOnlyAlways available.
Invalid.Invalid definition
WhenPasscodeSetThisDeviceOnlyLimits 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.
WhenUnlockedThe data is only available when the device is unlocked.
WhenUnlockedThisDeviceOnlyLimits access to the item to this device and the device being unlocked.

Requirements

Namespace: Security
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of Security.SecAccessible are listed below.

See Also: Enum

Public Fields

AfterFirstUnlockSecAccessible. The data is only available after the first time the device has been unlocked after booting.
AfterFirstUnlockThisDeviceOnlySecAccessible. The data is only available after the first time the device has been unlocked after booting.
AlwaysSecAccessible. Always available.
AlwaysThisDeviceOnlySecAccessible. Always available.
InvalidSecAccessible. .Invalid definition
WhenPasscodeSetThisDeviceOnlySecAccessible. 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.
WhenUnlockedSecAccessible. The data is only available when the device is unlocked.
WhenUnlockedThisDeviceOnlySecAccessible. Limits access to the item to this device and the device being unlocked.