EMInternetKeychainItem Class Reference
| EMKeychainItem.h |
Overview
An EMInternetKeychainItem wraps the functionality and data-members associated with an internet keychain item. Internet keychain items can optionally have a server, path, port, and protocol in addition to the standard keychain item properties.
Tasks
Other
serverproperty The keychain item's server.pathproperty The keychain item's path.portproperty The keychain item's port.protocolproperty The keychain item's protocol.
Other
+ internetKeychainItemForServer:withUsername:path:port:protocol:+ addInternetKeychainItemForServer:withUsername:password:path:port:protocol:
Properties
server
The keychain item's server.
@property NSString *server
Declared In
EMKeychainItem.h
path
The keychain item's path.
@property NSString *path
Declared In
EMKeychainItem.h
port
The keychain item's port.
@property NSInteger port
Declared In
EMKeychainItem.h
protocol
The keychain item's protocol.
@property SecProtocolType protocol
Declared In
EMKeychainItem.h
Class Methods
internetKeychainItemForServer:withUsername:path:port:protocol:
+ (EMInternetKeychainItem *)internetKeychainItemForServer:(NSString *)server withUsername:(NSString *)username path:(NSString *)path port:(NSInteger)port protocol:(SecProtocolType)protocol
Parameters
- server
-
The server. Cannot be nil.
- username
-
The username. Cannot be nil.
- path
-
The path.
- port
-
The port.
- protocol
-
The protocol.
Return Value
An EMInternetKeychainItem if the keychain item can be discovered. Otherwise, nil.
Discussion
Returns, if possible, an internet keychain item that corresponds to the given server.
Declared In
EMKeychainItem.h
addInternetKeychainItemForServer:withUsername:password:path:port:protocol:
+ (EMInternetKeychainItem *)addInternetKeychainItemForServer:(NSString *)server withUsername:(NSString *)username password:(NSString *)password path:(NSString *)path port:(NSInteger)port protocol:(SecProtocolType)protocol
Parameters
- server
-
The server. Cannot be nil.
- username
-
The username. Cannot be nil.
- password
-
The password to associate with the server, username, path, port, and protocol. Cannot be nil.
- path
-
The path.
- port
-
The port.
- protocol
-
The protocol.
Return Value
An EMInternetKeychainItem if the item can be added to the keychain. Otherwise, nil.
Discussion
Adds a keychain item for the given server.
Declared In
EMKeychainItem.h
Last updated: 2010-2-1