Blame client/iOS/Misc/SFHFKeychainUtils.h

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