-
Notifications
You must be signed in to change notification settings - Fork 0
/
SSKeychainItem.h
37 lines (28 loc) · 947 Bytes
/
SSKeychainItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// SSKeychainItem.h
// SSKeychain
//
// Created by Sam Soffes on 4/6/10.
// Copyright 2010 Sam Soffes. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Security/Security.h>
@interface SSKeychainItem : NSObject {
NSString *username;
NSString *password;
NSString *label;
SecKeychainItemRef coreKeychainItem;
}
@property (nonatomic, copy) NSString *username;
@property (nonatomic, copy) NSString *password;
@property (nonatomic, copy) NSString *label;
// Class Methods
+ (void)lockKeychain;
+ (void)unlockKeychain;
// Initializers
- (id)initWithCoreKeychainItem:(SecKeychainItemRef)aCoreKeychainItem;
- (id)initWithCoreKeychainItem:(SecKeychainItemRef)aCoreKeychainItem username:(NSString *)aUsername password:(NSString *)aPassword;
- (id)initWithCoreKeychainItem:(SecKeychainItemRef)aCoreKeychainItem username:(NSString *)aUsername password:(NSString *)aPassword label:(NSString *)aLabel;
// Tasks
- (void)destroy;
@end