Blame client/iOS/Misc/SFHFKeychainUtils.h

Packit 1fb8d4
//
Packit 1fb8d4
//  SFHFKeychainUtils.h
Packit 1fb8d4
//
Packit 1fb8d4
//  Created by Buzz Andersen on 10/20/08.
Packit 1fb8d4
//  Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone.
Packit 1fb8d4
//  Copyright 2008 Sci-Fi Hi-Fi. All rights reserved.
Packit 1fb8d4
//
Packit 1fb8d4
//  Permission is hereby granted, free of charge, to any person
Packit 1fb8d4
//  obtaining a copy of this software and associated documentation
Packit 1fb8d4
//  files (the "Software"), to deal in the Software without
Packit 1fb8d4
//  restriction, including without limitation the rights to use,
Packit 1fb8d4
//  copy, modify, merge, publish, distribute, sublicense, and/or sell
Packit 1fb8d4
//  copies of the Software, and to permit persons to whom the
Packit 1fb8d4
//  Software is furnished to do so, subject to the following
Packit 1fb8d4
//  conditions:
Packit 1fb8d4
//
Packit 1fb8d4
//  The above copyright notice and this permission notice shall be
Packit 1fb8d4
//  included in all copies or substantial portions of the Software.
Packit 1fb8d4
//
Packit 1fb8d4
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Packit 1fb8d4
//  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
Packit 1fb8d4
//  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Packit 1fb8d4
//  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
Packit 1fb8d4
//  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
Packit 1fb8d4
//  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Packit 1fb8d4
//  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Packit 1fb8d4
//  OTHER DEALINGS IN THE SOFTWARE.
Packit 1fb8d4
//
Packit 1fb8d4
Packit 1fb8d4
#import <UIKit/UIKit.h>
Packit 1fb8d4
Packit 1fb8d4
Packit 1fb8d4
@interface SFHFKeychainUtils : NSObject {
Packit 1fb8d4
  
Packit 1fb8d4
}
Packit 1fb8d4
Packit 1fb8d4
+ (NSString *) getPasswordForUsername: (NSString *) username andServerName: (NSString *) serverName error: (NSError **) error;
Packit 1fb8d4
+ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServerName: (NSString *) serverName updateExisting: (BOOL) updateExisting error: (NSError **) error;
Packit 1fb8d4
+ (BOOL) deleteItemForUsername: (NSString *) username andServerName: (NSString *) serverName error: (NSError **) error;
Packit 1fb8d4
Packit 1fb8d4
@end