-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBCCKeychain.h
21 lines (14 loc) · 942 Bytes
/
BCCKeychain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// BCCKeychain.h
//
// Created by Buzz Andersen on 3/7/11.
// Copyright 2013 Brooklyn Computer Club. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BCCKeychain : NSObject
+ (NSString *)getPasswordStringForUsername:(NSString *)username andServiceName:(NSString *)serviceName error:(NSError **)error;
+ (NSData *)getPasswordDataForUsername:(NSString *)username andServiceName:(NSString *)serviceName error:(NSError **)error;
+ (BOOL)storeUsername:(NSString *)username andPasswordString:(NSString *)password forServiceName:(NSString *)serviceName updateExisting:(BOOL)updateExisting error:(NSError **)error;
+ (BOOL)storeUsername:(NSString *)username andPasswordData:(NSData *)passwordData forServiceName:(NSString *)serviceName updateExisting:(BOOL)updateExisting error:(NSError **)error;
+ (BOOL)deleteItemForUsername:(NSString *)username andServiceName:(NSString *)serviceName error:(NSError **)error;
@end