Skip to content

Modules.Identity.KeychainItemType

Dictionary passed to the createKeychainItem method.

Since: 6.1.0 · Platforms: iphone, ipad, android

Properties #

accessControlMode#

Type: Number

Optional constants used to determine the access control with the specified
protection type and flags. The constants can be concatenated by using the
Bit OR operator, e.g. optionA | optionB | optionC.

accessGroup#

Type: String

Optional identifier used to define the access group the keychain item
should be valid. This can be used to share a keychain item across two
or more apps that use the same organization group identifier.
More information about keychain access groups can be found in the
official iOS documentation.

accessibilityMode#

Type: Number

Optional constant used for determining when a keychain item should be
readable. Use this property with caution to enable advanced access control.
More information about this property and it's values can be found in the
official iOS documentation.

cipher#

Type: String

Define the cipher used to encrypt keychain items.
Android supported ciphers

identifier#

Type: String

Required identifier to create or receive a keychain item. The identifier
cannot contain alphanumeric characters or it might be rejected by the keychain.

options#

Type: Dictionary

Optional parameter used to specify additional values to the keychain.
Example: The raw-value of kSecUseOperationPrompt is u_OpPrompt, so
you could specify options: {'u_OpPrompt': 'Please authenticate yourself!'}.

service#

Type: String

A key whose value is a string indicating the item's service. Defaults
to ti.touchid if not set for backwards compatibility with the deprecated
Ti.TouchID module. This property is required when using app extensions
and should also include the app-prefix (aka team-ID).

Titanium SDK Documentation