MYIdentity Class Reference

An Identity represents a certificate with an associated private key. More...

Inherits MYCertificate.

List of all members.

Public Member Functions

(id) - _initWithData:format:keychain:error:
Expert

Advanced methods.

(id) - initWithIdentityRef:
 Initializes a MYIdentity given an existing SecIdentityRef.

Static Public Member Functions

(MYIdentity *) + identityWithIdentityRef:
 Creates a MYIdentity object for an existing Keychain identity reference.

Properties

SecIdentityRef identityRef
 The underlying SecIdentityRef.
MYPrivateKeyprivateKey
 The identity's associated private key.

Mac-Only

Functionality not available on iPhone.



(MYIdentity *) + preferredIdentityForName:
 Returns the identity that's been set as the preferred one for the given name, or nil.
(NSData *) - exportInFormat:withPEM:alertTitle:alertPrompt:
 Exports the identity as an encrypted data blob containing the cert and private key.
(BOOL) - makePreferredIdentityForName:
 Registers this identity as the preferred one for the given name, for later lookup using +preferredIdentityForName:.

Detailed Description

An Identity represents a certificate with an associated private key.


Member Function Documentation

- (NSData *) exportInFormat: (SecExternalFormat)  format
withPEM: (BOOL)  withPEM
alertTitle: (NSString*)  title
alertPrompt: (NSString*)  prompt 

Exports the identity as an encrypted data blob containing the cert and private key.

+ (MYIdentity *) identityWithIdentityRef: (SecIdentityRef)  identityRef  

Creates a MYIdentity object for an existing Keychain identity reference.

- (id) initWithIdentityRef: (SecIdentityRef)  identityRef  

Initializes a MYIdentity given an existing SecIdentityRef.

- (BOOL) makePreferredIdentityForName: (NSString*)  name  

Registers this identity as the preferred one for the given name, for later lookup using +preferredIdentityForName:.

+ (MYIdentity *) preferredIdentityForName: (NSString*)  name  

Returns the identity that's been set as the preferred one for the given name, or nil.


Property Documentation

- (SecIdentityRef) identityRef [read, assign]

The underlying SecIdentityRef.

- (MYPrivateKey *) privateKey [read, assign]

The identity's associated private key.


The documentation for this class was generated from the following files:
Generated on Sun Apr 17 12:23:58 2011 for MYCrypto by  doxygen 1.6.3