32 lines
568 B
Objective-C
Executable File
32 lines
568 B
Objective-C
Executable File
//
|
|
// PDKeyChain.h
|
|
// PDKeyChain
|
|
//
|
|
// Created by Panda on 16/8/23.
|
|
// Copyright © 2016年 v2panda. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Security/Security.h>
|
|
|
|
@interface PDKeyChain : NSObject
|
|
/**
|
|
* 从 KeyChain 中读取存储的数据
|
|
*
|
|
* @return NSDictionary
|
|
*/
|
|
+ (NSDictionary *)getKeyChainData;
|
|
|
|
+ (id)objectForKey:(NSString *)key;
|
|
+ (void)setObject:(id)object forKey:(NSString *)key;
|
|
+ (void)removeObjectForKey:(NSString *)key;
|
|
+ (void)removeAllObjects;
|
|
|
|
|
|
/**
|
|
* 删除 KeyChain 信息
|
|
*/
|
|
+ (void)keyChainDelete;
|
|
|
|
@end
|