//
//  LTKeychain.h
//  LTUnionSDK
//
//  Created by 孙泉 on 2017/6/30.
//  Copyright © 2017年 孙泉. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <Security/Security.h>

@interface LTKeychain : NSObject

/**
 存储object到当前bundleID的key中
 */
+ (BOOL)setObject:(id)object
           forKey:(NSString *)key;

/**
 存储object到service的key中
 */
+ (BOOL)setObject:(id)object
       forService:(NSString *)service
           andKey:(NSString *)key;

/**
 当前bundleID的key中存储的object
 */
+ (id)objectForKey:(NSString *)key;

/**
 service的key中存储的object
 */
+ (id)objectForService:(NSString *)service
                andKey:(NSString *)key;

/**
 移除当前bundleID的key中的object
 */
+ (BOOL)removeObjectForKey:(NSString *)key;

/**
 移除service的key中的object
 */
+ (BOOL)removeObjectForService:(NSString *)service
                        andKey:(NSString *)key;

@end
