EMKeychainItem Class Reference
EMKeychainItem.h |
Overview
EMKeychainItem
is a self-contained wrapper class for two-way communication with the keychain. You can add, retrieve, and remove both generic and internet keychain items. All keychain items have a username, password, and optionally a label.
Tasks
Other
username
property The keychain item's username.password
property The keychain item's password.label
property The keychain item's label.
Other
+ logsErrors
+ setLogsErrors:
Sets whether or not errors are logged.+ lockKeychain
Locks the keychain.+ unlockKeychain
Unlocks the keychain.
Other
Properties
username
The keychain item's username.
@property NSString
*username
Declared In
EMKeychainItem.h
password
The keychain item's password.
@property NSString
*password
Declared In
EMKeychainItem.h
label
The keychain item's label.
@property NSString
*label
Declared In
EMKeychainItem.h
Class Methods
logsErrors
+ (BOOL)logsErrors
Discussion
Returns whether or not errors are logged. Errors occur whenever a keychain item fails to appropriately update a property, or when a given keychain item cannot be found.
Declared In
EMKeychainItem.h
setLogsErrors:
Sets whether or not errors are logged.
+ (void)setLogsErrors:(BOOL)logsErrors
Declared In
EMKeychainItem.h
lockKeychain
Locks the keychain.
+ (void)lockKeychain
Declared In
EMKeychainItem.h
unlockKeychain
Unlocks the keychain.
+ (void)unlockKeychain
Declared In
EMKeychainItem.h
Instance Methods
removeFromKeychain
- (void)removeFromKeychain
Discussion
Removes the receiver from the keychain. After calling this method, you should generally discard of the receiver. The receiver cannot be "re-added" to the keychain; invoke either addGenericKeychainItemForServer:... or addInternetKeychainItemForServer:... instead.
Declared In
EMKeychainItem.h
_modifyAttributeWithTag:toBeValue:ofLength:
- (void)_modifyAttributeWithTag:(SecItemAttr)attributeTag toBeValue:(void *)newValue ofLength:(UInt32)newLength
Parameters
- attributeTag
-
The attribute's tag.
- newValue
-
A pointer to the new value.
- newLength
-
The length of the new value.
Discussion
Modifies the given attribute to be newValue.
Declared In
EMKeychainItem.m
Last updated: 2010-2-1