Inherits from NSObject
Declared in DTKeychainItem.h

Overview

This is the common root class for all kinds of keychain items.

Properties

accessGroup

The keychain access group the receiver belongs to. Is usually the app identifier including the group prefix

@property (nonatomic, readonly) NSString *accessGroup

Declared In

DTKeychainItem.h

accessibility

Under which circumstances the receiver is accessible, see kSecAttrAccessible. Only used on iOS.

@property (nonatomic, copy, getter=accessibilityMode) NSString *accessibility

Declared In

DTKeychainItem.h

comment

A comment to describe the item

@property (nonatomic, copy) NSString *comment

Declared In

DTKeychainItem.h

creationDate

The time the receiver was created

@property (nonatomic, readonly) NSDate *creationDate

Declared In

DTKeychainItem.h

descriptionText

A comment to describe the item

@property (nonatomic, copy) NSString *descriptionText

Declared In

DTKeychainItem.h

label

A label to describe the item

@property (nonatomic, copy) NSString *label

Declared In

DTKeychainItem.h

modificationDate

The time the receiver was last modified

@property (nonatomic, readonly) NSDate *modificationDate

Declared In

DTKeychainItem.h

persistentReference

A persistent reference to the receiver in the keychain. This can be persisted on disk.

@property (nonatomic, readonly) NSData *persistentReference

Declared In

DTKeychainItem.h

secureData

The secure data or the receiver

@property (nonatomic, copy) NSData *secureData

Declared In

DTKeychainItem.h

synchronizable

Whether the receiver is synchronizable

@property (nonatomic, readonly, getter=isSynchronizable) BOOL synchronizable

Declared In

DTKeychainItem.h

Class Methods

classForItemClass:

Determines the correct class of the class cluster for a given itemClass

+ (Class)classForItemClass:(NSString *)itemClass

Parameters

itemClass

The keychain item class string

Return Value

The class to represent items with this item class as

Declared In

DTKeychainItem.h

itemClass

The class of the keychain item. Subclasses need to overwrite this. This determins the secItemClass to be used for keychain queries.

+ (NSString *)itemClass

Declared In

DTKeychainItem.h

keychainItemQuery

A basic query that only contains the item class and should be enhanced with the primary key fields of subclasses.

+ (NSDictionary *)keychainItemQuery

Declared In

DTKeychainItem.h

Instance Methods

attributesToUpdate

Returns the modifyable attributes to write to the keychains for updates or newly created items

- (NSDictionary *)attributesToUpdate

Declared In

DTKeychainItem.h

initWithDictionary:

Instantiates the receiver with a dictionary as returned by a keychain query

- (instancetype)initWithDictionary:(NSDictionary *)dictionary

Parameters

dictionary

The dictionary as it would come out of keychain queries

Declared In

DTKeychainItem.h