![]() |
iOSKit 1.0
iOS Developer Convenience Toolkit
|
#import </Users/Matthew/iOSDev/iOSKit/Framework/trunk/iOSKit/AccountManagement/Account.h>
Public Member Functions | |
(id) | - initWithEmailUsername:andPassword:andKeyCode: |
(NSString *) | - emailUserNameWithAuthToken: |
(BOOL) | - isPassword:correctWithAuthToken: |
(NSString *) | - passwordWithAuthToken:andKeyCode: |
(BOOL) | - isKeyCode:correctWithAuthToken: |
(void) | - resetPasswordWithAuthToken:fromOldPassword:toNewPassword: |
(void) | - resetKeyCodeWithAuthToken:withPassword:toNewKeyCode: |
Static Public Member Functions | |
(void) | + deleteAccount:withAuthToken: |
Provides a way to store a user account for use with iOSKit AccountManagent component
+ (void) deleteAccount: | (IOSKitAccount *) | acc | |
withAuthToken: | (NSString *) | authToken | |
Delets a passed account from the store and keychain
acc | The account that is to be deleterd |
authToken | A valid authToken |
- (NSString *) emailUserNameWithAuthToken: | (NSString *) | authToken |
Gets the username when you have a valid authToken
authToken | A valid auth token |
- (id) initWithEmailUsername: | (NSString *) | aEmailUsername | |
andPassword: | (NSString *) | aPassword | |
andKeyCode: | (NSString *) | aKeyCode | |
Creates an IOSKitAccount with the specified details
aEmailUsername | The username to store (possibly an email address) |
aPassword | The password to save for the user |
aKeyCode | The key code to store the username and password under for easy access |
- (BOOL) isKeyCode: | (NSString *) | enteredKeyCode | |
correctWithAuthToken: | (NSString *) | authToken | |
Check to see if the entered key code is correct, only returning an answer if a valid authToken is presented
authToken | A valid auth token |
enteredKeyCode | The entered key code that is to be checked |
- (BOOL) isPassword: | (NSString *) | enteredPassword | |
correctWithAuthToken: | (NSString *) | authToken | |
Checks to see if the entered password is correct, only returning an answer if a valid authToken is presented
enteredPassword | |
authToken | A valid auth token |
- (NSString *) passwordWithAuthToken: | (NSString *) | authToken | |
andKeyCode: | (NSString *) | keyCode | |
Returns the stored password when both a valid authToken is presented and the correct keyCode is presented
authToken | A valid auth token |
keyCode | The correct keyCode |
- (void) resetKeyCodeWithAuthToken: | (NSString *) | authToken | |
withPassword: | (NSString *) | password | |
toNewKeyCode: | (NSString *) | newKC | |
Resets the accounts key code to a new one if the password is known
authToken | A valid auth token |
password | The account password |
newKC | The new key code that is to be stored |
- (void) resetPasswordWithAuthToken: | (NSString *) | authToken | |
fromOldPassword: | (NSString *) | oldP | |
toNewPassword: | (NSString *) | newP | |
Resets the accounts password to a new one if the old one is known
authToken | A valid auth token |
oldP | The old password that is to be reset |
newP | The new password that is to be stored |